Update sidebar. Fixes #2
authorCameron Ball <cameron@getapproved.com.au>
Wed, 20 May 2015 04:20:16 +0000 (12:20 +0800)
committerCameron Ball <cameron@getapproved.com.au>
Wed, 20 May 2015 04:20:16 +0000 (12:20 +0800)
app/components/simfiles/latest-pack.html
app/components/simfiles/latest-simfile.html
app/components/simfiles/latestpack-directive.js
app/components/simfiles/most-downloaded.html
app/css/divinelegy.css
app/pages/packs/packs.html

index 4606ba7..3128dc7 100644 (file)
@@ -2,12 +2,9 @@
 <a ng-href="{{pack.mirrors[pack.mirrors.length-1].uri}}">
     <img class="banner" ng-src="{{rockEndpoint}}{{pack.banner}}" alt="banner" />
 </a>
+<h3>{{pack.title}}</h3>
 <table>
     <tr>
-        <th>Title:</th>
-        <td>{{pack.title}}</td>
-    </tr>
-    <tr>
         <th>By:</th>
         <td>{{contributors}}<td>
     </tr>
index c2f72a7..afe7ef5 100644 (file)
@@ -1,11 +1,8 @@
 <h2>Latest Simfile</h2>
 <img class="banner" ng-src="{{rockEndpoint}}{{simfile.banner}}" alt="swage" />
+<h2>{{simfile.title}}</h2>
 <table>
     <tr>
-        <th>Title:</th>
-        <td>{{simfile.title}}</td>
-    </tr>
-    <tr>
         <th>By:</th>
         <td>{{authors}}<td>
     </tr>
index 8ee80bb..925f674 100644 (file)
@@ -89,6 +89,11 @@ directive('latestPack', ['rockEndpoint', '$http', 'UserService', 'HelloService',
                    });
                 }
                 
+                for (var i=0; i<$scope.pack.mirrors.length; i++)
+                {
+                    $scope.pack.mirrors[i].source = $scope.pack.mirrors[i].source.replace("Stepmania Online", "SM Online");
+                }
+                
                 $rootScope.$$phase || $rootScope.$apply();
             });
         }
index 5da49ac..af75594 100644 (file)
@@ -2,12 +2,9 @@
 <a ng-href="{{packOrSimfile.mirrors[packOrSimfile.mirrors.length-1].uri}}">
     <img class="banner" ng-src="{{rockEndpoint}}{{banner}}" alt="banner" />
 </a>
+<h3>{{title}}</h3>
 <table>
     <tr>
-        <th>Title:</th>
-        <td>{{title}}</td>
-    </tr>
-    <tr>
         <th>By:</th>
         <td>{{contributors}}<td>
     </tr>
index 0dd470d..d3ca9a3 100644 (file)
@@ -187,7 +187,7 @@ td {
     text-align: center;
 }
 
-h1, h2 {
+h1, h2, h3 {
     color: white;
     font-weight: bold;
     margin: 18px 0px 0px 0px;
@@ -211,6 +211,10 @@ h2 {
     margin-bottom: 2px;
 }
 
+h3 {
+    font-size: 15px;
+}
+
 .panel .banner {
     max-width: 130px;
     border: 2px solid #000000;
index f56eea5..7d35efc 100644 (file)
@@ -45,7 +45,7 @@
         </div>\r
         <div id="sorts">\r
             <select ng-model="$parent.sortOrder">\r
-                <option value="alpha" selected>Alphabetical</option>\r
+                <option value="alpha">Alphabetical</option>\r
                 <option value="chrono">Newest</option>\r
             </select><br />\r
             <label>Reverse sort: \r