feat(torrents): show sale status in torrent other torrents panel

This commit is contained in:
OldHawk
2017-12-05 17:22:04 +08:00
parent 23852f7740
commit e79176aa6b
2 changed files with 2 additions and 2 deletions

View File

@@ -853,7 +853,7 @@
<div class="torrent-filename text-long"><a
ui-sref="torrents.view({torrentId: item._id})">{{item.torrent_filename}}</a></div>
<div class="list-all-tags">
<div class="list-all-tags margin-top-10">
<span ng-if="vm.torrentLocalInfo.resource_detail_info.release_date">
<span class="label label-warning" ng-click="$event.stopPropagation();">
{{ vm.torrentLocalInfo.resource_detail_info.release_date}}

View File

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