Browse Source

Add count for each drafts section on dashboard

Markus Ochel 12 years ago
parent
commit
355cafef39
2 changed files with 9 additions and 3 deletions
  1. 6 0
      admin/static/css/theme.styl
  2. 3 3
      admin/templates/dashboard.html

+ 6 - 0
admin/static/css/theme.styl

@@ -648,6 +648,12 @@ span.label
       color: $lightGrey
       margin-bottom: 0.5em
 
+      .count
+        float: right
+
+    > .list
+      margin-bottom: 2em
+
 
 ul.ui-multi-select
   list-style-type: none

+ 3 - 3
admin/templates/dashboard.html

@@ -1,7 +1,7 @@
 <div class="content">
   <h1>Dashboard <i class="icon icon-gauge"></i></h1>
 
-  <h3>Draft Essays</h3>
+  <h3>Draft Essays <span class="count">{{essays.length}}</span></h3>
   {{#if essays}}
   <ul class="drafts essays list">
     {{#each essays}}
@@ -21,7 +21,7 @@
   <div class="no-data">No items to show in this view.</div>
   {{/if}}
 
-  <h3>Draft Videos</h3>
+  <h3>Draft Videos <span class="count">{{videos.length}}</span></h3>
   {{#if videos}}
   <ul class="drafts videos list">
     {{#each videos}}
@@ -41,7 +41,7 @@
   <div class="no-data">No items to show in this view.</div>
   {{/if}}
 
-  <h3>Draft Scenes</h3>
+  <h3>Draft Scenes <span class="count">{{scenes.length}}</span></h3>
   {{#if scenes}}
   <ul class="drafts scenes list">
     {{#each scenes}}