feat(torrents): update torrent detail info page

This commit is contained in:
OldHawk
2018-05-18 16:49:46 +08:00
parent 6e3f1f4c6c
commit fe04540417
5 changed files with 34 additions and 48 deletions

View File

@@ -390,7 +390,6 @@
ALL_FILES_LIST: 'Files List',
VIDEO_SIZE: 'Video Size',
UPLOAD_TIME: 'Upload Time',
VIDEO_SALE_INFO: 'Video Sale Info',
SALE_EXPIRES_TIME: 'expires',
TORRENT_STATUS_TOP_TITLE: 'Top Level',
STATUS_TOP_KEY: 'TOP',

View File

@@ -381,7 +381,6 @@
ALL_FILES_LIST: '檔案清單',
VIDEO_SIZE: '視訊檔案大小',
UPLOAD_TIME: '上傳時間',
VIDEO_SALE_INFO: '視訊促銷資訊',
SALE_EXPIRES_TIME: '過期',
TORRENT_STATUS_TOP_TITLE: '置頂推薦',
STATUS_TOP_KEY: '置頂',

View File

@@ -390,7 +390,6 @@
ALL_FILES_LIST: '文件清单',
VIDEO_SIZE: '视频文件大小',
UPLOAD_TIME: '上传时间',
VIDEO_SALE_INFO: '视频促销信息',
SALE_EXPIRES_TIME: '过期',
TORRENT_STATUS_TOP_TITLE: '置顶推荐',
STATUS_TOP_KEY: '置顶',

View File

@@ -72,7 +72,7 @@
G: {{vm.salesGlobalConfig.global.value}}
</span>
<span class="label label-se-info" ng-if="vm.torrentType == 'tvserial'"
<span class="label label-se-info" ng-if="item.torrent_type == 'tvserial'"
ng-click="$event.stopPropagation();">S{{item.torrent_seasons}}E{{item.torrent_episodes}}</span>
<span class="label label-hnr-info" ng-if="item.torrent_hnr" ng-class="{'used': parent.filterHnR}"

View File

@@ -585,6 +585,7 @@
<span ng-if="vm.torrentLocalInfo.isAnonymous">{{ 'ANONYMOUS' | translate }}</span>
<span maker-info="vm.torrentLocalInfo.maker"></span>
<!--<span message-to="vm.torrentLocalInfo.user" to-class="message-to-icon"></span>-->
<span>&emsp;&emsp;{{'MESSAGES_FIELD.INFO_SEND_AT' | translate}}: {{vm.torrentLocalInfo.createdat | date: 'yyyy-MM-dd HH:mm:ss'}}</span>
</dd>
<dt class="h-line">{{ 'TORRENT_FILENAME' | translate}}</dt>
@@ -593,37 +594,51 @@
<dt class="h-line">{{ 'ANNOUNCE_URL' | translate}}</dt>
<dd class="h-line">{{vm.torrentLocalInfo.torrent_announce}}</dd>
<dt class="h-line">{{ 'TORRENT_INFO_HASH' | translate}}</dt>
<dd class="h-line">{{vm.torrentLocalInfo.info_hash}}</dd>
<dt class="h-line">{{ 'TABLE_FIELDS.SEEDED' | translate}}</dt>
<dd class="h-line"><span class="glyphicon glyphicon-arrow-up torrent-up"></span> {{vm.torrentLocalInfo.torrent_seeds}}</dd>
<dt class="h-line">{{ 'TABLE_FIELDS.LEECHED' | translate}}</dt>
<dd class="h-line"><span class="glyphicon glyphicon-arrow-down torrent-down"></span> {{vm.torrentLocalInfo.torrent_leechers}}</dd>
<dt class="h-line">{{ 'TABLE_FIELDS.DOWNLOAD' | translate}}</dt>
<dd class="h-line"><span class="glyphicon glyphicon-ok torrent-finished"></span> {{vm.torrentLocalInfo.torrent_finished}}</dd>
<div ng-if="vm.torrentLocalInfo.torrent_type == 'tvserial'">
<dt class="h-line">{{ 'TMDB_FIELDS.THIS_SE' | translate}}</dt>
<dd class="h-line">
<span class="se-info">S{{vm.torrentLocalInfo.torrent_seasons}}E{{vm.torrentLocalInfo.torrent_episodes}}</span>
</dd>
</div>
<dt class="h-line">{{ 'TABLE_FIELDS.ABBR_SEEDS_LEECHERS_FINISHED' | translate}}</dt>
<dd class="h-line">
<span><span class="glyphicon glyphicon-arrow-up torrent-up"></span> {{vm.torrentLocalInfo.torrent_seeds}}</span>&emsp;&emsp;
<span><span class="glyphicon glyphicon-arrow-down torrent-down"></span> {{vm.torrentLocalInfo.torrent_leechers}}</span>&emsp;&emsp;
<span><span class="glyphicon glyphicon-ok torrent-finished"></span> {{vm.torrentLocalInfo.torrent_finished}}</span>
</dd>
<dt class="h-line">{{ 'VIDEO_SIZE' | translate}}</dt>
<dd class="h-line">{{vm.torrentLocalInfo.torrent_size | bytes:2}}</dd>
<dt class="h-line">{{ 'UPLOAD_TIME' | translate}}</dt>
<dd class="h-line">{{vm.torrentLocalInfo.createdat | date: 'yyyy-MM-dd HH:mm:ss'}}</dd>
<dt class="h-line">{{ 'TORRENT_INFO_HASH' | translate}}</dt>
<dd class="h-line">{{vm.torrentLocalInfo.info_hash}}</dd>
<dt class="h-line">{{ 'ATTRIBUTE_TAGS' | translate}}</dt>
<dd class="h-line">
<div class="list-all-tags">
<span class="label label-release label-warning">{{ vm.torrentLocalInfo.resource_detail_info.release_date}}</span>
<span ng-if="vm.torrentLocalInfo.torrent_recommended != 'level0'">
<span class="label label-rlevel label-info">
{{ 'TORRENT_RECOMMEND_LEVEL_ITEM.' + vm.torrentLocalInfo.torrent_recommended.toUpperCase() | translate}}
</span>
</span>
<span class="label label-sale" ng-if="!vm.isGlobalSaleNow()"
title="{{vm.TGI.getTorrentSaleTypeDesc(vm.torrentLocalInfo);}} | {{ 'SALE_EXPIRES_TIME' | translate}}: {{vm.torrentLocalInfo.isSaling ? (vm.torrentLocalInfo.torrent_sale_expires | date: 'MM-dd HH:mm') : 'NO'}}"
ng-class="{'label-default': !vm.torrentLocalInfo.isSaling, 'label-success': vm.torrentLocalInfo.isSaling}">
{{vm.torrentLocalInfo.torrent_sale_status}} {{vm.torrentLocalInfo.isSaling ? (vm.torrentLocalInfo.torrent_sale_expires | unlife) : ''}}
</span>
<span class="label label-sale label-success" ng-if="vm.isGlobalSaleNow()"
title="{{vm.TGI.getTorrentSaleTypeDescByValue(vm.salesGlobalConfig.global.value);}}"
ng-click="$event.stopPropagation();">
G: {{vm.salesGlobalConfig.global.value}}
</span>
<span class="label label-hnr-info" ng-if="vm.torrentLocalInfo.torrent_hnr">H&R</span>
<span class="label label-se-info" ng-if="vm.torrentLocalInfo.torrent_type == 'tvserial'">
S{{vm.torrentLocalInfo.torrent_seasons}}E{{vm.torrentLocalInfo.torrent_episodes}}
</span>
<span title="{{ 'TORRENT_STATUS_TOP_TITLE' | translate}}" ng-if="vm.torrentLocalInfo.isTop"
class="label torrent-top">{{'STATUS_TOP_KEY' | translate}}
</span>
<span ng-repeat="t in vm.torrentLocalInfo.torrent_tags">
<span class="label label-tag" ng-if="vm.RTS.tagInList(t);">
{{ 'RESOURCESTAGS.' + vm.RTS.getTagTitle(t) + '.' + t.toUpperCase() | translate}}
@@ -632,32 +647,6 @@
</div>
</dd>
<dt class="h-line">{{ 'VIDEO_SALE_INFO' | translate}}</dt>
<dd class="h-line">
<span class="label label-sale" ng-if="!vm.isGlobalSaleNow()"
title="{{vm.TGI.getTorrentSaleTypeDesc(vm.torrentLocalInfo);}} | {{ 'SALE_EXPIRES_TIME' | translate}}: {{vm.torrentLocalInfo.isSaling ? (vm.torrentLocalInfo.torrent_sale_expires | date: 'MM-dd HH:mm') : 'NO'}}"
ng-class="{'label-default': !vm.torrentLocalInfo.isSaling, 'label-success': vm.torrentLocalInfo.isSaling}">
{{vm.torrentLocalInfo.torrent_sale_status}} {{vm.torrentLocalInfo.isSaling ? (vm.torrentLocalInfo.torrent_sale_expires | unlife) : ''}}
</span>
<span class="label label-sale label-success" ng-if="vm.isGlobalSaleNow()"
title="{{vm.TGI.getTorrentSaleTypeDescByValue(vm.salesGlobalConfig.global.value);}}"
ng-click="$event.stopPropagation();">
G: {{vm.salesGlobalConfig.global.value}}
</span>
</dd>
<div ng-if="vm.torrentLocalInfo.torrent_recommended != 'level0' || vm.torrentLocalInfo.isTop">
<dt class="h-line">{{ 'ADMIN_BASIC_RLEVEL_SET' | translate}}</dt>
<dd class="h-line">
<span title="{{ 'TORRENT_STATUS_TOP_TITLE' | translate}}" ng-if="vm.torrentLocalInfo.isTop"
class="torrent-votes"><kbd>{{'STATUS_TOP_KEY' | translate}}</kbd></span>
<span class="label label-rlevel label-info">
{{ 'TORRENT_RECOMMEND_LEVEL_ITEM.' + vm.torrentLocalInfo.torrent_recommended.toUpperCase() | translate}}
</span>
</dd>
</div>
<dt class="h-line">{{ 'ALL_FILES_LIST' | translate}}</dt>
<dd class="h-line">
<div class="row">