瀏覽代碼

[security] Visual clue for non-empty databases

Enrico Berti 11 年之前
父節點
當前提交
fa07590
共有 2 個文件被更改,包括 11 次插入2 次删除
  1. 2 1
      apps/security/src/security/templates/hive.mako
  2. 9 1
      apps/security/static/css/security.css

+ 2 - 1
apps/security/src/security/templates/hive.mako

@@ -432,7 +432,8 @@ ${ layout.menubar(section='hive') }
 
 <%def name="treeIcons()">
   'fa-hdd-o': isServer(),
-  'fa-database': isDb(),
+  'fa-database-open': isDb() && nodes().length > 0,
+  'fa-database': isDb() && nodes().length == 0,
   'fa-table': isTable(),
   'fa-columns': isColumn()
 </%def>

+ 9 - 1
apps/security/static/css/security.css

@@ -294,4 +294,12 @@ h1.emptyMessage {
 
 .big-btn:hover .bulk-action-description, .big-btn.selected .bulk-action-description {
   display: block;
-}
+}
+
+.fa-database-open:before {
+  content:"\f1c0"
+}
+
+.fa-database-open {
+  color: #666!important;
+}