Browse Source

Merge remote-tracking branch 'origin/master'

Conflicts:
	app/client/app.css
	app/client/client.js
KrisVos130 9 years ago
parent
commit
b7d2b1f596
3 changed files with 26 additions and 6 deletions
  1. 7 1
      app/client/app.css
  2. 14 3
      app/client/client.js
  3. 5 2
      app/client/templates/dashboard.html

+ 7 - 1
app/client/app.css

@@ -684,8 +684,9 @@ footer .fa {
 }
 }
 
 
 .station > h3 {
 .station > h3 {
-    line-height: 200px;
+    line-height: 0px;
     font-size: 42px;
     font-size: 42px;
+    margin-bottom: 90px;
 }
 }
 
 
 .station > h5 {
 .station > h5 {
@@ -1562,6 +1563,11 @@ input[type="checkbox"]:checked + #two-label:after {
     display: block;
     display: block;
 }
 }
 
 
+.user-num{
+    font-size: 2em !important;
+    line-height: 100px;
+}
+
 .remove-import-song {
 .remove-import-song {
     position: absolute;
     position: absolute;
     right: 0px;
     right: 0px;

+ 14 - 3
app/client/client.js

@@ -480,6 +480,11 @@ Template.dashboard.helpers({
         } else {
         } else {
             return {};
             return {};
         }
         }
+    },
+    userNum: function(){
+        var type = this.type;
+        var userNum = Rooms.findOne({type: type}).users;
+        return userNum;
     }
     }
 });
 });
 
 
@@ -1041,11 +1046,17 @@ Template.room.events({
     "change #si_or_pl": function(){
     "change #si_or_pl": function(){
         if($("#select_playlist").is(':selected')){
         if($("#select_playlist").is(':selected')){
             $("#search-info").hide();
             $("#search-info").hide();
-            $("#playlist-import").show();
-        } else{
+            $("#playlist-buttons").show();
+        }
+        if($("#select_single").is(':selected')){
             $("#search-info").show();
             $("#search-info").show();
-            $("#playlist-import").hide();
+            $("#playlist-buttons").hide();
         }
         }
+    },
+    "click #close-modal-a": function(){
+        $("#select_single").attr("selected", true);
+        $("#search-info").show();
+        $("#playlist-buttons").hide();
     }
     }
 });
 });
 
 

+ 5 - 2
app/client/templates/dashboard.html

@@ -17,10 +17,13 @@
             {{else}}
             {{else}}
                 <div class="col-md-4 col-sm-6 col-xs-12">
                 <div class="col-md-4 col-sm-6 col-xs-12">
                     <div class="station">
                     <div class="station">
+                        {{#with type=type}}
+                            <i class="fa fa-user user-num"></i> <span class="user-num">{{userNum}}</span>
+                        {{/with}}
                         <h3>{{display}}</h3>
                         <h3>{{display}}</h3>
                         {{#with type=type}}
                         {{#with type=type}}
-                        <h5>{{currentSong.song.title}}</h5>
-                        <h6>{{currentSong.song.artist}}</h6>
+                            <h5>{{currentSong.song.title}}</h5>
+                            <h6>{{currentSong.song.artist}}</h6>
                         {{/with}}
                         {{/with}}
                         <a href="/{{type}}" class="station_link"></a>
                         <a href="/{{type}}" class="station_link"></a>
                     </div>
                     </div>