Pony.fm/public/templates/tracks/index.html

86 lines
4.8 KiB
HTML
Raw Normal View History

2013-07-31 13:47:16 +02:00
<ul class="dropdowns">
2015-10-25 03:35:37 +01:00
<li class="dropdown" ng-class="{'has-filter': query.filters.trackTypes.selectedArray.length}">
<a class="dropdown-toggle btn btn-default">
2015-10-25 03:35:37 +01:00
Type: <strong>{{query.filters.trackTypes.title}}</strong>
</a>
<a class="btn btn-default" pfm-eat-click ng-click="clearFilter('trackTypes')"><i class="icon-remove"></i></a>
2015-10-25 03:35:37 +01:00
<ul class="dropdown-menu">
<li ng-repeat="type in ::filters.trackTypes.values track by type.id"
2016-01-08 01:46:12 +01:00
ng-class="{selected: query.isIdSelected('trackTypes', type.id)}"
>
2015-10-25 03:35:37 +01:00
<a class="dont-close" pfm-eat-click href="#" ng-click="toggleListFilter('trackTypes', type.id); $event.stopPropagation();"><i class="icon-plus"></i></a>
<a pfm-eat-click href="#" ng-click="setListFilter('trackTypes', type.id);">{{::type.title}}</a>
2015-10-25 03:35:37 +01:00
</li>
</ul>
</li>
<li class="dropdown" ng-class="{'has-filter': query.filters.showSongs.selectedArray.length}">
<a class="dropdown-toggle btn btn-default">
2015-10-25 03:35:37 +01:00
Show Songs: <strong>{{query.filters.showSongs.title}}</strong>
</a>
<a class="btn btn-default" pfm-eat-click ng-click="clearFilter('showSongs')"><i class="icon-remove"></i></a>
2015-10-25 03:35:37 +01:00
<ul class="dropdown-menu">
<li ng-repeat="song in ::filters.showSongs.values track by song.id"
2016-01-08 01:46:12 +01:00
ng-class="{selected: query.isIdSelected('showSongs', song.id)}"
>
2015-10-25 03:35:37 +01:00
<a class="dont-close" pfm-eat-click href="#" ng-click="toggleListFilter('showSongs', song.id); $event.stopPropagation();"><i class="icon-plus"></i></a>
<a pfm-eat-click href="#" ng-click="setListFilter('showSongs', song.id);">{{::song.title}}</a>
2015-10-25 03:35:37 +01:00
</li>
</ul>
</li>
<li class="dropdown" ng-class="{'has-filter': query.filters.genres.selectedArray.length}">
<a class="dropdown-toggle btn btn-default">
2015-10-25 03:35:37 +01:00
Genre: <strong>{{query.filters.genres.title}}</strong>
</a>
<a class="btn btn-default" pfm-eat-click ng-click="clearFilter('genres')"><i class="icon-remove"></i></a>
2015-10-25 03:35:37 +01:00
<ul class="dropdown-menu">
<li ng-repeat="genre in ::filters.genres.values track by genre.id" ng-class="{selected: query.isIdSelected('genres', genre.id)}">
2015-10-25 03:35:37 +01:00
<a class="dont-close" pfm-eat-click href="#" ng-click="toggleListFilter('genres', genre.id); $event.stopPropagation();"><i class="icon-plus"></i></a>
<a pfm-eat-click href="#" ng-click="setListFilter('genres', genre.id);">{{::genre.title}}</a>
2015-10-25 03:35:37 +01:00
</li>
</ul>
</li>
<li class="dropdown" ng-class="{'has-filter': !query.filters.isVocal.isDefault}">
<a class="dropdown-toggle btn btn-default">
2015-10-25 03:35:37 +01:00
Is Vocal: <strong>{{query.filters.isVocal.title}}</strong>
</a>
<a class="btn btn-default" pfm-eat-click ng-click="clearFilter('isVocal')"><i class="icon-remove"></i></a>
2015-10-25 03:35:37 +01:00
<ul class="dropdown-menu">
<li ng-repeat="item in ::filters.isVocal.values track by $index"
2016-01-08 01:46:12 +01:00
ng-class="{selected: item == query.filters.isVocal}"
>
<a pfm-eat-click href="#" ng-click="setFilter('isVocal', item);">{{::item.title}}</a>
2015-10-25 03:35:37 +01:00
</li>
</ul>
</li>
<li class="dropdown" ng-class="{'has-filter': !query.filters.sort.isDefault}">
<a class="dropdown-toggle btn btn-default">
2015-10-25 03:35:37 +01:00
Order: <strong>{{query.filters.sort.title}}</strong>
</a>
<a class="btn btn-default" pfm-eat-click ng-click="clearFilter('sort')"><i class="icon-remove"></i></a>
2015-10-25 03:35:37 +01:00
<ul class="dropdown-menu">
<li ng-repeat="filter in ::filters.sort.values track by $index" ng-class="{selected: filter == query.filters.sort}">
<a pfm-eat-click href="#" ng-click="setFilter('sort', filter)">{{::filter.title}}</a>
2015-10-25 03:35:37 +01:00
</li>
</ul>
</li>
2013-07-31 13:47:16 +02:00
</ul>
2016-01-08 01:46:12 +01:00
<div class="pagination" ng-if="totalPages > 1">
2015-10-25 03:35:37 +01:00
<ul>
<li ng-class="{disabled: !prevPage}"><a href="#" ng-click="gotoPage(prevPage);" pfm-eat-click>Prev</a></li>
<li ng-repeat="page in pages track by page" ng-class="{active: page == currentPage}">
2016-02-16 14:04:00 +01:00
<a href="#" ng-click="gotoPage(page);" pfm-eat-click>{{page}}</a>
2015-10-25 03:35:37 +01:00
</li>
<li ng-class="{disabled: !nextPage}"><a href="#" ng-click="gotoPage(nextPage);" pfm-eat-click>Next</a></li>
<li class="pagination-jump">
<a href="#" ng-click="showPageSelector();" ng-hide="pageSelectorShown" pfm-eat-click>Jump&hellip;</a>
2016-02-16 14:04:00 +01:00
<form ng-submit="jumpToPage(inputPageNumber)" ng-show="pageSelectorShown">
<input type="number" id="pagination-jump-destination" ng-model="inputPageNumber" ng-blur="hidePageSelector()" />
<input type="submit" />
</form>
</li>
2015-10-25 03:35:37 +01:00
</ul>
2013-07-31 13:47:16 +02:00
</div>
2015-10-25 03:35:37 +01:00
<ui-view></ui-view>