2016-05-13 18:09:12 +02:00
|
|
|
<section class="content no-padding">
|
|
|
|
<div id="task-table" class="task-table">
|
2016-05-17 17:00:07 +02:00
|
|
|
<div class="task-table-title hidden-xs">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-8">
|
2016-05-22 05:13:05 +02:00
|
|
|
<a ng-click="changeDisplayOrder('name:false', true)" translate>File Name</a>
|
|
|
|
<i class="fa" ng-class="{'fa-sort-asc': isSetDisplayOrder('name', false), 'fa-sort-desc': isSetDisplayOrder('name', true)}"></i>
|
2016-05-17 17:00:07 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
2016-05-22 05:13:05 +02:00
|
|
|
<a ng-click="changeDisplayOrder('size:false', true)" translate>File Size</a>
|
|
|
|
<i class="fa" ng-class="{'fa-sort-asc': isSetDisplayOrder('size', false), 'fa-sort-desc': isSetDisplayOrder('size', true)}"></i>
|
2016-05-17 17:00:07 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-6">
|
2016-05-22 05:13:05 +02:00
|
|
|
<a ng-click="changeDisplayOrder('percent:true', true)" translate>Completed Percent</a>
|
|
|
|
<i class="fa" ng-class="{'fa-sort-asc': isSetDisplayOrder('percent', false), 'fa-sort-desc': isSetDisplayOrder('percent', true)}"></i>
|
2016-05-17 17:00:07 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
2016-05-22 05:13:05 +02:00
|
|
|
<a ng-click="changeDisplayOrder('remain:false', true)" translate>Remain Time</a>
|
|
|
|
<i class="fa" ng-class="{'fa-sort-asc': isSetDisplayOrder('remain', false), 'fa-sort-desc': isSetDisplayOrder('remain', true)}"></i>
|
2016-05-17 17:00:07 +02:00
|
|
|
</div>
|
2016-05-13 18:09:12 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-17 17:00:07 +02:00
|
|
|
<div class="col-sm-2">
|
|
|
|
<div class="row">
|
2016-05-22 19:20:49 +02:00
|
|
|
<a ng-click="changeDisplayOrder('dspeed:true', true)" translate>Download Speed</a>
|
2016-05-22 05:13:05 +02:00
|
|
|
<i class="fa" ng-class="{'fa-sort-asc': isSetDisplayOrder('dspeed', false), 'fa-sort-desc': isSetDisplayOrder('dspeed', true)}"></i>
|
2016-05-17 17:00:07 +02:00
|
|
|
</div>
|
2016-05-13 18:09:12 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-17 17:00:07 +02:00
|
|
|
</div>
|
|
|
|
<div class="task-table-body">
|
|
|
|
<div class="row" ng-repeat="task in downloadTasks | taskOrderBy: getOrderType()" data-gid="{{task.gid}}">
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<span class="task-name" ng-bind="task.taskName | substring: (titleWidth / 20)" title="{{task.taskName}}"></span>
|
|
|
|
<div class="task-files">
|
2016-05-22 05:13:05 +02:00
|
|
|
<span ng-bind="task.totalLength | readableVolumn"></span>
|
2016-05-17 17:00:07 +02:00
|
|
|
<a ng-href="#/task/detail/{{task.gid}}">
|
|
|
|
<span ng-bind="'(' + task.files.length + ' ' + ('Files' | translate) + ')'"></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
|
|
|
<div class="progress">
|
|
|
|
<div class="progress-bar progress-bar-primary" role="progressbar"
|
|
|
|
aria-valuenow="{{task.completePercent}}" aria-valuemin="1"
|
|
|
|
aria-valuemax="100" style="width: {{task.completePercent}}%;">
|
2016-05-18 18:08:51 +02:00
|
|
|
<span ng-class="{'progress-lower': task.completePercent < 50}"
|
|
|
|
ng-bind="(task.completePercent | percent: 2) + '%'"></span>
|
2016-05-17 17:00:07 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<span class="task-last-time"
|
|
|
|
ng-bind="0 <= task.remainTime && task.remainTime < 86400? (task.remainTime | dateDuration: 'second': 'HH:mm:ss') : ('More Than One Day' | translate)"></span>
|
|
|
|
<span class="task-download-speed visible-xs-inline pull-right"
|
|
|
|
ng-bind="(task.downloadSpeed | readableVolumn) + '/s'"></span>
|
|
|
|
<span class="task-seeders pull-right" ng-bind="(task.numSeeders ? (task.numSeeders + '/') : '') + task.connections"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-2 hidden-xs">
|
|
|
|
<span class="task-download-speed" ng-bind="(task.downloadSpeed | readableVolumn) + '/s'"></span>
|
|
|
|
</div>
|
2016-05-13 18:09:12 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|