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'}">
|
2016-06-20 17:45:33 +02:00
|
|
|
<a class="pointer-cursor" ng-click="changeTab('overview')" translate>Overview</a>
|
2016-05-23 19:06:50 +02:00
|
|
|
</li>
|
2016-05-24 17:30:33 +02:00
|
|
|
<li ng-class="{'active': context.currentTab == 'blocks'}">
|
2016-06-20 17:45:33 +02:00
|
|
|
<a class="pointer-cursor" ng-click="changeTab('blocks')" translate>Blocks</a>
|
2016-05-23 19:06:50 +02:00
|
|
|
</li>
|
|
|
|
<li ng-class="{'active': context.currentTab == 'filelist'}">
|
2016-06-20 17:45:33 +02:00
|
|
|
<a class="pointer-cursor" ng-click="changeTab('filelist')" translate>Files</a>
|
2016-05-23 19:06:50 +02:00
|
|
|
</li>
|
2016-06-01 18:02:10 +02:00
|
|
|
<li ng-class="{'active': context.currentTab == 'btpeers'}" ng-if="task && task.status == 'active' && task.bittorrent">
|
2016-06-20 17:45:33 +02:00
|
|
|
<a class="pointer-cursor" ng-click="changeTab('btpeers')" translate>Peers</a>
|
2016-05-23 19:06:50 +02:00
|
|
|
</li>
|
2016-06-01 18:02:10 +02:00
|
|
|
<li ng-class="{'active': context.currentTab == 'settings'}" ng-if="task && (task.status == 'active' || task.status == 'waiting' || task.status == 'paused')" class="slim">
|
2016-06-20 17:45:33 +02:00
|
|
|
<a class="pointer-cursor" ng-click="changeTab('settings')">
|
2016-05-29 07:30:22 +02:00
|
|
|
<i class="fa fa-gear"></i>
|
|
|
|
</a>
|
|
|
|
</li>
|
2016-05-23 19:06:50 +02:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="tab-content no-padding">
|
|
|
|
<div class="tab-pane" ng-class="{'active': context.currentTab == 'overview'}">
|
2016-06-18 16:32:23 +02:00
|
|
|
<div class="settings-table striped hoverable">
|
2016-05-23 19:06:50 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="setting-key col-sm-4">
|
2016-06-26 14:01:00 +02:00
|
|
|
<span translate>Task Name</span>
|
2016-05-23 19:06:50 +02:00
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
2016-08-28 15:14:47 +02:00
|
|
|
<span class="allow-word-break" ng-bind="task.taskName"></span>
|
2016-05-23 19:06:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-31 16:51:12 +02:00
|
|
|
<div class="row" ng-if="task">
|
2016-05-23 19:06:50 +02:00
|
|
|
<div class="setting-key col-sm-4">
|
2016-06-26 14:01:00 +02:00
|
|
|
<span translate>Task Size</span>
|
2016-05-23 19:06:50 +02:00
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
|
|
|
<span ng-bind="task.totalLength | readableVolumn"></span>
|
2016-10-30 13:33:22 +01:00
|
|
|
<a class="pointer-cursor" ng-if="task.files" ng-click="changeTab('filelist')">
|
|
|
|
<span ng-bind="('format.settings.file-count' | translate: {count: task.selectedFileCount})"></span>
|
|
|
|
</a>
|
2016-05-23 19:06:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-31 16:51:12 +02:00
|
|
|
<div class="row" ng-if="task">
|
2016-05-23 19:06:50 +02:00
|
|
|
<div class="setting-key col-sm-4">
|
|
|
|
<span translate>Task Status</span>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
2016-06-04 08:05:37 +02:00
|
|
|
<span ng-bind="task | taskStatus | translate: {errorcode: task.errorCode}"></span>
|
2016-12-24 15:33:58 +01:00
|
|
|
<i class="icon-primary fa fa-question-circle" ng-if="task.errorCode && task.errorCode != '0' && task.errorMessage"
|
2016-10-30 13:24:54 +01:00
|
|
|
ng-tooltip="{{task.errorMessage}}" ng-tooltip-container="body" ng-tooltip-placement="top"></i>
|
2016-05-23 19:06:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-10-30 13:24:54 +01:00
|
|
|
<div class="row" ng-if="task && task.status == 'error' && task.errorDescription">
|
2016-05-25 16:09:34 +02:00
|
|
|
<div class="setting-key col-sm-4">
|
|
|
|
<span translate>Error Description</span>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
2016-10-30 13:24:54 +01:00
|
|
|
<span ng-bind="task.errorDescription | translate"></span>
|
2016-05-25 16:09:34 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-31 16:51:12 +02:00
|
|
|
<div class="row" ng-if="task">
|
2016-05-23 19:06:50 +02:00
|
|
|
<div class="setting-key col-sm-4">
|
2016-07-06 18:22:02 +02:00
|
|
|
<span ng-bind="('Progress' | translate) + (task.status == 'active' && task.bittorrent ? ' (' + ('Health Percentage' | translate) + ')' : '')"></span>
|
2016-05-23 19:06:50 +02:00
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
2016-06-10 19:25:09 +02:00
|
|
|
<span ng-bind="(task.completePercent | percent: 2) + '%' + (task.status == 'active' && task.bittorrent ? ' (' + (context.healthPercent | percent: 2) + '%' + ')' : '')"></span>
|
2016-05-24 18:20:32 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-31 16:51:12 +02:00
|
|
|
<div class="row" ng-if="task">
|
2016-05-23 19:06:50 +02:00
|
|
|
<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>
|
2016-05-31 16:51:12 +02:00
|
|
|
<div class="row" ng-if="task && task.bittorrent">
|
2016-05-23 19:06:50 +02:00
|
|
|
<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>
|
2016-06-09 11:31:36 +02:00
|
|
|
<div class="row" ng-if="task && task.bittorrent">
|
|
|
|
<div class="setting-key col-sm-4">
|
|
|
|
<span translate>Share Ratio</span>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
|
|
|
<span ng-bind="(task.shareRatio | number: 2)"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-31 16:51:12 +02:00
|
|
|
<div class="row" ng-if="task && task.status == 'active' && task.completedLength < task.totalLength">
|
2016-05-23 19:06:50 +02:00
|
|
|
<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>
|
2016-06-24 16:50:49 +02:00
|
|
|
<div class="row" ng-if="task && task.status == 'active'">
|
2016-05-23 19:06:50 +02:00
|
|
|
<div class="setting-key col-sm-4">
|
2016-06-24 16:50:49 +02:00
|
|
|
<span ng-bind="(task.bittorrent ? ('Seeders' | translate) + ' / ' : '') + ('Connections' | translate)">Connections</span>
|
2016-05-23 19:06:50 +02:00
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
2016-06-24 16:50:49 +02:00
|
|
|
<span ng-bind="(task.numSeeders ? (task.numSeeders + ' / ') : '') + task.connections"></span>
|
2016-05-23 19:06:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-06-24 16:50:49 +02:00
|
|
|
<div class="row" ng-if="task && task.bittorrent && task.bittorrent.creationDate">
|
2016-05-23 19:06:50 +02:00
|
|
|
<div class="setting-key col-sm-4">
|
2016-06-24 16:50:49 +02:00
|
|
|
<span translate>Seed Creation Time</span>
|
2016-05-23 19:06:50 +02:00
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
2016-06-24 16:50:49 +02:00
|
|
|
<span ng-bind="task.bittorrent.creationDate | amFromUnix | longDate"></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row" ng-if="task && task.infoHash">
|
|
|
|
<div class="setting-key col-sm-4">
|
|
|
|
<span translate>Info Hash</span>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
2016-08-28 15:14:47 +02:00
|
|
|
<span class="allow-word-break" ng-bind="task.infoHash"></span>
|
2016-05-23 19:06:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-31 16:51:12 +02:00
|
|
|
<div class="row" ng-if="task">
|
2016-05-23 19:06:50 +02:00
|
|
|
<div class="setting-key col-sm-4">
|
|
|
|
<span translate>Download Dir</span>
|
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
2016-08-28 15:14:47 +02:00
|
|
|
<span class="allow-word-break" ng-bind="task.dir"></span>
|
2016-05-23 19:06:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-07-10 14:42:21 +02:00
|
|
|
<div class="row" ng-if="task && task.bittorrent && task.bittorrent.announceList && task.bittorrent.announceList.length > 0">
|
|
|
|
<div class="setting-key col-sm-4">
|
|
|
|
<span translate>BT Tracker Servers</span>
|
|
|
|
<span class="description-inline" ng-bind="'format.settings.total-count' | translate: {count: task.bittorrent.announceList.length}"></span>
|
|
|
|
<i class="icon-expand pointer-cursor fa" ng-if="task.bittorrent.announceList.length > 1"
|
|
|
|
ng-class="{'fa-plus': context.collapseTrackers, 'fa-minus': !context.collapseTrackers}"
|
|
|
|
ng-click="context.collapseTrackers = !context.collapseTrackers"
|
2016-07-16 16:33:49 +02:00
|
|
|
title="{{(context.collapseTrackers ? 'Expand' : 'Collapse') | translate}}"></i>
|
2016-07-10 14:42:21 +02:00
|
|
|
</div>
|
|
|
|
<div class="setting-value col-sm-8">
|
2016-08-28 15:14:47 +02:00
|
|
|
<div class="auto-ellipsis" ng-bind="serverAddress" title="{{serverAddress}}"
|
|
|
|
ng-repeat="serverAddress in task.bittorrent.announceList | limitTo: (context.collapseTrackers ? 1 : task.bittorrent.announceList.length)"></div>
|
2016-07-10 14:42:21 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-12-04 16:36:12 +01:00
|
|
|
<div class="row no-hover no-background" ng-if="context.isEnableSpeedChart && task && task.status == 'active'">
|
2016-06-10 19:25:09 +02:00
|
|
|
<div class="col-sm-12">
|
|
|
|
<div class="task-status-chart-wrapper">
|
|
|
|
<ng-chart ng-data="context.statusData" height="200"></ng-chart>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-23 19:06:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-24 17:30:33 +02:00
|
|
|
<div class="tab-pane" ng-class="{'active': context.currentTab == 'blocks'}">
|
2016-06-11 14:53:04 +02:00
|
|
|
<div class="piece-legends">
|
2016-07-16 16:33:49 +02:00
|
|
|
<div class="piece-legend" title="{{('format.task.pieceinfo' | translate: {completed: task.completedPieces, total: task.numPieces})}}">
|
2016-07-10 11:37:34 +02:00
|
|
|
<div class="piece piece-completed"></div><span translate>Completed</span>
|
2016-06-11 14:53:04 +02:00
|
|
|
</div>
|
2016-07-16 16:33:49 +02:00
|
|
|
<div class="piece-legend" title="{{('format.task.pieceinfo' | translate: {completed: task.completedPieces, total: task.numPieces})}}">
|
2016-07-10 11:37:34 +02:00
|
|
|
<div class="piece"></div><span translate>Uncompleted</span>
|
2016-06-11 14:53:04 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<ng-piece-map bit-field="task.bitfield" piece-count="task.numPieces"></ng-piece-map>
|
2016-05-23 19:06:50 +02:00
|
|
|
</div>
|
|
|
|
<div class="tab-pane" ng-class="{'active': context.currentTab == 'filelist'}">
|
2016-06-18 16:32:23 +02:00
|
|
|
<div class="task-table">
|
2016-06-19 12:30:33 +02:00
|
|
|
<div class="task-table-title">
|
2016-05-23 19:06:50 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-8">
|
2016-05-25 18:09:00 +02:00
|
|
|
<a ng-click="changeFileListDisplayOrder('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': isSetFileListDisplayOrder('name:asc'), 'fa-sort-desc fa-order-desc': isSetFileListDisplayOrder('name:desc')}"></i>
|
2016-07-04 18:48:22 +02:00
|
|
|
<a ng-click="showChooseFilesToolbar()" ng-if="task && task.files && task.files.length > 1 && (task.status == 'waiting' || task.status == 'paused')" translate>(Choose Files)</a>
|
2016-05-23 19:06:50 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
2016-07-06 18:22:02 +02:00
|
|
|
<a ng-click="changeFileListDisplayOrder('percent:desc', true)" translate>Progress</a>
|
2016-05-28 18:16:32 +02:00
|
|
|
<i class="fa" ng-class="{'fa-sort-asc fa-order-asc': isSetFileListDisplayOrder('percent:asc'), 'fa-sort-desc fa-order-desc': isSetFileListDisplayOrder('percent:desc')}"></i>
|
2016-05-23 19:06:50 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-2">
|
2016-05-25 18:09:00 +02:00
|
|
|
<a ng-click="changeFileListDisplayOrder('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': isSetFileListDisplayOrder('size:asc'), 'fa-sort-desc fa-order-desc': isSetFileListDisplayOrder('size:desc')}"></i>
|
2016-05-23 19:06:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-06-26 12:10:58 +02:00
|
|
|
<div class="task-table-title" ng-if="context.showChooseFilesToolbar">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-12">
|
|
|
|
<button class="btn btn-xs btn-primary" ng-click="selectFiles('all')" translate>Select All</button>
|
|
|
|
<button class="btn btn-xs btn-primary" ng-click="selectFiles('none')" translate>Select None</button>
|
|
|
|
<button class="btn btn-xs btn-primary" ng-click="selectFiles('reverse')" translate>Select Invert</button>
|
|
|
|
<button class="btn btn-xs btn-default" ng-click="chooseSpecifiedFiles('video')">
|
|
|
|
<i class="fa fa-file-video-o"></i>
|
|
|
|
<span translate>Videos</span>
|
|
|
|
</button>
|
|
|
|
<button class="btn btn-xs btn-default" ng-click="chooseSpecifiedFiles('audio')">
|
|
|
|
<i class="fa fa-file-audio-o"></i>
|
|
|
|
<span translate>Audios</span>
|
|
|
|
</button>
|
|
|
|
<button class="btn btn-xs btn-default" ng-click="chooseSpecifiedFiles('picture')">
|
|
|
|
<i class="fa fa-file-picture-o"></i>
|
|
|
|
<span translate>Pictures</span>
|
|
|
|
</button>
|
|
|
|
<button class="btn btn-xs btn-default" ng-click="chooseSpecifiedFiles('document')">
|
|
|
|
<i class="fa fa-file-text-o"></i>
|
|
|
|
<span translate>Documents</span>
|
|
|
|
</button>
|
|
|
|
<button class="btn btn-xs btn-default" ng-click="chooseSpecifiedFiles('application')">
|
|
|
|
<i class="fa fa-file-o"></i>
|
|
|
|
<span translate>Applications</span>
|
|
|
|
</button>
|
|
|
|
<button class="btn btn-xs btn-default" ng-click="chooseSpecifiedFiles('archive')">
|
|
|
|
<i class="fa fa-file-archive-o"></i>
|
|
|
|
<span translate>Archives</span>
|
|
|
|
</button>
|
|
|
|
<button class="btn btn-xs btn-success" ng-click="saveChoosedFiles()" ng-disabled="getSelectedFileCount() < 1" translate>Confirm</button>
|
|
|
|
<button class="btn btn-xs btn-default" ng-click="cancelChooseFiles()" translate>Cancel</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-23 19:06:50 +02:00
|
|
|
<div class="task-table-body">
|
2016-06-06 17:15:46 +02:00
|
|
|
<div class="row" ng-repeat="file in task.files | fileOrderBy: getFileListOrderType()" data-file-index="{{file.index}}">
|
2016-05-23 19:06:50 +02:00
|
|
|
<div class="col-sm-8">
|
2016-05-29 17:27:47 +02:00
|
|
|
<div class="checkbox checkbox-primary">
|
2016-06-06 17:15:46 +02:00
|
|
|
<input id="{{'file_' + file.index}}" type="checkbox" ng-disabled="!task || !task.files || task.files.length < 2 || (task.status != 'waiting' && task.status != 'paused')"
|
|
|
|
ng-model="file.selected" ng-change="setSelectedFile()"/>
|
2016-08-28 15:14:47 +02:00
|
|
|
<label for="{{'file_' + file.index}}" class="allow-word-break" ng-bind="file.fileName" title="{{file.fileName}}"></label>
|
2016-05-29 07:01:05 +02:00
|
|
|
</div>
|
2016-05-23 19:06:50 +02:00
|
|
|
</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-06-01 18:02:10 +02:00
|
|
|
<div class="tab-pane" ng-class="{'active': context.currentTab == 'btpeers'}" ng-if="task && task.status == 'active' && task.bittorrent">
|
2016-06-18 16:32:23 +02:00
|
|
|
<div class="task-table">
|
2016-06-19 12:30:33 +02:00
|
|
|
<div class="task-table-title">
|
2016-05-23 19:06:50 +02:00
|
|
|
<div class="row">
|
2016-07-16 15:47:02 +02:00
|
|
|
<div class="col-md-4 col-sm-4">
|
2016-06-11 16:24:49 +02:00
|
|
|
<a ng-click="changePeerListDisplayOrder('address:asc', true)" translate>Address</a>
|
|
|
|
<i class="fa" ng-class="{'fa-sort-asc fa-order-asc': isSetPeerListDisplayOrder('address:asc'), 'fa-sort-desc fa-order-desc': isSetPeerListDisplayOrder('address:desc')}"></i>
|
2016-07-16 15:47:02 +02:00
|
|
|
<span>/</span>
|
|
|
|
<a ng-click="changePeerListDisplayOrder('client:asc', true)" translate>Client</a>
|
|
|
|
<i class="fa" ng-class="{'fa-sort-asc fa-order-asc': isSetPeerListDisplayOrder('client:asc'), 'fa-sort-desc fa-order-desc': isSetPeerListDisplayOrder('client:desc')}"></i>
|
2016-05-24 17:30:33 +02:00
|
|
|
</div>
|
2016-07-16 15:47:02 +02:00
|
|
|
<div class="col-md-5 col-sm-4">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<span translate>Status</span>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6 text-right">
|
|
|
|
<a ng-click="changePeerListDisplayOrder('percent:desc', true)" translate>Progress</a>
|
|
|
|
<i class="fa" ng-class="{'fa-sort-asc fa-order-asc': isSetPeerListDisplayOrder('percent:asc'), 'fa-sort-desc fa-order-desc': isSetPeerListDisplayOrder('percent:desc')}"></i>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-24 17:30:33 +02:00
|
|
|
</div>
|
2016-07-16 15:47:02 +02:00
|
|
|
<div class="col-md-3 col-sm-4">
|
2016-06-11 16:24:49 +02:00
|
|
|
<a ng-click="changePeerListDisplayOrder('dspeed:desc', true)" translate>Download</a>
|
|
|
|
<i class="fa" ng-class="{'fa-sort-asc fa-order-asc': isSetPeerListDisplayOrder('dspeed:asc'), 'fa-sort-desc fa-order-desc': isSetPeerListDisplayOrder('dspeed:desc')}"></i>
|
|
|
|
<span>/</span>
|
|
|
|
<a ng-click="changePeerListDisplayOrder('uspeed:desc', true)" translate>Upload</a>
|
|
|
|
<i class="fa" ng-class="{'fa-sort-asc fa-order-asc': isSetPeerListDisplayOrder('uspeed:asc'), 'fa-sort-desc fa-order-desc': isSetPeerListDisplayOrder('uspeed:desc')}"></i>
|
|
|
|
<span translate>Speed</span>
|
2016-05-23 19:06:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="task-table-body">
|
2016-06-20 18:20:30 +02:00
|
|
|
<div class="row" ng-repeat="peer in context.btPeers | peerOrderBy: getPeerListOrderType()">
|
2016-07-16 15:47:02 +02:00
|
|
|
<div class="col-md-4 col-sm-4 col-xs-12">
|
2016-08-28 15:14:47 +02:00
|
|
|
<div class="peer-name-wrapper auto-ellipsis" title="{{(peer.client ? peer.client.info : '') + (peer.seeder ? (peer.client.info ? ', ' : '') + ('Seeding' | translate) : '')}}">
|
2016-07-16 15:47:02 +02:00
|
|
|
<span ng-bind="peer.name | translate"></span><i class="icon-seeder fa fa-angle-double-up" ng-if="peer && peer.seeder"></i>
|
|
|
|
<span class="peer-client" ng-if="!!peer.client"
|
|
|
|
ng-bind="peer.client ? ('(' + peer.client.name + (peer.client.version ? ' ' + peer.client.version : '') + ')') : ''"></span>
|
|
|
|
</div>
|
2016-05-24 17:30:33 +02:00
|
|
|
</div>
|
2016-07-16 15:47:02 +02:00
|
|
|
<div class="col-md-5 col-sm-4 col-xs-12">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-9 col-sm-7 col-xs-12">
|
|
|
|
<div class="piece-bar-wrapper">
|
|
|
|
<ng-piece-bar bit-field="peer.bitfield" piece-count="task.numPieces" color="#208fe5"></ng-piece-bar>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-md-3 col-sm-5 hidden-xs text-right">
|
|
|
|
<span ng-bind="(peer.completePercent | percent: 2) + '%'"></span>
|
|
|
|
</div>
|
2016-06-11 14:53:04 +02:00
|
|
|
</div>
|
2016-05-24 17:30:33 +02:00
|
|
|
</div>
|
2016-07-16 15:47:02 +02:00
|
|
|
<div class="visible-xs col-xs-4">
|
2016-05-24 18:20:32 +02:00
|
|
|
<span ng-bind="(peer.completePercent | percent: 2) + '%'"></span>
|
2016-05-24 17:30:33 +02:00
|
|
|
</div>
|
2016-07-16 15:47:02 +02:00
|
|
|
<div class="col-md-3 col-sm-4 col-xs-8">
|
2016-05-28 18:16:32 +02:00
|
|
|
<div class="task-peer-download-speed">
|
2016-06-10 09:26:33 +02:00
|
|
|
<i class="icon-download fa fa-arrow-down"></i>
|
2016-05-24 19:30:02 +02:00
|
|
|
<span ng-bind="(peer.downloadSpeed | readableVolumn) + '/s'"></span>
|
2016-06-10 09:26:33 +02:00
|
|
|
<i class="icon-upload fa fa-arrow-up"></i>
|
2016-05-24 19:30:02 +02:00
|
|
|
<span ng-bind="(peer.uploadSpeed | readableVolumn) + '/s'"></span>
|
|
|
|
</div>
|
2016-05-24 17:30:33 +02:00
|
|
|
</div>
|
2016-05-24 19:30:02 +02:00
|
|
|
</div>
|
2016-06-20 18:20:30 +02:00
|
|
|
<div class="row" ng-if="!context.btPeers || context.btPeers.length < 1">
|
2016-05-24 19:30:02 +02:00
|
|
|
<div class="col-sm-12 text-center">
|
|
|
|
<span translate>No connected peers</span>
|
2016-05-23 19:06:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-06-01 18:02:10 +02:00
|
|
|
<div class="tab-pane" ng-class="{'active': context.currentTab == 'settings'}" ng-if="task && (task.status == 'active' || task.status == 'waiting' || task.status == 'paused')">
|
2016-06-18 16:32:23 +02:00
|
|
|
<div class="settings-table striped hoverable">
|
2016-06-10 19:25:09 +02:00
|
|
|
<ng-setting ng-repeat="option in context.availableOptions" option="option"
|
2016-07-03 11:08:06 +02:00
|
|
|
ng-model="context.options[option.key]" default-value="option.defaultValue"
|
|
|
|
on-change-value="setOption(key, value, optionStatus)"></ng-setting>
|
2016-05-29 07:30:22 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-05-23 19:06:50 +02:00
|
|
|
</div>
|
|
|
|
</div><!-- /.nav-tabs-custom -->
|
|
|
|
</section>
|