Pony.fm/public/templates/directives/playlists-list.html
2016-08-08 17:22:31 +01:00

23 lines
1.2 KiB
HTML

<div layout="row" layout-wrap>
<div ng-if="!playlists.length" class="empty ng-scope">
No playlists found…
</div>
<a ng-repeat="playlist in playlists track by playlist.id" ng-href="{{::playlist.url}}" class="clickable" flex-xs="{{xsSize}}" flex-sm="50" flex-gt-sm="{{smSize}}" flex-gt-md="{{mdSize}}" flex-gt-lg="{{lgSize}}">
<md-card class="album">
<img class="md-card-image" pfm-src-loader="::playlist.covers.normal" pfm-src-size="normal">
<md-card-title>
<md-card-title-text>
<span class="md-headline">{{::playlist.title}}</span>
<span class="md-subhead">{{::playlist.user.name}}</span>
</md-card-title-text>
</md-card-title>
<md-card-actions layout="row" layout-align="end center" class="album-stats">
<span><md-icon>favorite</md-icon> {{::playlist.stats.favourites}}</span>
<span><md-icon>comment</md-icon> {{::playlist.stats.comments}}</span>
<span><md-icon>file_download</md-icon> {{::playlist.stats.downloads}}</span>
</md-card-actions>
</md-card>
</a>
</div>