commit
f6143d9ae8
|
@ -571,6 +571,10 @@
|
||||||
<span title="{{ 'Uploaded' | translate }}"><span class="fa fa-fw fa-upload"> </span> {{download.fmtUploadLength}}</span>
|
<span title="{{ 'Uploaded' | translate }}"><span class="fa fa-fw fa-upload"> </span> {{download.fmtUploadLength}}</span>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class="label label-active hidden-phone">
|
||||||
|
<span title="{{ 'Ratio' | translate }}">{{ 'Ratio' | translate }} {{getRatio(download)}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li class="label label-active hidden-phone hidden-tablet">
|
<li class="label label-active hidden-phone hidden-tablet">
|
||||||
<span title="{{ 'Progress' | translate }}"><span class="fa fa-fw fa-chevron-right"> </span> {{getProgress(download)}}%</span>
|
<span title="{{ 'Progress' | translate }}"><span class="fa fa-fw fa-chevron-right"> </span> {{getProgress(download)}}%</span>
|
||||||
</li>
|
</li>
|
||||||
|
@ -701,6 +705,10 @@
|
||||||
<span title="{{ 'Uploaded' | translate }}"><span class="fa fa-fw fa-upload"> </span> {{download.fmtUploadLength}}</span>
|
<span title="{{ 'Uploaded' | translate }}"><span class="fa fa-fw fa-upload"> </span> {{download.fmtUploadLength}}</span>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class="label label-active hidden-phone">
|
||||||
|
<span title="{{ 'Ratio' | translate }}">{{ 'Ratio' | translate }} {{getRatio(download)}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li class="label label-success hidden-phone">
|
<li class="label label-success hidden-phone">
|
||||||
<span title="{{ 'Download Path' | translate }}"><span class="fa fa-fw fa-folder-open"> </span> {{download.dir}}</span>
|
<span title="{{ 'Download Path' | translate }}"><span class="fa fa-fw fa-folder-open"> </span> {{download.dir}}</span>
|
||||||
</li>
|
</li>
|
||||||
|
@ -763,6 +771,7 @@
|
||||||
|
|
||||||
<li class="label label-default" title="{{ 'Upload Speed' | translate }}" 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' | translate }}" 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' | translate }}" 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' | translate }}" 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="{{ 'Ratio' | translate }}" ng-show="download.bittorrent"><span title="{{ 'Ratio' | translate }}">{{ 'Ratio' | translate }} {{getRatio(download)}}</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.connectionsTitle}}><i class="fa fa-fw fa-link"> </i> <span class="download-connections">{{download.connections}}{{download.numSeeders}}</span></li>
|
||||||
|
|
||||||
|
|
|
@ -567,6 +567,16 @@ function(
|
||||||
return percentage;
|
return percentage;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// gets the upload ratio
|
||||||
|
scope.getRatio = function(d) {
|
||||||
|
var ratio = 0
|
||||||
|
ratio = (d.uploadLength / d.completedLength) || 0;
|
||||||
|
ratio = ratio.toFixed(2);
|
||||||
|
if(!ratio) ratio = 0;
|
||||||
|
|
||||||
|
return ratio;
|
||||||
|
};
|
||||||
|
|
||||||
// gets the type for the download as classified by the aria2 rpc calls
|
// gets the type for the download as classified by the aria2 rpc calls
|
||||||
scope.getType = function(d) {
|
scope.getType = function(d) {
|
||||||
var type = d.status;
|
var type = d.status;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user