diff --git a/app/library/Assets.php b/app/library/Assets.php index 0e313a3a..2a2b6b24 100644 --- a/app/library/Assets.php +++ b/app/library/Assets.php @@ -57,6 +57,7 @@ new FileAsset('scripts/base/angular-ui-sortable.js'), new FileAsset('scripts/base/angular-ui-date.js'), new FileAsset('scripts/base/angular-ui-router.js'), + new FileAsset('scripts/base/angularytics.js'), new AssetCollection([ new GlobAsset('scripts/shared/*.coffee'), new GlobAsset('scripts/shared/*.js'), diff --git a/app/models/Entities/Track.php b/app/models/Entities/Track.php index aa4f2612..72c658d1 100644 --- a/app/models/Entities/Track.php +++ b/app/models/Entities/Track.php @@ -68,22 +68,17 @@ ->groupBy('id') ->orderBy('plays', 'desc') ->take(20); - return $query->get(['*', DB::raw('count(*) as plays')]); + + $results = []; + + foreach($query->get(['*', DB::raw('count(*) as plays')]) as $track) { + $results[] = self::mapPublicTrackSummary($track); + } + + return $results; }); - $results = []; - $i = 0; - - foreach($tracks as $track) { - if ($i < $count) { - $results[] = self::mapPublicTrackSummary($track); - $i++; - } else { - break; - } - } - - return $results; + return $tracks; } public static function mapPublicTrackShow($track) { diff --git a/app/views/shared/_app_layout.blade.php b/app/views/shared/_app_layout.blade.php index a41c7b3c..aa7ceb2a 100644 --- a/app/views/shared/_app_layout.blade.php +++ b/app/views/shared/_app_layout.blade.php @@ -54,8 +54,8 @@ @if (Auth::check()) -
The pony fan music site. By a brony, for bronies.
++ We provide a comprehensive set of free tools to host, distribute, and catalogue your music, integrated with a rich community experience for artists and listeners alike. +
++ Features include unlimited downloads, unlimited uploads, lossless uploads and much more! Click here to get all of our features! +
+- Welcome to Pony.fm's BETA 2 preview! If you were looking for the functional website, head on over to Pony.fm. -
+- This is an early look at the next Pony.fm release. Pony.fm is a music hosting website - for Bronies - and you can learn more about it here. -
- -- This web application is under heavy development. While you are free to browse around, please note - that although the track and user data on this site is a copy of Pony.fm - all data will be erased when - the preview ends, or whenever we feel like. As such, please do not use this application for hosting your new music. -
- -- At this time, many features are notably missing - such as: -
-- And more. The layout and design is also subject to change in the future. -
-- However, we welcome any and all feedback - so if you have a suggestion or bug report, you can hop on over to - Pony.fm's Forum. -
-We hope you enjoy taking a look at the future of Pony.fm as much as we did building it!
+Some My Little Pony: Friendship is Magic fans - typically referred to as "bronies" are the musical type, and show their appreciation for the show by pouring their talent into fan music. -
The brony fan music community is diverse, spanning genres from symphonic metal to trance and everything in between. But most importantly, the community creates music.
-A lot of music.
-All this music has to go somewhere. YouTube, SoundCloud, and Bandcamp are popular outlets that many brony musicians use to host their tunes. But no mainstream sites are specifically designed for our fandom's needs, and they're not particularly helpful if, as a listener, you're looking for pony fan music.
-That's where Pony.fm comes in. Pony.fm is a community, hosting service, and music database rolled into one, with a generous dash of pony on top.
-Some My Little Pony: Friendship is Magic fans - typically referred to as "bronies" are the musical type, and show their appreciation for the show by pouring their talent into fan music. +
The brony fan music community is diverse, spanning genres from symphonic metal to trance and everything in between. But most importantly, the community creates music.
+A lot of music.
+All this music has to go somewhere. YouTube, SoundCloud, and Bandcamp are popular outlets that many brony musicians use to host their tunes. But no mainstream sites are specifically designed for our fandom's needs, and they're not particularly helpful if, as a listener, you're looking for pony fan music.
+That's where Pony.fm comes in. Pony.fm is a community, hosting service, and music database rolled into one, with a generous dash of pony on top.
-Eenope!
-Pony.fm is an original project. Although it takes inspiration from a number of well-known services for the general public, Pony.fm is not specifically modeled after any one of them. As a fan site itself, Pony.fm is an experience all its own.
-Simply put, "Pony.fm is Pony.fm."
+Eenope!
+Pony.fm is an original project. Although it takes inspiration from a number of well-known services for the general public, Pony.fm is not specifically modeled after any one of them. As a fan site itself, Pony.fm is an experience all its own.
+Simply put, "Pony.fm is Pony.fm."
-Pony.fm is a service created by a brony, for bronies. Every inch of the Pony.fm experience is crafted with ponies and bronies in mind. Some of the features necessarily resemble what you may find on other sites - lossless uploads, for example - but some features are specific to the pony fan music community.
-Created as a service for the fandom, Pony.fm aims to be the one-stop shop for all things pony music, for artists and listeners alike.
-Pony.fm is a service created by a brony, for bronies. Every inch of the Pony.fm experience is crafted with ponies and bronies in mind. Some of the features necessarily resemble what you may find on other sites - lossless uploads, for example - but some features are specific to the pony fan music community.
+Created as a service for the fandom, Pony.fm aims to be the one-stop shop for all things pony music, for artists and listeners alike.
-MLP Forums and Pony.fm share an owner, and each encompasses a different segment of the global My Little Pony: Friendship is Magic community. Put together, both sites are able to offer a richer "supercommunity" experience than either site could offer on its own.
+MLP Forums and Pony.fm share an owner, and each encompasses a different segment of the global My Little Pony: Friendship is Magic community. Put together, both sites are able to offer a richer "supercommunity" experience than either site could offer on its own.
-Pony.fm is built and owned by Feld0, a pony-loving teenager who heard the call of code. Recognizing the need for a true pony-specific music hosting site, and realizing that MLP Forums provided him with the resources he needed to make it happen, he created a blank text file and started pumping code into his computer.
-Pony.fm is built and owned by Feld0, a pony-loving teenager who heard the call of code. Recognizing the need for a true pony-specific music hosting site, and realizing that MLP Forums provided him with the resources he needed to make it happen, he created a blank text file and started pumping code into his computer.