2016-05-23 19:06:50 +02:00
|
|
|
<section class="content no-padding">
|
|
|
|
<div class="nav-tabs-custom">
|
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li ng-class="{'active': context.currentTab == 'overview'}">
|
|
|
|
<a class="pointer-cursor" ng-click="context.currentTab = 'overview'" translate>Overview</a>
|
|
|
|
</li>
|
2016-05-24 17:30:33 +02:00
|
|
|
<li ng-class="{'active': context.currentTab == 'blocks'}">
|
|
|
|
<a class="pointer-cursor" ng-click="context.currentTab = 'blocks'" translate>Blocks</a>
|
2016-05-23 19:06:50 +02:00
|
|
|
</li>
|
|
|
|
<li ng-class="{'active': context.currentTab == 'filelist'}">
|
|
|
|
<a class="pointer-cursor" ng-click="context.currentTab = 'filelist'" translate>File List</a>
|
|
|
|
</li>
|
2016-05-24 17:30:33 +02:00
|
|
|
<li ng-class="{'active': context.currentTab == 'btpeers'}" ng-if="task.status == 'active' && task.bittorrent">
|
|
|
|
<a class="pointer-cursor" ng-click="context.currentTab = 'btpeers'" translate>Peers</a>
|
2016-05-23 19:06:50 +02:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="tab-content no-padding">
|
|
|
|
<div class="tab-pane" ng-class="{'active': context.currentTab == 'overview'}">
|
|
|
|
<div class="settings-table">
|
|
|
|
<div class="row">
|
|
|
|
<div class="setting-key col-sm-4">
|
|
|
|
<span translate>File Name</span>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
|
|
|
<span ng-bind="task.taskName"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="setting-key col-sm-4">
|
|
|
|
<span translate>File Size</span>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
|
|
|
<span ng-bind="task.totalLength | readableVolumn"></span>
|
|
|
|
<span ng-bind="'(' + task.files.length + ' ' + ('Files' | translate) + ')'"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="setting-key col-sm-4">
|
|
|
|
<span translate>Task Status</span>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
|
|
|
<span ng-bind="task | taskStatus"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="setting-key col-sm-4">
|
|
|
|
<span translate>Completed Percent</span>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
|
|
|
<span ng-bind="(task.completePercent | percent: 2) + '%'"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="setting-key col-sm-4">
|
|
|
|
<span translate>Download</span>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
|
|
|
<span ng-bind="(task.completedLength | readableVolumn) + (task.status == 'active' ? ' @ ' + (task.downloadSpeed | readableVolumn) + '/s' : '')"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row" ng-if="task.bittorrent">
|
|
|
|
<div class="setting-key col-sm-4">
|
|
|
|
<span translate>Upload</span>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
|
|
|
<span ng-bind="(task.uploadLength | readableVolumn) + (task.status == 'active' ? ' @ ' + (task.uploadSpeed | readableVolumn) + '/s' : '')"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row" ng-if="task.status == 'active' && task.completedLength < task.totalLength">
|
|
|
|
<div class="setting-key col-sm-4">
|
|
|
|
<span translate>Remain Time</span>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
|
|
|
<span ng-bind="0 <= task.remainTime && task.remainTime < 86400? (task.remainTime | dateDuration: 'second': 'HH:mm:ss') : ('More Than One Day' | translate)"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row" ng-if="task.infoHash">
|
|
|
|
<div class="setting-key col-sm-4">
|
|
|
|
<span translate>Info Hash</span>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
|
|
|
<span ng-bind="task.infoHash"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row" ng-if="task.status == 'active'">
|
|
|
|
<div class="setting-key col-sm-4">
|
|
|
|
<span ng-bind="(task.bittorrent ? ('Seeders' | translate) + ' / ' : '') + ('Connections' | translate)">Connections</span>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
|
|
|
<span ng-bind="(task.numSeeders ? (task.numSeeders + ' / ') : '') + task.connections"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="setting-key col-sm-4">
|
|
|
|
<span translate>Download Dir</span>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
|
|
|
<span ng-bind="task.dir"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-24 17:30:33 +02:00
|
|
|
<div class="tab-pane" ng-class="{'active': context.currentTab == 'blocks'}">
|
2016-05-23 19:06:50 +02:00
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="tab-pane" ng-class="{'active': context.currentTab == 'filelist'}">
|
|
|
|
<div class="task-table">
|
|
|
|
<div class="task-table-title hidden-xs">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<span translate>File Name</span>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
|
|
|
<span translate>Completed Percent</span>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
|
|
|
<span translate>File Size</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="task-table-body">
|
|
|
|
<div class="row" ng-repeat="file in task.files">
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<input type="checkbox" ng-checked="file.selected == 'true'" disabled="disabled"/>
|
|
|
|
<span ng-bind="file.path | filename"></span>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
|
|
|
<div class="progress">
|
|
|
|
<div class="progress-bar progress-bar-primary" role="progressbar"
|
|
|
|
aria-valuenow="{{file.completePercent}}" aria-valuemin="1"
|
|
|
|
aria-valuemax="100" ng-style="{ width: file.completePercent + '%' }">
|
|
|
|
<span ng-class="{'progress-lower': file.completePercent < 50}"
|
|
|
|
ng-bind="(file.completePercent | percent: 2) + '%'"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
|
|
|
<span class="task-size" ng-bind="file.length | readableVolumn"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-24 17:30:33 +02:00
|
|
|
<div class="tab-pane" ng-class="{'active': context.currentTab == 'btpeers'}" ng-if="task.status == 'active' && task.bittorrent">
|
2016-05-23 19:06:50 +02:00
|
|
|
<div class="task-table">
|
|
|
|
<div class="task-table-title hidden-xs">
|
|
|
|
<div class="row">
|
2016-05-24 17:30:33 +02:00
|
|
|
<div class="col-sm-3">
|
|
|
|
<span translate>Address</span>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<span translate>Status</span>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-1 col-xs-4">
|
|
|
|
<span translate>Percent</span>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-1 col-xs-4">
|
|
|
|
<span translate>Download Speed</span>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-1 col-xs-4">
|
|
|
|
<span translate>Upload Speed</span>
|
2016-05-23 19:06:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="task-table-body">
|
2016-05-24 17:30:33 +02:00
|
|
|
<div class="row" ng-repeat="peer in peers">
|
|
|
|
<div class="col-sm-3">
|
|
|
|
<span ng-bind="peer.ip + ':' + peer.port"></span>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-1 col-xs-4">
|
|
|
|
<!--<span ng-bind="(peer.completePercent | percent: 2) + '%'"></span>-->
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-1 col-xs-4">
|
|
|
|
<i class="fa fa-arrow-down visible-xs-inline-block"></i>
|
|
|
|
<span class="task-download-speed" ng-bind="(peer.downloadSpeed | readableVolumn) + '/s'"></span>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-1 col-xs-4">
|
|
|
|
<i class="fa fa-arrow-up visible-xs-inline-block"></i>
|
|
|
|
<span class="task-download-speed" ng-bind="(peer.uploadSpeed | readableVolumn) + '/s'"></span>
|
2016-05-23 19:06:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div><!-- /.nav-tabs-custom -->
|
|
|
|
</section>
|