This repository has been archived on 2022-01-02. You can view files and clone it, but cannot push or open issues or pull requests.
AriaNg/app/views/list.html
2016-05-17 23:00:07 +08:00

71 lines
3.7 KiB
HTML

<section class="content no-padding">
<div id="task-table" class="task-table">
<div class="task-table-title hidden-xs">
<div class="row">
<div class="col-sm-8">
<div class="row">
<div class="col-sm-8">
<span translate>File Name</span>
<i class="fa" ng-class="{'fa-sort-asc': isSetDisplayOrder('name')}"></i>
</div>
<div class="col-sm-4">
<span translate>File Size</span>
<i class="fa" ng-class="{'fa-sort-asc': isSetDisplayOrder('size')}"></i>
</div>
</div>
</div>
<div class="col-sm-2">
<div class="row">
<div class="col-sm-6">
<span translate>Completed Percent</span>
<i class="fa" ng-class="{'fa-sort-desc': isSetDisplayOrder('percent')}"></i>
</div>
<div class="col-sm-6">
<span translate>Remain Time</span>
<i class="fa" ng-class="{'fa-sort-asc': isSetDisplayOrder('remain')}"></i>
</div>
</div>
</div>
<div class="col-sm-2">
<div class="row">
<span translate>Download Speed</span>
</div>
</div>
</div>
</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">
<span ng-bind="task.fileSize | readableVolumn"></span>
<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}}%;">
<div ng-class="{'lower': task.completePercent < 50}"
ng-bind="(task.completePercent | percent: 2) + '%'"></div>
</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>
</div>
</div>
</div>
</section>