feat(status): load torrent_status data

This commit is contained in:
OldHawk
2017-05-26 14:33:05 +08:00
parent e162d8e48a
commit be03dc0cb6
5 changed files with 22 additions and 1 deletions

View File

@@ -343,6 +343,11 @@
MUSIC: 'Music',
OTHER: 'Other'
},
TORRENT_STATUS_LABEL: {
NEW: 'New',
REVIEWED: 'Reviewed',
},
//user message box
MESSAGES_INBOX: 'Messages Inbox',

View File

@@ -343,6 +343,10 @@
MUSIC: '音乐',
OTHER: '其它'
},
TORRENT_STATUS_LABEL: {
NEW: '未审核',
REVIEWED: '已审核',
},
//user message box
MESSAGES_INBOX: '消息收件箱',

View File

@@ -576,6 +576,13 @@ body {
}
}
.label-tstatus {
&:hover {
cursor: pointer;
color: #fff;
}
}
.label-sale {
&:hover {
cursor: pointer;

View File

@@ -74,7 +74,8 @@
vm.getUploadedTorrend = function () {
TorrentsService.get({
userid: vm.user._id,
torrent_type: 'all'
torrent_type: 'all',
torrent_status: 'all'
}, function (items) {
vm.uploadedList = items.rows;
vm.buildPager();

View File

@@ -59,6 +59,10 @@
<span class="label label-ttype label-primary" ng-click="$event.stopPropagation();">
{{'TORRENT_TYPE_LABEL.' + item.torrent_type.toUpperCase() | translate}}
</span>
<span class="label label-tstatus label-danger" ng-show="item.torrent_status == 'new'"
ng-click="$event.stopPropagation();">
{{'TORRENT_STATUS_LABEL.' + item.torrent_status.toUpperCase() | translate}}
</span>
<span class="label label-release label-warning" ng-show="item.resource_detail_info.release_date"
ng-click="$event.stopPropagation();">
{{ item.resource_detail_info.release_date}}