refined the UI more for a sub bar
This commit is contained in:
parent
23591212b0
commit
8e4dd9ca37
644
index.html
644
index.html
|
@ -216,7 +216,7 @@
|
||||||
<!-- }}} -->
|
<!-- }}} -->
|
||||||
|
|
||||||
<!-- {{{ body -->
|
<!-- {{{ body -->
|
||||||
<div role="main" class="container">
|
<div role="main" class="container-fluid">
|
||||||
|
|
||||||
<!-- {{{ alerts -->
|
<!-- {{{ alerts -->
|
||||||
<div ng-controller="AlertCtrl" class="row alerts">
|
<div ng-controller="AlertCtrl" class="row alerts">
|
||||||
|
@ -227,325 +227,350 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- }}} -->
|
<!-- }}} -->
|
||||||
|
|
||||||
<!-- {{{ downloads -->
|
<div class="row-fluid">
|
||||||
<!-- Bug?? <div ng-show="!totalAria2Downloads() && totalAria2Downloads() > getDownloads()" class="hero-unit">-->
|
<div class="span3">
|
||||||
<div ng-show="!totalAria2Downloads()" class="hero-unit">
|
<!-- {{{ nav side bar -->
|
||||||
Currently no download in line to display, use the '<strong>Add</strong>' download button to start downloading files!
|
<div class="well sidebar-nav">
|
||||||
|
<ul id="filters" class="clearfix nav nav-list">
|
||||||
|
<li class="nav-header">Download Filters</li>
|
||||||
|
<li>
|
||||||
|
<label for="filter-speed">
|
||||||
|
<input type="checkbox" ng-model="filterSpeed" ng-change="persistFilters()" id="filter-speed">
|
||||||
|
Running
|
||||||
|
</label>
|
||||||
|
</li>
|
||||||
|
<li class="active">
|
||||||
|
<label for="filter-active">
|
||||||
|
<input type="checkbox" ng-model="filterActive" ng-change="persistFilters()" id="filter-active">
|
||||||
|
Active
|
||||||
|
</label>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="filter-waiting">
|
||||||
|
<input type="checkbox" ng-model="filterWaiting" ng-change="persistFilters()" id="filter-waiting">
|
||||||
|
Waiting
|
||||||
|
</label>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="filter-complete">
|
||||||
|
<input type="checkbox" ng-model="filterComplete" ng-change="persistFilters()" id="filter-complete">
|
||||||
|
Complete
|
||||||
|
</label>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="filter-error">
|
||||||
|
<input type="checkbox" ng-model="filterError" ng-change="persistFilters()" id="filter-error">
|
||||||
|
Error
|
||||||
|
</label>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="filter-paused">
|
||||||
|
<input type="checkbox" ng-model="filterPaused" ng-change="persistFilters()" id="filter-paused">
|
||||||
|
Paused
|
||||||
|
</label>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="filter-removed">
|
||||||
|
<input type="checkbox" ng-model="filterRemoved" ng-change="persistFilters()" id="filter-removed">
|
||||||
|
Removed
|
||||||
|
</label>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label><input type="checkbox" ng-model="hideLinkedMetadata" id="hide-linked-metadata"> Hide linked meta-data</label>
|
||||||
|
<p>
|
||||||
|
Displaying <strong>{{totalDownloads}}</strong> of <em>{{totalAria2Downloads()}}</em> downloads
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<button ng-click="toggleStateFilters()" class="btn btn-default btn-mini">Toggle</button>
|
||||||
|
<button ng-click="resetFilters()" class="btn btn-default btn-mini">Reset filters</button>
|
||||||
|
</p>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<ul class="clearfix nav nav-list" ng-controller="StarredPropsCtrl" ng-show="properties.length">
|
||||||
|
|
||||||
|
<li class="nav-header">Quick Access Settings</li>
|
||||||
|
<li ng-repeat="prop in properties">
|
||||||
|
<label title="{{prop.desc}}">
|
||||||
|
<div>{{prop.name}}</div>
|
||||||
|
<div class="control-group">
|
||||||
|
<select style="width: 100%;" ng-show="prop.options.length" ng-options="opt for opt in prop.options" ng-model="prop.val"></select>
|
||||||
|
<input style="width: 100%;" ng-show="!prop.options.length" type="text" class="input-large" ng-model="prop.val"/>
|
||||||
|
</div>
|
||||||
|
</label>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<button ng-disabled="!enabled()" ng-click="save()" class="btn btn-small">Save settings</button>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<!-- }}} -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- {{{ global statistics -->
|
<div class="span9">
|
||||||
<div ng-class="{'large-graph': large_graph}" id="download-graph" class="download-graph"
|
<!-- {{{ downloads -->
|
||||||
dspeed="gstats.downloadSpeed"
|
<!-- Bug?? <div ng-show="!totalAria2Downloads() && totalAria2Downloads() > getDownloads()" class="hero-unit">-->
|
||||||
uspeed="gstats.uploadSpeed"
|
<div ng-show="!totalAria2Downloads()" class="hero-unit">
|
||||||
dgraph ng-show="totalAria2Downloads()"
|
Currently no download in line to display, use the '<strong>Add</strong>' download button to start downloading files!
|
||||||
draw="true"
|
</div>
|
||||||
ng-click="large_graph = !large_graph">
|
|
||||||
</div>
|
|
||||||
<!-- }}} -->
|
|
||||||
|
|
||||||
<!-- {{{ download template -->
|
<!-- {{{ global statistics -->
|
||||||
<form id="filters" class="clearfix">
|
<div ng-class="{'large-graph': large_graph}" id="download-graph" class="download-graph"
|
||||||
<fieldset>
|
dspeed="gstats.downloadSpeed"
|
||||||
<p>
|
uspeed="gstats.uploadSpeed"
|
||||||
<label for="filter-speed">
|
dgraph ng-show="totalAria2Downloads()"
|
||||||
<input type="checkbox" ng-model="filterSpeed" ng-change="persistFilters()" id="filter-speed">
|
draw="true"
|
||||||
Running
|
ng-click="large_graph = !large_graph">
|
||||||
</label>
|
</div>
|
||||||
<label for="filter-active">
|
<!-- }}} -->
|
||||||
<input type="checkbox" ng-model="filterActive" ng-change="persistFilters()" id="filter-active">
|
|
||||||
Active
|
|
||||||
</label>
|
|
||||||
<label for="filter-waiting">
|
|
||||||
<input type="checkbox" ng-model="filterWaiting" ng-change="persistFilters()" id="filter-waiting">
|
|
||||||
Waiting
|
|
||||||
</label>
|
|
||||||
<label for="filter-complete">
|
|
||||||
<input type="checkbox" ng-model="filterComplete" ng-change="persistFilters()" id="filter-complete">
|
|
||||||
Complete
|
|
||||||
</label>
|
|
||||||
<label for="filter-error">
|
|
||||||
<input type="checkbox" ng-model="filterError" ng-change="persistFilters()" id="filter-error">
|
|
||||||
Error
|
|
||||||
</label>
|
|
||||||
<label for="filter-paused">
|
|
||||||
<input type="checkbox" ng-model="filterPaused" ng-change="persistFilters()" id="filter-paused">
|
|
||||||
Paused
|
|
||||||
</label>
|
|
||||||
<label for="filter-removed">
|
|
||||||
<input type="checkbox" ng-model="filterRemoved" ng-change="persistFilters()" id="filter-removed">
|
|
||||||
Removed
|
|
||||||
</label>
|
|
||||||
<button ng-click="toggleStateFilters()" class="btn btn-default btn-mini">Toggle</button>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<label><input type="checkbox" ng-model="hideLinkedMetadata" id="hide-linked-metadata"> Hide linked meta-data</label>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Displaying <strong>{{totalDownloads}}</strong> of <em>{{totalAria2Downloads()}}</em> downloads
|
|
||||||
<button ng-click="resetFilters()" class="btn btn-default btn-mini">Reset filters</button>
|
|
||||||
</p>
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<div class="pagination pagination-right" ng-show="totalDownloads > pageSize">
|
<!-- {{{ download template -->
|
||||||
<pagination
|
|
||||||
total-items="totalDownloads"
|
|
||||||
items-per-page="pageSize"
|
|
||||||
max-size="6"
|
|
||||||
page="currentPage"
|
|
||||||
boundary-links="true"
|
|
||||||
previous-text="‹"
|
|
||||||
next-text="›"
|
|
||||||
first-text="«"
|
|
||||||
last-text="»"
|
|
||||||
>
|
|
||||||
</pagination>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<table
|
<table
|
||||||
ng-repeat="download in getDownloads()"
|
ng-repeat="download in getDownloads()"
|
||||||
class="row download" data-gid="{{download.gid}}">
|
class="row download" data-gid="{{download.gid}}">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="download-name download-item" ng-click="download.collapsed = !download.collapsed">
|
<td class="download-name download-item" ng-click="download.collapsed = !download.collapsed">
|
||||||
<i class="icon-magnet" style="color: red;" ng-show="download.metadata"></i> {{download.name}}
|
<i class="icon-magnet" style="color: red;" ng-show="download.metadata"></i> {{download.name}}
|
||||||
</td>
|
</td>
|
||||||
<td class="download-controls download-item" rowspan="2">
|
<td class="download-controls download-item" rowspan="2">
|
||||||
<!-- {{{ download control buttons -->
|
<!-- {{{ download control buttons -->
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button
|
<button
|
||||||
ng-show="hasStatus(download, ['active', 'waiting'])"
|
ng-show="hasStatus(download, ['active', 'waiting'])"
|
||||||
class="btn"
|
class="btn"
|
||||||
ng-click="pause(download)">
|
ng-click="pause(download)">
|
||||||
<i class="icon-pause"></i>
|
<i class="icon-pause"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
ng-show="hasStatus(download, 'paused')"
|
ng-show="hasStatus(download, 'paused')"
|
||||||
class="btn"
|
class="btn"
|
||||||
ng-click="resume(download)">
|
ng-click="resume(download)">
|
||||||
<i class="icon-play"></i>
|
<i class="icon-play"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="btn hidden-phone"
|
class="btn hidden-phone"
|
||||||
ng-click="remove(download)">
|
ng-click="remove(download)">
|
||||||
<i class="icon-stop"></i>
|
<i class="icon-stop"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="btn hidden-phone"
|
class="btn hidden-phone"
|
||||||
ng-show="['waiting', 'active'].indexOf( getType(download) )!= -1"
|
ng-show="['waiting', 'active'].indexOf( getType(download) )!= -1"
|
||||||
ng-click="showSettings(download)">
|
ng-click="showSettings(download)">
|
||||||
<i class="icon-cog"></i>
|
<i class="icon-cog"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button class="btn dropdown-toggle">
|
<button class="btn dropdown-toggle">
|
||||||
<i class="caret"></i>
|
<i class="caret"></i>
|
||||||
</button>
|
</button>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
|
|
||||||
<li class="visible-phone">
|
<li class="visible-phone">
|
||||||
<a
|
<a
|
||||||
ng-click="showSettings(download)"
|
ng-click="showSettings(download)"
|
||||||
ng-show="['waiting', 'active'].indexOf( getType(download) )!= -1"
|
ng-show="['waiting', 'active'].indexOf( getType(download) )!= -1"
|
||||||
href="#"><i class="icon-cog"> </i> Settings</a>
|
href="#"><i class="icon-cog"> </i> Settings</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li ng-show="download.bittorrent && false">
|
<li ng-show="download.bittorrent && false">
|
||||||
<a href="#"><i class="icon-list-alt"> </i> Peers</a>
|
<a href="#"><i class="icon-list-alt"> </i> Peers</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<a ng-click="download.collapsed = !download.collapsed"
|
<a ng-click="download.collapsed = !download.collapsed"
|
||||||
href="#"><i class="icon-info-sign"> </i> More Info</a>
|
href="#"><i class="icon-info-sign"> </i> More Info</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="visible-phone">
|
<li class="visible-phone">
|
||||||
<a ng-click="remove(download)"
|
<a ng-click="remove(download)"
|
||||||
href="#"><i class="icon-remove"> </i> Remove</a>
|
href="#"><i class="icon-remove"> </i> Remove</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
|
||||||
<!-- }}} -->
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="download-overview download-item" ng-click="download.collapsed = !download.collapsed" ng-switch="download.status">
|
|
||||||
<!-- {{{ statistics -->
|
|
||||||
<ul class="stats pull-left" ng-switch-when="active">
|
|
||||||
<!-- {{{ active download statistics -->
|
|
||||||
<li class="label label-active hidden-phone hidden-tablet">
|
|
||||||
<span title="Download status"><i class="icon-play"> </i> {{download.status}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="label" ng-class="{'label-active': download.downloadSpeed > 2048, 'label-warning': download.downloadSpeed <= 2048}">
|
|
||||||
<span title="Download Speed"><i class="icon-download"> </i> {{download.downloadSpeed | bspeed}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li ng-show="download.bittorrent" class="label hidden-phone" ng-class="{'label-info': download.uploadSpeed > 2048}">
|
|
||||||
<span title="Upload Speed"><i class="icon-upload"> </i> {{download.uploadSpeed | bspeed}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="label label-active">
|
|
||||||
<span title="Estimated time"><i class="icon-time"> </i> {{getEta(download) | time}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="label label-active hidden-phone">
|
|
||||||
<span title="Download Size"><i class="icon-cloud-download"> </i> {{download.fmtTotalLength}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="label label-active hidden-phone">
|
|
||||||
<span title="Downloaded"><i class="icon-download-alt"> </i> {{download.fmtCompletedLength}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="label label-active hidden-phone hidden-tablet">
|
|
||||||
<span title="Progress"><i class="icon-chevron-right"> </i> {{getProgress(download)}}%</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<!-- }}} -->
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<ul class="stats pull-left" ng-switch-when="paused">
|
|
||||||
<!-- {{{ paused download statistics -->
|
|
||||||
<li class="label label-info">
|
|
||||||
<span title="Download Status"><i class="icon-pause"> </i> {{download.status}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="label label-info">
|
|
||||||
<span title="Download Size"><i class="icon-cloud-download"> </i> {{download.fmtTotalLength}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="label label-info hidden-phone">
|
|
||||||
<span title="Downloaded"><i class="icon-download-alt"> </i> {{download.fmtCompletedLength}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="label label-info hidden-phone">
|
|
||||||
<span title="Download Path"><i class="icon-folder-open"> </i> {{download.dir}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<!-- }}} -->
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<ul class="stats pull-left" ng-switch-when="waiting">
|
|
||||||
<!-- {{{ paused download statistics -->
|
|
||||||
<li class="label">
|
|
||||||
<span title="Download Status"><i class="icon-caret-right"> </i> {{download.status}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="label">
|
|
||||||
<span title="Download Size"><i class="icon-cloud-download"> </i> {{download.fmtTotalLength}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="label hidden-phone">
|
|
||||||
<span title="Downloaded"><i class="icon-download-alt"> </i> {{download.fmtCompletedLength}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="label hidden-phone">
|
|
||||||
<span title="Download Path"><i class="icon-folder-open"> </i> {{download.dir}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<!-- }}} -->
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<ul class="stats pull-left" ng-switch-when="complete">
|
|
||||||
<!-- {{{ complete download statistics -->
|
|
||||||
|
|
||||||
<li class="label label-success">
|
|
||||||
<span title="Download Status"><i class="icon-check"> </i> {{download.status}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="label label-success">
|
|
||||||
<span title="Download Size"><i class="icon-cloud-download"> </i> {{download.fmtTotalLength}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="label label-success hidden-phone">
|
|
||||||
<span title="Download Path"><i class="icon-folder-open"> </i> {{download.dir}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<!-- }}} -->
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<ul class="stats pull-left" ng-switch-when="removed">
|
|
||||||
<!-- {{{ removed download statistics -->
|
|
||||||
<li class="label label-warning">
|
|
||||||
<span title="Download Status"><i class="icon-remove"> </i> {{download.status}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="label label-warning">
|
|
||||||
<span title="Download Size"><i class="icon-cloud-download"> </i> {{download.fmtTotalLength}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="label label-warning hidden-phone">
|
|
||||||
<span title="Download Path"><i class="icon-folder-open"> </i> {{download.dir}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<!-- }}} -->
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<ul class="stats pull-left" ng-switch-when="error">
|
|
||||||
<!-- {{{ error download statistics -->
|
|
||||||
<li class="label label-important">
|
|
||||||
<span title="Download Status"><i class="icon-remove-sign"> </i> {{download.status}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="label label-important">
|
|
||||||
<span title="Download Size"><i class="icon-cloud-download"> </i> {{download.fmtTotalLength}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="label label-important hidden-phone">
|
|
||||||
<span title="Download Path"><i class="icon-folder-open"> </i> {{download.dir}}</span>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<!-- }}} -->
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<!-- }}} -->
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="download-progress download-item" colspan="2" ng-click="download.collapsed = !download.collapsed">
|
|
||||||
<div class="progress progress-striped" ng-class="getProgressClass(download)">
|
|
||||||
<div class="bar" style="width: {{getProgress(download)}}%;"></div>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan="2" ng-click="download.collapsed = !download.collapsed" ng-switch="download.collapsed">
|
|
||||||
<div collapse="download.collapsed">
|
|
||||||
<div class="download-item" ng-show="download.numPieces > 1">
|
|
||||||
<canvas bitfield="download.bitfield" draw="!download.collapsed" pieces="download.numPieces" class="progress chunk-canvas" width="1400" chunkbar></canvas>
|
|
||||||
</div>
|
</div>
|
||||||
<ul class="stats download-item">
|
<!-- }}} -->
|
||||||
<li class="label" title="Estimated Time"><i class="icon-time"> </i> <span class="download-eta">{{getEta(download) | time}}</span></li>
|
</td>
|
||||||
<li class="label" title="Download Size"><i class="icon-cloud-download"> </i> <span class="download-totalLength">{{download.fmtTotalLength}}</span></li>
|
</tr>
|
||||||
<li class="label" title="Downloaded"><i class="icon-download-alt"> </i> <span class="download-completedLength">{{download.fmtCompletedLength}}</span></li>
|
<tr>
|
||||||
<li class="label" title="Download Speed"><i class="icon-download"> </i> <span class="download-downloadSpeed">{{download.fmtDownloadSpeed}}</span></li>
|
<td class="download-overview download-item" ng-click="download.collapsed = !download.collapsed" ng-switch="download.status">
|
||||||
|
<!-- {{{ statistics -->
|
||||||
|
<ul class="stats pull-left" ng-switch-when="active">
|
||||||
|
<!-- {{{ active download statistics -->
|
||||||
|
<li class="label label-active hidden-phone hidden-tablet">
|
||||||
|
<span title="Download status"><i class="icon-play"> </i> {{download.status}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li class="label" title="Upload Speed" ng-show="download.bittorrent"><i class="icon-upload"> </i> <span class="download-uploadSpeed">{{download.fmtUploadSpeed}}</span></li>
|
<li class="label" ng-class="{'label-active': download.downloadSpeed > 2048, 'label-warning': download.downloadSpeed <= 2048}">
|
||||||
<li class="label" title="Uploaded" ng-show="download.bittorrent"><i class="icon-upload-alt"> </i> <span class="download-uploadLength">{{download.fmtUploadLength}}</span></li>
|
<span title="Download Speed"><i class="icon-download"> </i> {{download.downloadSpeed | bspeed}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li class="label" title="Connections"><i class="icon-link"> </i> <span class="download-connections">{{download.connections}}</span></li>
|
<li ng-show="download.bittorrent" class="label hidden-phone" ng-class="{'label-info': download.uploadSpeed > 2048}">
|
||||||
|
<span title="Upload Speed"><i class="icon-upload"> </i> {{download.uploadSpeed | bspeed}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li class="label" title="Download GID"><i class="icon-reorder"> </i> <span class="download-gid">{{download.gid}}</span></li>
|
<li class="label label-active">
|
||||||
<li class="label" title="Number of Pieces"># of <i class="icon-puzzle-piece"> </i> <span class="download-numPieces">{{download.numPieces}}</span></li>
|
<span title="Estimated time"><i class="icon-time"> </i> {{getEta(download) | time}}</span>
|
||||||
<li class="label" title="Piece Length"><i class="icon-puzzle-piece"></i> Length <span class="download-pieceLength">{{download.fmtPieceLength}}</span></li>
|
</li>
|
||||||
<li class="label" title="Download Path"><i class="icon-folder-open"> </i> <span class="download-dir">{{download.dir}}</span></li>
|
|
||||||
|
<li class="label label-active hidden-phone">
|
||||||
|
<span title="Download Size"><i class="icon-cloud-download"> </i> {{download.fmtTotalLength}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label label-active hidden-phone">
|
||||||
|
<span title="Downloaded"><i class="icon-download-alt"> </i> {{download.fmtCompletedLength}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label label-active hidden-phone hidden-tablet">
|
||||||
|
<span title="Progress"><i class="icon-chevron-right"> </i> {{getProgress(download)}}%</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<!-- }}} -->
|
||||||
</ul>
|
</ul>
|
||||||
<ul class="download-files hidden-phone download-item">
|
|
||||||
<li class="label" ng-repeat="file in download.files">{{file.relpath}} ({{file.fmtLength}})</li>
|
<ul class="stats pull-left" ng-switch-when="paused">
|
||||||
|
<!-- {{{ paused download statistics -->
|
||||||
|
<li class="label label-info">
|
||||||
|
<span title="Download Status"><i class="icon-pause"> </i> {{download.status}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label label-info">
|
||||||
|
<span title="Download Size"><i class="icon-cloud-download"> </i> {{download.fmtTotalLength}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label label-info hidden-phone">
|
||||||
|
<span title="Downloaded"><i class="icon-download-alt"> </i> {{download.fmtCompletedLength}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label label-info hidden-phone">
|
||||||
|
<span title="Download Path"><i class="icon-folder-open"> </i> {{download.dir}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<!-- }}} -->
|
||||||
</ul>
|
</ul>
|
||||||
<div ng-show="hasStatus(download, 'active')" class="download-item hidden-phone">
|
|
||||||
<div class="download-graph" dspeed="download.downloadSpeed" uspeed="download.uploadSpeed" dgraph draw="!download.collapsed"></div>
|
<ul class="stats pull-left" ng-switch-when="waiting">
|
||||||
|
<!-- {{{ paused download statistics -->
|
||||||
|
<li class="label">
|
||||||
|
<span title="Download Status"><i class="icon-caret-right"> </i> {{download.status}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label">
|
||||||
|
<span title="Download Size"><i class="icon-cloud-download"> </i> {{download.fmtTotalLength}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label hidden-phone">
|
||||||
|
<span title="Downloaded"><i class="icon-download-alt"> </i> {{download.fmtCompletedLength}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label hidden-phone">
|
||||||
|
<span title="Download Path"><i class="icon-folder-open"> </i> {{download.dir}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<!-- }}} -->
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<ul class="stats pull-left" ng-switch-when="complete">
|
||||||
|
<!-- {{{ complete download statistics -->
|
||||||
|
|
||||||
|
<li class="label label-success">
|
||||||
|
<span title="Download Status"><i class="icon-check"> </i> {{download.status}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label label-success">
|
||||||
|
<span title="Download Size"><i class="icon-cloud-download"> </i> {{download.fmtTotalLength}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label label-success hidden-phone">
|
||||||
|
<span title="Download Path"><i class="icon-folder-open"> </i> {{download.dir}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<!-- }}} -->
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<ul class="stats pull-left" ng-switch-when="removed">
|
||||||
|
<!-- {{{ removed download statistics -->
|
||||||
|
<li class="label label-warning">
|
||||||
|
<span title="Download Status"><i class="icon-remove"> </i> {{download.status}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label label-warning">
|
||||||
|
<span title="Download Size"><i class="icon-cloud-download"> </i> {{download.fmtTotalLength}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label label-warning hidden-phone">
|
||||||
|
<span title="Download Path"><i class="icon-folder-open"> </i> {{download.dir}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<!-- }}} -->
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<ul class="stats pull-left" ng-switch-when="error">
|
||||||
|
<!-- {{{ error download statistics -->
|
||||||
|
<li class="label label-important">
|
||||||
|
<span title="Download Status"><i class="icon-remove-sign"> </i> {{download.status}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label label-important">
|
||||||
|
<span title="Download Size"><i class="icon-cloud-download"> </i> {{download.fmtTotalLength}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class="label label-important hidden-phone">
|
||||||
|
<span title="Download Path"><i class="icon-folder-open"> </i> {{download.dir}}</span>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<!-- }}} -->
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<!-- }}} -->
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="download-progress download-item" colspan="2" ng-click="download.collapsed = !download.collapsed">
|
||||||
|
<div class="progress progress-striped" ng-class="getProgressClass(download)">
|
||||||
|
<div class="bar" style="width: {{getProgress(download)}}%;"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</td>
|
||||||
</td>
|
</tr>
|
||||||
</tr>
|
<tr>
|
||||||
</tbody>
|
<td colspan="2" ng-click="download.collapsed = !download.collapsed" ng-switch="download.collapsed">
|
||||||
</table>
|
<div collapse="download.collapsed">
|
||||||
<!-- }}} -->
|
<div class="download-item" ng-show="download.numPieces > 1">
|
||||||
|
<canvas bitfield="download.bitfield" draw="!download.collapsed" pieces="download.numPieces" class="progress chunk-canvas" width="1400" chunkbar></canvas>
|
||||||
|
</div>
|
||||||
|
<ul class="stats download-item">
|
||||||
|
<li class="label" title="Estimated Time"><i class="icon-time"> </i> <span class="download-eta">{{getEta(download) | time}}</span></li>
|
||||||
|
<li class="label" title="Download Size"><i class="icon-cloud-download"> </i> <span class="download-totalLength">{{download.fmtTotalLength}}</span></li>
|
||||||
|
<li class="label" title="Downloaded"><i class="icon-download-alt"> </i> <span class="download-completedLength">{{download.fmtCompletedLength}}</span></li>
|
||||||
|
<li class="label" title="Download Speed"><i class="icon-download"> </i> <span class="download-downloadSpeed">{{download.fmtDownloadSpeed}}</span></li>
|
||||||
|
|
||||||
<!-- }}} -->
|
<li class="label" title="Upload Speed" ng-show="download.bittorrent"><i class="icon-upload"> </i> <span class="download-uploadSpeed">{{download.fmtUploadSpeed}}</span></li>
|
||||||
|
<li class="label" title="Uploaded" ng-show="download.bittorrent"><i class="icon-upload-alt"> </i> <span class="download-uploadLength">{{download.fmtUploadLength}}</span></li>
|
||||||
|
|
||||||
|
<li class="label" title="Connections"><i class="icon-link"> </i> <span class="download-connections">{{download.connections}}</span></li>
|
||||||
|
|
||||||
|
<li class="label" title="Download GID"><i class="icon-reorder"> </i> <span class="download-gid">{{download.gid}}</span></li>
|
||||||
|
<li class="label" title="Number of Pieces"># of <i class="icon-puzzle-piece"> </i> <span class="download-numPieces">{{download.numPieces}}</span></li>
|
||||||
|
<li class="label" title="Piece Length"><i class="icon-puzzle-piece"></i> Length <span class="download-pieceLength">{{download.fmtPieceLength}}</span></li>
|
||||||
|
<li class="label" title="Download Path"><i class="icon-folder-open"> </i> <span class="download-dir">{{download.dir}}</span></li>
|
||||||
|
</ul>
|
||||||
|
<ul class="download-files hidden-phone download-item">
|
||||||
|
<li class="label" ng-repeat="file in download.files">{{file.relpath}} ({{file.fmtLength}})</li>
|
||||||
|
</ul>
|
||||||
|
<div ng-show="hasStatus(download, 'active')" class="download-item hidden-phone">
|
||||||
|
<div class="download-graph" dspeed="download.downloadSpeed" uspeed="download.uploadSpeed" dgraph draw="!download.collapsed"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<!-- }}} -->
|
||||||
|
|
||||||
|
<!-- }}} -->
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- {{{ download pagination -->
|
<!-- {{{ download pagination -->
|
||||||
<div class="pagination pagination-right" ng-show="totalDownloads > pageSize">
|
<div class="pagination pagination-right" ng-show="totalDownloads > pageSize">
|
||||||
|
@ -564,26 +589,7 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- }}} -->
|
<!-- }}} -->
|
||||||
|
|
||||||
<!-- starred properties {{{ -->
|
</div>
|
||||||
<div ng-controller="StarredPropsCtrl" ng-show="properties.length">
|
|
||||||
<h3>Quick Access Settings</h3>
|
|
||||||
<form class="row">
|
|
||||||
<fieldset>
|
|
||||||
<div class="span4" ng-repeat="prop in properties">
|
|
||||||
<label title="{{prop.desc}}">
|
|
||||||
<div>{{prop.name}}</div>
|
|
||||||
<div>
|
|
||||||
<select ng-show="prop.options.length" ng-options="opt for opt in prop.options" ng-model="prop.val"></select>
|
|
||||||
<input ng-show="!prop.options.length" typ="text" class="input-large" ng-model="prop.val"/>
|
|
||||||
</div>
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<div class="span12" style="margin-top: 1ex"><button ng-disabled="!enabled()" ng-click="save()" class="btn btn-small">Save settings</button></div>
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
<!--}}} -->
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- }}} -->
|
<!-- }}} -->
|
||||||
|
|
Loading…
Reference in New Issue
Block a user