mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-07-01 00:29:03 +02:00
feat(torrent): show H&R flag in other torrent info of torrent detail page
This commit is contained in:
@@ -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}}
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user