Basic download link stuff.
authorCameron Ball <cameron@getapproved.com.au>
Fri, 28 Nov 2014 08:04:13 +0000 (16:04 +0800)
committerCameron Ball <cameron@getapproved.com.au>
Fri, 28 Nov 2014 08:04:13 +0000 (16:04 +0800)
app/components/simfiles/simfile-directive.js
app/components/simfiles/simfile.html
app/pages/packs/packs.html
app/pages/simfiles/simfiles.html

index 6442079..8c92113 100644 (file)
@@ -16,7 +16,8 @@ directive('simfile', function()
             steps: '=',
             bpmChanges: '=',
             bgChanges: '=',
-            fgChanges: '='
+            fgChanges: '=',
+            download: '='
         },
         templateUrl: 'components/simfiles/simfile.html'
     };
index 02681db..fabd97c 100644 (file)
@@ -40,5 +40,9 @@
         <th>FGChanges:</th>
         <td>{{fgChanges}}</td>
     </tr>
+    <tr ng-if="download">
+        <th>Download:</th>
+        <td><a href="{{rockEndpoint}}{{download}}">DivinElegy</a></td>
+    </tr>
 </table>
 <div class="clearfix"></div>
\ No newline at end of file
index 1945719..d965293 100644 (file)
@@ -36,6 +36,16 @@ BPM changes: <input type="checkbox" ng-model="bpmChangesFilterKeyword">
                     <th>Contributors:</th>\r
                     <td>{{contributors}}</td>\r
                 </tr>\r
+                <tr ng-if="pack.mirrors">\r
+                    <th>Downloads:</th>\r
+                    <td>\r
+                        <ul>\r
+                            <li class="mirrorListing" ng-repeat="mirror in pack.mirrors">\r
+                                <a href="{{mirror.uri}}">{{mirror.source}}{{$last ? '' : ', '}}</a>\r
+                            </li>\r
+                        </ul>\r
+                    </td>\r
+                </tr>\r
             </table>\r
             <div class="clearfix"></div>\r
             <h1>Charts</h1>\r
index 7e27d17..dfd6d4e 100644 (file)
@@ -33,6 +33,7 @@ BPM changes: <input type="checkbox" ng-model="bpmChangesFilterKeyword">
                      bpm-changes="simfile.bpmChanges"\r
                      bg-changes="simfile.bgChanges"\r
                      fg-changes="simfile.fgChanges"\r
+                     download="simfile.download"\r
             />\r
         </div>\r
     </li>\r