浏览代码

[metastore] Show type of tables with icons instead of text

Romain Rigaux 10 年之前
父节点
当前提交
496f3eb
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      apps/metastore/src/metastore/templates/metastore.mako

+ 8 - 1
apps/metastore/src/metastore/templates/metastore.mako

@@ -393,7 +393,14 @@ ${ assist.assistPanel() }
                 <a class="tableLink" href="javascript:void(0);" data-bind="text: name, click: function() { $parent.setTable($data, function(){ huePubSub.publish('metastore.url.change'); }) }"></a>
               </td>
               <td data-bind="text: comment"></td>
-              <td data-bind="text: type"></td>
+              <td>
+                <!-- ko if: type == 'Table' -->
+                  <i class="fa fa-fw fa-table muted" title="${ _('Table') }"></i>
+                <!-- /ko -->
+                <!-- ko if: type == 'View' -->
+                  <i class="fa fa-fw fa-eye muted" title="${ _('View') }"></i>
+                <!-- /ko -->
+              </td>
             </tr>
           </tbody>
         </table>