mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-03-05 03:31:04 +01:00
fix(status): torrent tag with type of TVSerial
This commit is contained in:
@@ -91,12 +91,12 @@
|
||||
* @param tag: tag name
|
||||
* @returns {*}
|
||||
*/
|
||||
vm.getTagTitle = function (tag) {
|
||||
vm.getTagTitle = function (tag, item) {
|
||||
var tmp = tag;
|
||||
var find = false;
|
||||
var r = undefined;
|
||||
|
||||
switch (vm.torrentType) {
|
||||
switch (item.torrent_type) {
|
||||
case 'tvserial':
|
||||
r = vm.resourcesTags.tv;
|
||||
break;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<section ng-controller="UploadedController as vm" ng-init="vm.getUploadedTorrend();">
|
||||
<div class="row margin-top-50">
|
||||
<div class="col-md-12 torrent-list" id="top_of_torrent_list">
|
||||
<div class="row margin-top-20">
|
||||
<div class="col-md-12 torrent-list" id="top_of_torrent_list" ng-show="vm.pagedItems">
|
||||
|
||||
<div class="pagination-div-top">
|
||||
<ul uib-pagination boundary-links="true" max-size="8" items-per-page="vm.itemsPerPage" total-items="vm.filterLength"
|
||||
@@ -81,7 +81,7 @@
|
||||
<span ng-repeat="t in item.torrent_tags">
|
||||
<span class="label label-tag" ng-class="{'used': vm.searchTags.indexOf(t) !== -1}"
|
||||
ng-click="$event.stopPropagation();">
|
||||
{{ 'RESOURCESTAGS.' + vm.getTagTitle(t) + '.' + t | translate}}
|
||||
{{ 'RESOURCESTAGS.' + vm.getTagTitle(t, item) + '.' + t | translate}}
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user