fix(core): reshow torrent seed/leech/finished users number

these number can scrape from public track server
This commit is contained in:
OldHawk
2017-08-15 11:05:07 +08:00
parent 7e750206cc
commit 7835dfd548
5 changed files with 14 additions and 18 deletions

View File

@@ -79,7 +79,6 @@
INFO: 'Torrent info',
SIZE: 'Size',
SEEDS_LEECHERS_FINISHED: 'S/L/F',
SEEDS_LEECHERS: 'S/L',
PUBLISHER: 'Uploader',
ADMIN_TOOLS: 'Admin Tools',
LIFETIME: 'Life',

View File

@@ -79,7 +79,6 @@
INFO: '种子信息',
SIZE: '大小',
SEEDS_LEECHERS_FINISHED: '上/下/完',
SEEDS_LEECHERS: '上/下',
PUBLISHER: '发布者',
ADMIN_TOOLS: '管理工具',
LIFETIME: '存活时间',

View File

@@ -110,11 +110,11 @@
<span class="glyphicon glyphicon-arrow-up torrent-up"></span>
<span>{{item.torrent_seeds}}</span>
</td>
<td ng-class="vm.announceConfig.private_torrent_cms ? 'text-center' : 'text-right'">
<td class="text-center">
<span class="glyphicon glyphicon-arrow-down torrent-down"></span>
<span>{{item.torrent_leechers}}</span>
</td>
<td class="text-right" ng-if="vm.announceConfig.private_torrent_cms">
<td class="text-right">
<span class="glyphicon glyphicon-ok torrent-finished"></span>
<span>{{item.torrent_finished}}</span>
</td>
@@ -165,11 +165,11 @@
<span class="glyphicon glyphicon-arrow-up torrent-up"></span>
<span>{{nt.torrent_seeds}}</span>
</td>
<td ng-class="vm.announceConfig.private_torrent_cms ? 'text-center' : 'text-right'">
<td class="text-center">
<span class="glyphicon glyphicon-arrow-down torrent-down"></span>
<span>{{nt.torrent_leechers}}</span>
</td>
<td class="text-right" ng-if="vm.announceConfig.private_torrent_cms">
<td class="text-right">
<span class="glyphicon glyphicon-ok torrent-finished"></span>
<span>{{nt.torrent_finished}}</span>
</td>
@@ -318,11 +318,11 @@
<span class="glyphicon glyphicon-arrow-up torrent-up"></span>
<span>{{item.torrent_seeds}}</span>
</td>
<td ng-class="vm.announceConfig.private_torrent_cms ? 'text-center' : 'text-right'">
<td class="text-center">
<span class="glyphicon glyphicon-arrow-down torrent-down"></span>
<span>{{item.torrent_leechers}}</span>
</td>
<td class="text-right" ng-if="vm.announceConfig.private_torrent_cms">
<td class="text-right">
<span class="glyphicon glyphicon-ok torrent-finished"></span>
<span>{{item.torrent_finished}}</span>
</td>
@@ -373,11 +373,11 @@
<span class="glyphicon glyphicon-arrow-up torrent-up"></span>
<span>{{nt.torrent_seeds}}</span>
</td>
<td ng-class="vm.announceConfig.private_torrent_cms ? 'text-center' : 'text-right'">
<td class="text-center">
<span class="glyphicon glyphicon-arrow-down torrent-down"></span>
<span>{{nt.torrent_leechers}}</span>
</td>
<td class="text-right" ng-if="vm.announceConfig.private_torrent_cms">
<td class="text-right">
<span class="glyphicon glyphicon-ok torrent-finished"></span>
<span>{{nt.torrent_finished}}</span>
</td>

View File

@@ -158,8 +158,7 @@
<th class="text-center">{{ 'TABLE_FIELDS.VOTES' | translate}}</th>
<th class="text-center">{{ 'TABLE_FIELDS.LIFETIME' | translate}}</th>
<th class="text-center">{{ 'TABLE_FIELDS.SIZE' | translate}}</th>
<th class="text-center" ng-if="vm.announce.private_torrent_cms">{{ 'TABLE_FIELDS.SEEDS_LEECHERS_FINISHED' | translate}}</th>
<th class="text-center" ng-if="!vm.announce.private_torrent_cms">{{ 'TABLE_FIELDS.SEEDS_LEECHERS' | translate}}</th>
<th class="text-center">{{ 'TABLE_FIELDS.SEEDS_LEECHERS_FINISHED' | translate}}</th>
<th class="text-center">{{ 'TABLE_FIELDS.ADMIN_TOOLS' | translate}}</th>
</tr>
</thead>
@@ -244,7 +243,7 @@
{{item.torrent_leechers}}
</p>
<p class="no-margin-p" title="{{ 'TITLE_ALT.FINISHED' | translate}}" ng-if="vm.announce.private_torrent_cms">
<p class="no-margin-p" title="{{ 'TITLE_ALT.FINISHED' | translate}}">
<span class="glyphicon glyphicon-ok torrent-finished"></span>
{{item.torrent_finished}}
</p>

View File

@@ -17,11 +17,11 @@
<span class="glyphicon glyphicon-arrow-up torrent-up"></span>
<span>{{item.torrent_seeds}}</span>
</td>
<td ng-class="vm.announce.private_torrent_cms ? 'text-center' : 'text-right'">
<td class="text-center">
<span class="glyphicon glyphicon-arrow-down torrent-down"></span>
<span>{{item.torrent_leechers}}</span>
</td>
<td class="text-right" ng-if="vm.announce.private_torrent_cms">
<td class="text-right">
<span class="glyphicon glyphicon-ok torrent-finished"></span>
<span>{{item.torrent_finished}}</span>
</td>
@@ -133,8 +133,7 @@
<th class="text-center">{{ 'TABLE_FIELDS.VOTES' | translate}}</th>
<th class="text-center">{{ 'TABLE_FIELDS.LIFETIME' | translate}}</th>
<th class="text-center">{{ 'TABLE_FIELDS.SIZE' | translate}}</th>
<th class="text-center" ng-if="vm.announce.private_torrent_cms">{{ 'TABLE_FIELDS.SEEDS_LEECHERS_FINISHED' | translate}}</th>
<th class="text-center" ng-if="!vm.announce.private_torrent_cms">{{ 'TABLE_FIELDS.SEEDS_LEECHERS' | translate}}</th>
<th class="text-center">{{ 'TABLE_FIELDS.SEEDS_LEECHERS_FINISHED' | translate}}</th>
<th class="text-center">{{ 'TABLE_FIELDS.PUBLISHER' | translate}}</th>
</tr>
</thead>
@@ -218,7 +217,7 @@
{{item.torrent_leechers}}
</p>
<p class="no-margin-p" title="{{ 'TITLE_ALT.FINISHED' | translate}}" ng-if="vm.announce.private_torrent_cms">
<p class="no-margin-p" title="{{ 'TITLE_ALT.FINISHED' | translate}}">
<span class="glyphicon glyphicon-ok torrent-finished"></span>
{{item.torrent_finished}}
</p>