Few comments below...<br><br><div class="gmail_quote">On Wed Feb 04 2015 at 3:21:50 PM Wen Wang &lt;<a href="mailto:wenwang@linux.vnet.ibm.com">wenwang@linux.vnet.ibm.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Signed-off-by: Wen Wang &lt;<a href="mailto:wenwang@linux.vnet.ibm.com" target="_blank">wenwang@linux.vnet.ibm.com</a>&gt;<br>
---<br>
 ui/css/theme-default/list-<u></u>flat.css | 83 ++++++++++++++++++++++++++++++<u></u>++++++++<br>
 ui/js/widgets/list-flat.js         | 76 ++++++++++++++++++++++++++++++<u></u>++++<br>
 2 files changed, 159 insertions(+)<br>
 create mode 100644 ui/css/theme-default/list-<u></u>flat.css<br>
 create mode 100644 ui/js/widgets/list-flat.js<br>
<br>
diff --git a/ui/css/theme-default/list-<u></u>flat.css b/ui/css/theme-default/list-<u></u>flat.css<br>
new file mode 100644<br>
index 0000000..ba0439d<br>
--- /dev/null<br>
+++ b/ui/css/theme-default/list-<u></u>flat.css<br>
@@ -0,0 +1,83 @@<br>
+/*<br>
+ * Project Kimchi<br>
+ *<br>
+ * Copyright IBM, Corp. 2015<br>
+ *<br>
+ * Licensed under the Apache License, Version 2.0 (the &#39;License&#39;);<br>
+ * you may not use this file except in compliance with the License.<br>
+ * You may obtain a copy of the License at<br>
+ *<br>
+ *     <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">http://www.apache.org/<u></u>licenses/LICENSE-2.0</a><br>
+ *<br>
+ * Unless required by applicable law or agreed to in writing, software<br>
+ * distributed under the License is distributed on an &#39;AS IS&#39; BASIS,<br>
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br>
+ * See the License for the specific language governing permissions and<br>
+ * limitations under the License.<br>
+ */<br>
+<br>
+.list-titlef {<br>
+    height: 30px;<br>
+    line-height: 30px;<br>
+    width: 25%;<br>
+    border-bottom: 1px solid #DEDEDE;<br>
+    color: #626262;<br>
+    font-size: 17px;<br>
+    padding: 10px 0;<br>
+    background: white;<br>
+}<br>
+<br>
+.list-content {<br>
+    height: 300px;<br>
+    width: 25%;<br>
+}<br>
+<br>
+.list-item {<br>
+    border-bottom: 1px solid #F5F5F5;<br>
+    height: 40px;<br>
+}<br>
+<br>
+.list-item-odd {<br>
+    background: #FFFFFF;<br>
+}<br>
+<br>
+.list-item-even {<br>
+    background: #FCFCFC;<br>
+}<br>
+<br>
+.list-item:hover {<br>
+    background: #DDDDDD;<br>
+}<br>
+<br>
+.list-inline {<br>
+    display: inline-block;<br>
+}<br>
+<br>
+.list-item-icon {<br>
+    line-height: 20px;<br>
+    vertical-align: 35%;<br>
+}<br>
+<br>
+.list-item-info {<br>
+    position: relative;<br>
+    margin-left: 10px;<br>
+    margin-right: 10px;<br>
+}<br>
+<br>
+.list-item-name {<br>
+    font-size: 14px;<br>
+    line-height: 14px;<br>
+    padding: 9px 0 0;<br>
+}<br>
+<br>
+.list-item-button {<br>
+    position: relative;<br>
+    width: 150px;<br>
+    padding: 5px;<br>
+    float: right;<br>
+}<br>
+<br>
+.list-item-detail {<br>
+    font-size: 11px;<br>
+    color: #CDCDCD;<br>
+}<br>
\ No newline at end of file<br>
diff --git a/ui/js/widgets/list-flat.js b/ui/js/widgets/list-flat.js<br>
new file mode 100644<br>
index 0000000..f76eec6<br>
--- /dev/null<br>
+++ b/ui/js/widgets/list-flat.js<br>
@@ -0,0 +1,76 @@<br>
+/*<br>
+ * Project Kimchi<br>
+ *<br>
+ * Copyright IBM, Corp. 2015<br>
+ *<br>
+ * Licensed under the Apache License, Version 2.0 (the &#39;License&#39;);<br>
+ * you may not use this file except in compliance with the License.<br>
+ * You may obtain a copy of the License at<br>
+ *<br>
+ *     <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">http://www.apache.org/<u></u>licenses/LICENSE-2.0</a><br>
+ *<br>
+ * Unless required by applicable law or agreed to in writing, software<br>
+ * distributed under the License is distributed on an &#39;AS IS&#39; BASIS,<br>
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br>
+ * See the License for the specific language governing permissions and<br>
+ * limitations under the License.<br>
+ */<br>
+<br>
+    // How to use:<br>
+    //     $(&quot;.test-bar&quot;).listFlat({<br>
+    //         title: &quot;Hello World&quot;  //Set title.<br>
+    //     });<br>
+    //     $(&quot;.test-bar&quot;).listFlat(&quot;<u></u>addItem&quot;, &quot;Hello&quot;, &quot;2015&quot;, &quot;icon-user&quot;, &quot;button1&quot;);<br>
+    //             //Add one item of the list, parameters are: name, info, icon and button-id<br></blockquote><div><br></div><div>Indentation of the comment is wrong - looks for me there&#39;s one more TAB.</div><div>Also, would be nice to place the comment before the operation.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
+<br>
+<br>
+ (function($) {<br>
+<br>
+    $.widget(&quot;kimchi.listFlat&quot;, {<br>
+<br>
+        options: {<br>
+            title: null<br>
+        },<br>
+<br>
+        _create: function() {<br>
+            var that = this;<br>
+            var listTitle = that.options.title;<br>
+            var titleTrim = listTitle.replace(/\s*/g, &quot;&quot;);<br>
+            var html = &quot;&quot;;<br>
+            html += &quot;&lt;div class=&#39;list-titlef&#39;&gt;&quot; + listTitle + &quot;&lt;/div&gt;&quot; +<br>
+                    &quot;&lt;div class=&#39;list-content&#39; id=&#39;list&quot; + titleTrim + &quot;&#39;&gt;&lt;/div&gt;&quot;;<br>
+            $(html).appendTo(that.element)<u></u>;<br>
+        },<br>
+<br>
+        _getTitle: function() {<br>
+            return this.options.title;<br>
+        },<br>
+<br>
+        addItem: function(name, detail, icon, id) {<br>
+            var title = this._getTitle().replace(/\s/<u></u>g, &quot;&quot;);<br>
+            var usedIcon = icon || &quot;&quot;;<br>
+            var html = &quot;&quot;;<br>
+            html += &quot;&lt;div class=&#39;list-item&#39;&gt;&quot; +<br>
+                        &quot;&lt;span class=&#39;list-inline list-item-icon &quot; + usedIcon + &quot;&#39;&gt;&lt;/span&gt;&quot; +<br>
+                        &quot;&lt;span class=&#39;list-inline list-item-info&#39;&gt;&quot;+<br>
+                            &quot;&lt;div class=&#39;list-item-name&#39;&gt;&quot; + name + &quot;&lt;/div&gt;&quot; +<br>
+                            &quot;&lt;div class=&#39;list-item-detail&#39;&gt;&quot; + detail + &quot;&lt;/div&gt;&quot; +<br>
+                        &quot;&lt;/span&gt;&quot; +<br>
+                        &quot;&lt;span class=&#39;list-inline list-item-button&#39; id=&#39;&quot; + id + &quot;&#39;&gt;&lt;/span&gt;&quot; +<br>
+                    &quot;&lt;/div&gt;&quot;;<br>
+            $(html).appendTo($(&quot;#list&quot; + title));<br>
+            $.each($(&quot;.list-item&quot;), function(index, data) {<br>
+                if(index%2 &gt;0) {<br>
+                    $(this).addClass(&quot;list-item-<u></u>even&quot;);<br>
+                } else {<br>
+                    $(this).addClass(&quot;list-item-<u></u>odd&quot;);<br>
+                }<br>
+            })<br>
+            console.log(&quot;title&quot;);<br>
+        },<br>
+<br>
+        _destory: function() {<br>
+            this.element.remove();<br>
+        }<br>
+    });<br>
+ })(jQuery);<br>
\ No newline at end of file<br>
--<br>
2.1.0<br>
<br>
______________________________<u></u>_________________<br>
Kimchi-devel mailing list<br>
<a href="mailto:Kimchi-devel@ovirt.org" target="_blank">Kimchi-devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/kimchi-devel" target="_blank">http://lists.ovirt.org/<u></u>mailman/listinfo/kimchi-devel</a><br>
</blockquote></div>