Merge pull request #150 from olsonbg/Seeders
Show number of seeders along with number of connections.
This commit is contained in:
commit
17ad2c4bfa
|
@ -577,7 +577,7 @@
|
||||||
<li class="label label-default" title="Upload Speed" ng-show="download.bittorrent"><i class="fa fa-fw fa-arrow-circle-o-up"> </i> <span class="download-uploadSpeed">{{download.fmtUploadSpeed}}</span></li>
|
<li class="label label-default" title="Upload Speed" ng-show="download.bittorrent"><i class="fa fa-fw fa-arrow-circle-o-up"> </i> <span class="download-uploadSpeed">{{download.fmtUploadSpeed}}</span></li>
|
||||||
<li class="label label-default" title="Uploaded" ng-show="download.bittorrent"><i class="fa fa-fw fa-upload"> </i> <span class="download-uploadLength">{{download.fmtUploadLength}}</span></li>
|
<li class="label label-default" title="Uploaded" ng-show="download.bittorrent"><i class="fa fa-fw fa-upload"> </i> <span class="download-uploadLength">{{download.fmtUploadLength}}</span></li>
|
||||||
|
|
||||||
<li class="label label-default" title="Connections"><i class="fa fa-fw fa-link"> </i> <span class="download-connections">{{download.connections}}</span></li>
|
<li class="label label-default" title={{download.connectionsTitle}}><i class="fa fa-fw fa-link"> </i> <span class="download-connections">{{download.connections}}{{download.numSeeders}}</span></li>
|
||||||
|
|
||||||
<li class="label label-default" title="Download GID"><i class="fa fa-fw fa-bars"> </i> <span class="download-gid">{{download.gid}}</span></li>
|
<li class="label label-default" title="Download GID"><i class="fa fa-fw fa-bars"> </i> <span class="download-gid">{{download.gid}}</span></li>
|
||||||
<li class="label label-default" title="Number of Pieces"># of <i class="fa fa-fw fa-puzzle-piece"> </i> <span class="download-numPieces">{{download.numPieces}}</span></li>
|
<li class="label label-default" title="Number of Pieces"># of <i class="fa fa-fw fa-puzzle-piece"> </i> <span class="download-numPieces">{{download.numPieces}}</span></li>
|
||||||
|
|
|
@ -378,6 +378,8 @@ function(
|
||||||
followedFrom: null,
|
followedFrom: null,
|
||||||
numPieces: d.numPieces,
|
numPieces: d.numPieces,
|
||||||
connections: d.connections,
|
connections: d.connections,
|
||||||
|
connectionsTitle: "Connections",
|
||||||
|
numSeeders: d.numSeeders,
|
||||||
bitfield: d.bitfield,
|
bitfield: d.bitfield,
|
||||||
errorCode: d.errorCode,
|
errorCode: d.errorCode,
|
||||||
totalLength: d.totalLength,
|
totalLength: d.totalLength,
|
||||||
|
@ -407,6 +409,13 @@ function(
|
||||||
ctx.followedFrom = null;
|
ctx.followedFrom = null;
|
||||||
ctx.numPieces = d.numPieces;
|
ctx.numPieces = d.numPieces;
|
||||||
ctx.connections = d.connections;
|
ctx.connections = d.connections;
|
||||||
|
if ( typeof d.numSeeders === 'undefined' ) {
|
||||||
|
ctx.numSeeders = "";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
ctx.connectionsTitle = "Connections (Seeders)";
|
||||||
|
ctx.numSeeders = " (" + d.numSeeders + ")";
|
||||||
|
}
|
||||||
ctx.bitfield = d.bitfield;
|
ctx.bitfield = d.bitfield;
|
||||||
if (ctx.totalLength !== d.totalLength) {
|
if (ctx.totalLength !== d.totalLength) {
|
||||||
ctx.totalLength = d.totalLength;
|
ctx.totalLength = d.totalLength;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user