Add status for 'verifing' and 'verifyPending'
This commit is contained in:
parent
ddc69c1807
commit
ad57270218
66
index.html
66
index.html
|
@ -556,6 +556,72 @@
|
||||||
<!-- }}} -->
|
<!-- }}} -->
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
<ul class="stats pull-left" ng-switch-when="verifing">
|
||||||
|
<!-- {{{ active download statistics -->
|
||||||
|
<li class="label label-warning hidden-phone hidden-tablet">
|
||||||
|
<span title="{{ 'Download status' | translate }}"><span class="fa fa-fw fa-play"> </span> {{download.status}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label label-default" ng-class="{'label-active': download.downloadSpeed > 2048, 'label-warning': download.downloadSpeed <= 2048}">
|
||||||
|
<span title="{{ 'Download Speed' | translate }}"><span class="fa fa-fw fa-arrow-circle-o-down"> </span> {{download.downloadSpeed | bspeed}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li ng-show="download.bittorrent" class="label label-default hidden-phone" ng-class="{'label-info': download.uploadSpeed > 2048}">
|
||||||
|
<span title="{{ 'Upload Speed' | translate }}"><span class="fa fa-fw fa-arrow-circle-o-up"> </span> {{download.uploadSpeed | bspeed}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label label-active">
|
||||||
|
<span title="{{ 'Estimated time' | translate }}"><span class="fa fa-fw fa-clock-o"> </span> {{getEta(download) | time}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label label-active hidden-phone">
|
||||||
|
<span title="{{ 'Download Size' | translate }}"><span class="fa fa-fw fa-cloud-download"> </span> {{download.fmtTotalLength}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label label-active hidden-phone">
|
||||||
|
<span title="{{ 'Downloaded' | translate }}"><span class="fa fa-fw fa-arrow-circle-o-down"> </span> {{download.fmtCompletedLength}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<!-- }}} -->
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<ul class="stats pull-left" ng-switch-when="verifyPending">
|
||||||
|
<!-- {{{ active download statistics -->
|
||||||
|
<li class="label label-warning hidden-phone hidden-tablet">
|
||||||
|
<span title="{{ 'Download status' | translate }}"><span class="fa fa-fw fa-play"> </span> {{download.status}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label label-default" ng-class="{'label-active': download.downloadSpeed > 2048, 'label-warning': download.downloadSpeed <= 2048}">
|
||||||
|
<span title="{{ 'Download Speed' | translate }}"><span class="fa fa-fw fa-arrow-circle-o-down"> </span> {{download.downloadSpeed | bspeed}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li ng-show="download.bittorrent" class="label label-default hidden-phone" ng-class="{'label-info': download.uploadSpeed > 2048}">
|
||||||
|
<span title="{{ 'Upload Speed' | translate }}"><span class="fa fa-fw fa-arrow-circle-o-up"> </span> {{download.uploadSpeed | bspeed}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label label-active">
|
||||||
|
<span title="{{ 'Estimated time' | translate }}"><span class="fa fa-fw fa-clock-o"> </span> {{getEta(download) | time}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label label-active hidden-phone">
|
||||||
|
<span title="{{ 'Download Size' | translate }}"><span class="fa fa-fw fa-cloud-download"> </span> {{download.fmtTotalLength}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label label-active hidden-phone">
|
||||||
|
<span title="{{ 'Downloaded' | translate }}"><span class="fa fa-fw fa-arrow-circle-o-down"> </span> {{download.fmtCompletedLength}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<!-- }}} -->
|
||||||
|
</ul>
|
||||||
|
|
||||||
<ul class="stats pull-left" ng-switch-when="paused">
|
<ul class="stats pull-left" ng-switch-when="paused">
|
||||||
<!-- {{{ paused download statistics -->
|
<!-- {{{ paused download statistics -->
|
||||||
<li class="label label-info">
|
<li class="label label-info">
|
||||||
|
|
|
@ -398,16 +398,24 @@ function(
|
||||||
animCollapsed: true,
|
animCollapsed: true,
|
||||||
files: [],
|
files: [],
|
||||||
};
|
};
|
||||||
if (d.verifiedLength)
|
if (d.verifiedLength) {
|
||||||
ctx.verifiedLength = d.verifiedLength;
|
ctx.verifiedLength = d.verifiedLength;
|
||||||
if (d.verifyIntegrityPending)
|
ctx.status = "verifing";
|
||||||
|
}
|
||||||
|
if (d.verifyIntegrityPending) {
|
||||||
ctx.verifyIntegrityPending = d.verifyIntegrityPending;
|
ctx.verifyIntegrityPending = d.verifyIntegrityPending;
|
||||||
|
ctx.status = "verifyPending";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (ctx.gid !== d.gid)
|
if (ctx.gid !== d.gid)
|
||||||
ctx.files = [];
|
ctx.files = [];
|
||||||
ctx.dir = d.dir;
|
ctx.dir = d.dir;
|
||||||
ctx.status = d.status;
|
ctx.status = d.status;
|
||||||
|
if(d.verifiedLength)
|
||||||
|
ctx.status = "verifing";
|
||||||
|
if(d.verifyIntegrityPending)
|
||||||
|
ctx.status = "verifyPending"
|
||||||
ctx.errorCode = d.errorCode;
|
ctx.errorCode = d.errorCode;
|
||||||
ctx.gid = d.gid;
|
ctx.gid = d.gid;
|
||||||
ctx.followedBy = (d.followedBy && d.followedBy.length == 1
|
ctx.followedBy = (d.followedBy && d.followedBy.length == 1
|
||||||
|
@ -534,10 +542,9 @@ function(
|
||||||
case "removed":
|
case "removed":
|
||||||
return "progress-bar-warning";
|
return "progress-bar-warning";
|
||||||
case "active":
|
case "active":
|
||||||
if (d.verifyIntegrityPending || d.verifiedLength)
|
return "active";
|
||||||
return "progress-bar-warning"
|
case "verifing":
|
||||||
else
|
return "progress-bar-warning";
|
||||||
return "active";
|
|
||||||
case "complete":
|
case "complete":
|
||||||
return "progress-bar-success";
|
return "progress-bar-success";
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user