diff --git a/public/templates/partials/announcements/hwc/winners.html b/public/templates/partials/announcements/hwc/winners.html
index 2869dc41..f2073201 100644
--- a/public/templates/partials/announcements/hwc/winners.html
+++ b/public/templates/partials/announcements/hwc/winners.html
@@ -4,7 +4,7 @@
- -
+
-
diff --git a/resources/assets/scripts/app/controllers/dashboard.coffee b/resources/assets/scripts/app/controllers/dashboard.coffee
index 12db31fa..54e0badc 100644
--- a/resources/assets/scripts/app/controllers/dashboard.coffee
+++ b/resources/assets/scripts/app/controllers/dashboard.coffee
@@ -39,10 +39,27 @@ module.exports = angular.module('ponyfm').controller "dashboard", [
if $scope.announcement.tracks.length > 0
console.log($scope.announcement.tracks)
$scope.announcement.parsedTracks = []
- for track in $scope.announcement.tracks
+ tempTracks = []
+
+ # Not the greatest, but sod it
+ for track, i in $scope.announcement.tracks
+ console.log(i)
tracks.fetch(track, false).done (trackResponse) ->
- $scope.announcement.parsedTracks.push(trackResponse.track)
- console.log(trackResponse)
+ theTrack = trackResponse.track
+ $scope.announcement.tracks.map((obj, index) ->
+ if obj == theTrack.id
+ theTrack.place = index
+ )
+ tempTracks.push(theTrack)
+
+ console.log(tempTracks)
+ if tempTracks.length == $scope.announcement.tracks.length
+ tempTracks.sort((a,b) ->
+ return a.place - b.place
+ )
+ $scope.announcement.parsedTracks = tempTracks
+
+
dashboard.refresh().done (res) ->
$scope.recentTracks = res.recent_tracks
diff --git a/resources/assets/styles/dashboard.less b/resources/assets/styles/dashboard.less
index 6fa3acc7..deb06bb4 100644
--- a/resources/assets/styles/dashboard.less
+++ b/resources/assets/styles/dashboard.less
@@ -238,11 +238,11 @@
}
&:hover {
- background: rgba(0,0,0,0.2);
+ background: rgba(0, 0, 0, 0.2);
}
&.is-playing {
- background: rgba(0,0,0,0.1);
+ background: rgba(0, 0, 0, 0.1);
}
}
}