Pony.fm/public/templates/directives/tracks-list.html

42 lines
2.4 KiB
HTML
Raw Normal View History

2016-02-14 12:36:34 +01:00
<ul class="tracks-listing {{::class}}">
<li ng-repeat="track in tracks track by track.id" ng-class="{'can-favourite': auth.isLogged, 'is-favourited': auth.isLogged && track.user_data.is_favourited, 'is-playing': track.isPlaying, 'has-played': auth.isLogged && track.user_data.views}">
2015-10-25 03:35:37 +01:00
<div class="image">
<a href="#" class="play-button" pfm-eat-click ng-click="play(track)">
2016-05-20 17:46:44 +02:00
<i class="fa fa-play" ng-if="!track.isPlaying"></i>
<i class="fa fa-pause" ng-if="track.isPlaying"></i>
2015-10-25 03:35:37 +01:00
</a>
<img pfm-src-loader="track.covers.thumbnail" pfm-src-size="thumbnail" />
</div>
<div class="icons">
2016-05-20 17:46:44 +02:00
<span><i ng-class="::{'fa fa-microphone-slash': !track.is_vocal, 'fa fa-microphone': track.is_vocal}"></i></span>
2016-02-14 12:36:34 +01:00
<a pfm-eat-click class="icon-favourite" href="#" ng-click="toggleFavourite(track)" ng-if="::auth.isLogged">
2016-05-20 17:46:44 +02:00
<i class="fa fa-star-o"></i>
</a>
<a pfm-eat-click href="#" ng-click="removeFromPlaylist(track)" ng-if="::canModifyPlaylist()">
2016-05-20 17:46:44 +02:00
<i class="fa fa-trash"></i>
</a>
2015-10-25 03:35:37 +01:00
</div>
<a class="info" ng-href="{{::track.url}}" ng-if="!clickOverride">
<span class="title">{{::track.title}}</span>
<span class="stats" title="{{::track.stats.favourites}} Favourites / {{:: track.stats.comments}} Comments / {{::track.stats.plays}} Plays">
<strong>{{::track.stats.favourites}}</strong>f
<strong>{{::track.stats.comments}}</strong>c
<strong>{{::track.stats.plays}}</strong>p
</span>
<span class="artist">{{::track.user.name}} / {{::track.genre.name}}</span>
</a>
<a class="info" ng-if="clickOverride" href="#" ng-click="clickOverride({id: track.id})">
<span class="title">{{::track.title}}</span>
2016-02-14 12:36:34 +01:00
<span class="stats" title="{{::track.stats.favourites}} Favourites / {{:: track.stats.comments}} Comments / {{::track.stats.plays}} Plays">
<strong>{{::track.stats.favourites}}</strong>f
<strong>{{::track.stats.comments}}</strong>c
<strong>{{::track.stats.plays}}</strong>p
2015-10-25 03:35:37 +01:00
</span>
<span class="artist">{{::track.user.name}} / {{::track.genre.name}}</span>
2015-10-25 03:35:37 +01:00
</a>
</li>
2016-01-08 01:46:12 +01:00
<li ng-if="!tracks.length" class="empty">
No tracks found&hellip;
2015-10-25 03:35:37 +01:00
</li>
</ul>