feat(torrent): show H&R flag in other torrent info of torrent detail page

This commit is contained in:
OldHawk
2017-09-07 13:48:23 +08:00
parent 77d123b726
commit dfc984c0f0
2 changed files with 3 additions and 1 deletions

View File

@@ -590,8 +590,10 @@
</span>
<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-click="$event.stopPropagation();">H&R</span>
<span ng-repeat="t in item.torrent_tags">
<span class="label label-tag" ng-click="$event.stopPropagation();">
{{ 'RESOURCESTAGS.' + vm.getTagTitle(t) + '.' + t | translate}}

View File

@@ -1048,7 +1048,7 @@ exports.torrentByID = function (req, res, next, id) {
console.log(condition);
var fields = 'user torrent_filename torrent_tags torrent_seeds torrent_leechers torrent_finished torrent_seasons torrent_episodes torrent_size torrent_sale_status torrent_type torrent_sale_expires createdat';
var fields = 'user torrent_filename torrent_tags torrent_seeds torrent_leechers torrent_finished torrent_seasons torrent_episodes torrent_size torrent_sale_status torrent_type torrent_hnr torrent_sale_expires createdat';
Torrent.find(condition, fields)
.sort('-createdat')