From 313bd7999c729625fc240ef0c673de17856fb088 Mon Sep 17 00:00:00 2001
From: Christian Pointner <equinox@helsinki.at>
Date: Thu, 25 Jan 2018 13:12:43 +0100
Subject: added cnt badge to music pools


diff --git a/www/index.html b/www/index.html
index df85343..69c695a 100644
--- a/www/index.html
+++ b/www/index.html
@@ -283,9 +283,14 @@
               </ul>
             </div>
           </div>
-          <div class="col-md-9">
+          <div class="col-md-6">
             <h2 id="musicpool-title"></h2>
           </div>
+          <div class="col-md-2">
+            <div id="musicpool-cnt-container">
+              <span id="musicpool-cnt" class="badge">0</span>&nbsp;Einträge
+            </div>
+          </div>
         </div>
         <div class="musicpoolContainer">
 
diff --git a/www/js/musicpools.js b/www/js/musicpools.js
index 7395ef6..52ea231 100644
--- a/www/js/musicpools.js
+++ b/www/js/musicpools.js
@@ -167,6 +167,7 @@ Rdxport.MusicpoolView.prototype.render = function() {
   $('#app-musicpools .musicpoolContainer').html(this.$el);
 
   $('#musicpool-title').text(this.model.title);
+  $('#musicpool-cnt').text(this.model.carts.length);
   $('table tbody tr', this.$el).remove();
 
   this.cartViews = [];
diff --git a/www/styles/musicpools.css b/www/styles/musicpools.css
index c0652f1..371b3ca 100644
--- a/www/styles/musicpools.css
+++ b/www/styles/musicpools.css
@@ -20,10 +20,21 @@
  *  along with rhwebimport. If not, see <http://www.gnu.org/licenses/>.
  */
 
+#musicpool-header-spacer {
+  margin-top: 1.3em;
+}
+
 #musicpool-title {
   font-weight: bold;
+  margin-top: 10px;
 }
 
-#musicpool-header-spacer {
-  margin-top: 1.3em;
+#musicpool-cnt-container {
+  font-size: 1.2em;
+  float: right;
+  margin-top: 15px;
+}
+
+div.musicpoolContainer {
+  margin-top: 2em;
 }
-- 
cgit v0.10.2