2016-05-13 18:09:12 +02:00
|
|
|
<section class="content no-padding">
|
|
|
|
<div id="task-table" class="task-table">
|
2016-06-19 12:30:33 +02:00
|
|
|
<div class="task-table-title">
|
2016-05-17 17:00:07 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-8">
|
2016-05-25 18:09:00 +02:00
|
|
|
<a ng-click="changeDisplayOrder('name:asc', true)" translate>File Name</a>
|
2016-05-28 18:16:32 +02:00
|
|
|
<i class="fa" ng-class="{'fa-sort-asc fa-order-asc': isSetDisplayOrder('name:asc'), 'fa-sort-desc fa-order-desc': isSetDisplayOrder('name:desc')}"></i>
|
2016-05-17 17:00:07 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
2016-05-25 18:09:00 +02:00
|
|
|
<a ng-click="changeDisplayOrder('size:asc', true)" translate>File Size</a>
|
2016-05-28 18:16:32 +02:00
|
|
|
<i class="fa" ng-class="{'fa-sort-asc fa-order-asc': isSetDisplayOrder('size:asc'), 'fa-sort-desc fa-order-desc': isSetDisplayOrder('size:desc')}"></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-25 18:09:00 +02:00
|
|
|
<a ng-click="changeDisplayOrder('percent:desc', true)" translate>Completed Percent</a>
|
2016-05-28 18:16:32 +02:00
|
|
|
<i class="fa" ng-class="{'fa-sort-asc fa-order-asc': isSetDisplayOrder('percent:asc'), 'fa-sort-desc fa-order-desc': isSetDisplayOrder('percent:desc')}"></i>
|
2016-05-17 17:00:07 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
2016-05-25 18:09:00 +02:00
|
|
|
<a ng-click="changeDisplayOrder('remain:asc', true)" translate>Remain Time</a>
|
2016-05-28 18:16:32 +02:00
|
|
|
<i class="fa" ng-class="{'fa-sort-asc fa-order-asc': isSetDisplayOrder('remain:asc'), 'fa-sort-desc fa-order-desc': isSetDisplayOrder('remain:desc')}"></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">
|
2016-05-28 18:16:32 +02:00
|
|
|
<a ng-click="changeDisplayOrder('dspeed:desc', true)" translate>Download Speed</a>
|
|
|
|
<i class="fa" ng-class="{'fa-sort-asc fa-order-asc': isSetDisplayOrder('dspeed:asc'), 'fa-sort-desc fa-order-desc': isSetDisplayOrder('dspeed:desc')}"></i>
|
2016-05-13 18:09:12 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-17 17:00:07 +02:00
|
|
|
</div>
|
2016-05-31 18:09:11 +02:00
|
|
|
<div class="task-table-body" ng-class="{'draggable': isSupportDragTask()}" dragula="'task-list'" dragula-model="taskContext.list">
|
2016-05-29 17:27:47 +02:00
|
|
|
<div class="row" ng-repeat="task in taskContext.list | filter: filterByTaskName | taskOrderBy: getOrderType()" data-gid="{{task.gid}}">
|
2016-05-17 17:00:07 +02:00
|
|
|
<div class="col-sm-8">
|
2016-05-29 17:27:47 +02:00
|
|
|
<div class="checkbox checkbox-primary" ng-class="{'checkbox-hide': !taskContext.selected[task.gid]}">
|
|
|
|
<input id="{{'task_' + task.gid}}" type="checkbox" ng-model="taskContext.selected[task.gid]"/>
|
|
|
|
<label for="{{'task_' + task.gid}}">
|
|
|
|
<span class="task-name" ng-bind="task.taskName" title="{{task.taskName}}"></span>
|
|
|
|
</label>
|
2016-06-10 09:26:33 +02:00
|
|
|
<i class="icon-upload fa fa-arrow-up" title="{{'Seeding' | translate}}" ng-if="task && task.status == 'active' && (task.seeder === true || task.seeder === 'true')"></i>
|
2016-05-29 17:27:47 +02:00
|
|
|
</div>
|
2016-05-17 17:00:07 +02:00
|
|
|
<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}}">
|
2016-06-27 18:32:17 +02:00
|
|
|
<span ng-if="task.files" ng-bind="('format.settings.file-count' | translate: {count: task.selectedFileCount})"></span>
|
2016-05-17 17:00:07 +02:00
|
|
|
</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"
|
2016-05-23 16:42:00 +02:00
|
|
|
aria-valuemax="100" ng-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>
|