mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-22 15:22:34 +01:00
feat(status): load torrent_status data
This commit is contained in:
@@ -343,6 +343,11 @@
|
||||
MUSIC: 'Music',
|
||||
OTHER: 'Other'
|
||||
},
|
||||
TORRENT_STATUS_LABEL: {
|
||||
NEW: 'New',
|
||||
REVIEWED: 'Reviewed',
|
||||
},
|
||||
|
||||
//user message box
|
||||
MESSAGES_INBOX: 'Messages Inbox',
|
||||
|
||||
|
||||
@@ -343,6 +343,10 @@
|
||||
MUSIC: '音乐',
|
||||
OTHER: '其它'
|
||||
},
|
||||
TORRENT_STATUS_LABEL: {
|
||||
NEW: '未审核',
|
||||
REVIEWED: '已审核',
|
||||
},
|
||||
|
||||
//user message box
|
||||
MESSAGES_INBOX: '消息收件箱',
|
||||
|
||||
@@ -576,6 +576,13 @@ body {
|
||||
}
|
||||
}
|
||||
|
||||
.label-tstatus {
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
.label-sale {
|
||||
&:hover {
|
||||
cursor: pointer;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user