2013-01-15 09:24:09 +01:00
|
|
|
<!doctype>
|
|
|
|
<html>
|
|
|
|
|
2013-01-19 18:46:22 +01:00
|
|
|
<!-- {{{ head -->
|
2013-01-15 09:24:09 +01:00
|
|
|
<head>
|
|
|
|
<link rel="icon" href="favicon.ico" />
|
|
|
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
|
|
|
<title>aria2 web client</title>
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="css/bootstrap.css">
|
|
|
|
<link rel="stylesheet" href="css/font-awesome.css">
|
2013-01-15 12:19:26 +01:00
|
|
|
|
2013-01-15 09:24:09 +01:00
|
|
|
<link rel="stylesheet" href="css/style.css">
|
2013-01-15 12:19:26 +01:00
|
|
|
<link rel="stylesheet" href="css/download.css">
|
2013-01-28 15:18:21 +01:00
|
|
|
<link rel="stylesheet" href="css/modals.css">
|
2013-01-15 09:24:09 +01:00
|
|
|
|
2013-03-09 05:02:26 +01:00
|
|
|
<style>
|
|
|
|
/* temporary hack for angularui modal implementation */
|
|
|
|
.control-group input {
|
|
|
|
height: 30px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2013-01-15 09:24:09 +01:00
|
|
|
|
|
|
|
<!-- external javascript dependencies -->
|
|
|
|
<script src="js/libs/jquery-1.8.3.js"></script>
|
|
|
|
<script src="js/libs/underscore.js"></script>
|
|
|
|
|
2013-01-28 15:18:21 +01:00
|
|
|
<script src="js/libs/angular.js"></script>
|
|
|
|
|
|
|
|
<script src="js/libs/angularui-bootstrap.js"></script>
|
2013-01-15 09:24:09 +01:00
|
|
|
|
|
|
|
|
|
|
|
<script src="js/libs/jquery.flot.js"></script>
|
2013-02-25 13:21:55 +01:00
|
|
|
|
2013-01-26 17:54:17 +01:00
|
|
|
<!-- We do manual resize currently
|
2013-01-15 09:24:09 +01:00
|
|
|
<script src="js/libs/jquery.flot.resize.js"></script>
|
2013-01-26 17:54:17 +01:00
|
|
|
-->
|
2013-01-15 09:24:09 +01:00
|
|
|
|
|
|
|
<!-- webui core -->
|
2013-01-22 08:59:52 +01:00
|
|
|
<script src="js/init.js"></script>
|
2013-01-15 09:24:09 +01:00
|
|
|
|
2013-01-21 15:07:55 +01:00
|
|
|
<script src="js/directives/chunkbar.js"></script>
|
|
|
|
<script src="js/directives/dgraph.js"></script>
|
2013-01-30 07:13:38 +01:00
|
|
|
<script src="js/directives/fselect.js"></script>
|
2013-01-21 15:07:55 +01:00
|
|
|
|
2013-01-22 08:53:30 +01:00
|
|
|
<script src="js/filters/bytes.js"></script>
|
2013-01-22 13:11:38 +01:00
|
|
|
<script src="js/filters/path.js"></script>
|
2013-01-22 08:53:30 +01:00
|
|
|
|
2013-01-29 13:47:40 +01:00
|
|
|
<script src="js/services/constants.js"></script>
|
2013-01-15 09:24:09 +01:00
|
|
|
<script src="js/services/deps.js"></script>
|
|
|
|
<script src="js/services/base64.js"></script>
|
|
|
|
<script src="js/services/utils.js"></script>
|
2013-02-26 15:02:26 +01:00
|
|
|
|
2013-01-29 18:52:30 +01:00
|
|
|
<script src="js/services/modals.js"></script>
|
2013-02-22 19:28:10 +01:00
|
|
|
<script src="js/services/alerts.js"></script>
|
2013-01-15 09:24:09 +01:00
|
|
|
|
2013-02-15 18:34:10 +01:00
|
|
|
<script src="js/services/settings/settings.js"></script>
|
|
|
|
<script src="js/services/settings/filters.js"></script>
|
|
|
|
|
2013-01-15 09:24:09 +01:00
|
|
|
<script src="js/services/rpc/jsoncall.js"></script>
|
|
|
|
<script src="js/services/rpc/sockcall.js"></script>
|
|
|
|
<script src="js/services/rpc/syscall.js"></script>
|
|
|
|
<script src="js/services/rpc/rpc.js"></script>
|
2013-01-29 18:52:30 +01:00
|
|
|
<script src="js/services/rpc/helpers.js"></script>
|
2013-01-15 09:24:09 +01:00
|
|
|
|
|
|
|
|
|
|
|
<script src="js/ctrls/modal.js"></script>
|
2013-01-29 18:52:30 +01:00
|
|
|
<script src="js/ctrls/nav.js"></script>
|
2013-01-15 09:24:09 +01:00
|
|
|
<script src="js/ctrls/download.js"></script>
|
2013-02-22 19:28:10 +01:00
|
|
|
<script src="js/ctrls/alert.js"></script>
|
2013-01-15 09:24:09 +01:00
|
|
|
|
|
|
|
|
|
|
|
</head>
|
2013-01-19 18:46:22 +01:00
|
|
|
<!-- }}} -->
|
2013-01-15 09:24:09 +01:00
|
|
|
|
2013-03-02 12:01:07 +01:00
|
|
|
<body ng-app="webui">
|
2013-01-15 09:24:09 +01:00
|
|
|
|
2013-01-19 18:46:22 +01:00
|
|
|
<!-- {{{ header -->
|
2013-01-15 09:24:09 +01:00
|
|
|
<div class="navbar navbar-inverse navbar-fixed-top" ng-controller="NavCtrl">
|
|
|
|
<div class="navbar-inner">
|
|
|
|
<div class="container">
|
2013-01-24 09:49:56 +01:00
|
|
|
<!-- using a span for collapse rather than a to fix the angular majic on anchors -->
|
|
|
|
<span class="btn btn-navbar"
|
2013-01-28 15:18:21 +01:00
|
|
|
ng-click="collapsed = !collapsed">
|
2013-01-15 09:24:09 +01:00
|
|
|
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
2013-01-24 09:49:56 +01:00
|
|
|
</span>
|
2013-01-15 09:24:09 +01:00
|
|
|
|
|
|
|
<a class="brand">{{ name }}</a>
|
|
|
|
|
2013-01-28 15:18:21 +01:00
|
|
|
<div class="nav-collapse" collapse="collapsed">
|
2013-01-15 09:24:09 +01:00
|
|
|
<ul class="nav">
|
|
|
|
<li class="dropdown">
|
2013-01-28 15:18:21 +01:00
|
|
|
<a class="dropdown-toggle" href="#">
|
2013-01-15 09:24:09 +01:00
|
|
|
Add <b class="caret"></b>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li>
|
2013-01-29 18:52:30 +01:00
|
|
|
<a href="#" ng-click="addUris()">
|
2013-01-28 15:18:21 +01:00
|
|
|
<i class="icon-download"></i> By URIs
|
|
|
|
</a>
|
2013-01-15 09:24:09 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2013-01-30 07:13:38 +01:00
|
|
|
<a href="#" ng-click="addTorrents()">
|
|
|
|
<i class="icon-file"></i> By Torrents
|
|
|
|
</a>
|
2013-01-15 09:24:09 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2013-01-30 07:13:38 +01:00
|
|
|
<a href="#" ng-click="addMetalinks()">
|
|
|
|
<i class="icon-file"></i> By Metalinks
|
|
|
|
</a>
|
2013-01-15 09:24:09 +01:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
2013-02-25 14:09:11 +01:00
|
|
|
<li class="dropdown">
|
|
|
|
<a class="dropdown-toggle" href="#"> Manage <b class="caret"></b></a>
|
2013-01-15 09:24:09 +01:00
|
|
|
<ul class="dropdown-menu">
|
2013-02-25 14:09:11 +01:00
|
|
|
<li>
|
|
|
|
<a
|
|
|
|
href="#"
|
|
|
|
ng-click="forcePauseAll()"><i class="icon-pause"></i> Pause All</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a
|
|
|
|
href="#"
|
|
|
|
ng-click="unpauseAll()"><i class="icon-play"></i> Resume Paused</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a
|
|
|
|
href="#"
|
|
|
|
ng-click="purgeDownloadResult()"><i class="icon-remove"></i> Purge Completed</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<!-- not adding remove all as requires many rpc syscalls to finish
|
|
|
|
<li>
|
|
|
|
<a
|
|
|
|
href="#"
|
|
|
|
ng-click="removeAll()"><i class="icon-fire"></i> Remove All</a>
|
|
|
|
</li>
|
|
|
|
-->
|
2013-01-15 09:24:09 +01:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
2013-02-20 01:13:06 +01:00
|
|
|
<ul class="nav">
|
2013-01-15 09:24:09 +01:00
|
|
|
<li class="dropdown">
|
2013-02-25 14:09:11 +01:00
|
|
|
<a
|
|
|
|
href="#"
|
|
|
|
class="dropdown-toggle">Settings <b class="caret"></b></a>
|
|
|
|
|
2013-01-15 09:24:09 +01:00
|
|
|
<ul class="dropdown-menu">
|
2013-03-02 12:01:07 +01:00
|
|
|
<li>
|
2013-02-26 15:02:26 +01:00
|
|
|
<a
|
|
|
|
ng-click="changeCSettings()"
|
|
|
|
href="#"><i class="icon-wrench"></i> Connection Settings</a>
|
2013-02-25 14:09:11 +01:00
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<a
|
|
|
|
ng-click="changeGSettings()"
|
|
|
|
href="#"><i class="icon-wrench"></i> Global Settings</a>
|
2013-01-15 09:24:09 +01:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
2013-01-29 13:47:40 +01:00
|
|
|
<ul class="nav pull-right" ng-show="false">
|
2013-01-15 09:24:09 +01:00
|
|
|
<li class="dropdown">
|
2013-02-25 14:09:11 +01:00
|
|
|
<a
|
|
|
|
class="dropdown-toggle"
|
|
|
|
href="#">Miscellaneous <b class="caret"></b></a>
|
2013-01-15 09:24:09 +01:00
|
|
|
<ul class="dropdown-menu">
|
2013-02-25 14:09:11 +01:00
|
|
|
<li>
|
|
|
|
<a href="#"><i class="icon-list-alt"></i> Global Statistics</a>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<a href="#"><i class="icon-info-sign"></i> About</a>
|
|
|
|
</li>
|
2013-01-15 09:24:09 +01:00
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div><!--/.nav-collapse -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-01-19 18:46:22 +01:00
|
|
|
<!-- }}} -->
|
2013-01-15 09:24:09 +01:00
|
|
|
|
2013-02-22 19:28:10 +01:00
|
|
|
|
2013-01-15 09:24:09 +01:00
|
|
|
<div role="main" class="container" ng-controller="DownloadCtrl">
|
|
|
|
|
2013-02-22 19:28:10 +01:00
|
|
|
<!-- {{{ alerts -->
|
|
|
|
<div ng-controller="AlertCtrl">
|
|
|
|
<div class="alert alert-{{alert.type}}" ng-repeat="alert in pendingAlerts">
|
|
|
|
<span ng-bind-html-unsafe="alert.msg"></span>
|
|
|
|
<button type="button" class="close" ng-click="removeAlert($index)">x</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- }}} -->
|
|
|
|
|
|
|
|
<!-- {{{ downloads -->
|
2013-01-29 13:47:40 +01:00
|
|
|
<div ng-show="!getDownloads().length" class="hero-unit">
|
|
|
|
<h3>Currently no downloads in line to display, use the Add download button to start downloading files!</h3>
|
|
|
|
</div>
|
|
|
|
|
2013-01-21 15:07:55 +01:00
|
|
|
<!-- {{{ download template -->
|
2013-02-25 11:50:42 +01:00
|
|
|
<table
|
|
|
|
ng-repeat="download in getDownloads()"
|
|
|
|
class="download" data-gid="{{download.gid}}">
|
2013-01-19 18:46:22 +01:00
|
|
|
<tbody>
|
|
|
|
<tr>
|
2013-02-25 11:50:42 +01:00
|
|
|
<td
|
|
|
|
ng-click="download.collapsed = !download.collapsed"
|
|
|
|
class="download-overview">
|
2013-01-22 13:11:38 +01:00
|
|
|
<b class="download-name">{{getName(download)}}</b>
|
2013-01-19 18:46:22 +01:00
|
|
|
</td>
|
|
|
|
<td class="download-controls" rowspan="2">
|
2013-02-25 13:21:55 +01:00
|
|
|
<!-- {{{ download control buttons -->
|
2013-01-19 18:46:22 +01:00
|
|
|
<div class="btn-group">
|
2013-02-25 11:50:42 +01:00
|
|
|
<button
|
|
|
|
ng-show="hasStatus(download, 'active')"
|
|
|
|
class="btn"
|
|
|
|
ng-click="pause(download)">
|
|
|
|
<i class="icon-pause"></i>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button
|
|
|
|
ng-show="hasStatus(download, 'paused')"
|
|
|
|
class="btn"
|
|
|
|
ng-click="resume(download)">
|
|
|
|
<i class="icon-play"></i>
|
|
|
|
</button>
|
2013-01-22 08:53:30 +01:00
|
|
|
|
2013-02-25 11:50:42 +01:00
|
|
|
<button
|
|
|
|
ng-show="canRestart(download)"
|
|
|
|
class="btn"
|
|
|
|
ng-click="restart(download)">
|
|
|
|
<i class="icon-repeat"></i>
|
|
|
|
</button>
|
2013-01-19 18:46:22 +01:00
|
|
|
|
2013-02-25 11:50:42 +01:00
|
|
|
<button
|
|
|
|
class="btn hidden-phone"
|
|
|
|
ng-click="remove(download)">
|
|
|
|
<i class="icon-stop"></i>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<button
|
|
|
|
class="btn hidden-phone"
|
|
|
|
ng-show="['waiting', 'active'].indexOf( getType(download) )!= -1"
|
|
|
|
ng-click="showSettings(download)">
|
|
|
|
<i class="icon-cog"></i>
|
|
|
|
</button>
|
2013-01-19 18:46:22 +01:00
|
|
|
|
2013-01-28 15:18:21 +01:00
|
|
|
<button class="btn dropdown-toggle">
|
2013-01-19 18:46:22 +01:00
|
|
|
<i class="caret"></i>
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
|
2013-02-25 11:50:42 +01:00
|
|
|
<li class="visible-phone">
|
|
|
|
<a
|
|
|
|
ng-click="showSettings(download)"
|
|
|
|
ng-show="['waiting', 'active'].indexOf( getType(download) )!= -1"
|
|
|
|
href="#"><i class="icon-cog"></i> Settings</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li ng-show="download.bittorrent">
|
|
|
|
<a href="#"><i class="icon-list-alt"></i> Peers</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<a ng-click="download.collapsed = !download.collapsed"
|
|
|
|
href="#"><i class="icon-info-sign"></i> More Info</a>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="visible-phone">
|
|
|
|
<a ng-click="remove(download)"
|
|
|
|
href="#"><i class="icon-remove"></i> Remove</a>
|
|
|
|
</li>
|
2013-01-17 07:51:03 +01:00
|
|
|
</ul>
|
2013-01-19 18:46:22 +01:00
|
|
|
</div>
|
2013-02-25 13:21:55 +01:00
|
|
|
<!-- }}} -->
|
2013-01-19 18:46:22 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-02-25 13:21:55 +01:00
|
|
|
<td
|
|
|
|
ng-click="download.collapsed = !download.collapsed"
|
|
|
|
class="download-overview">
|
|
|
|
<!-- {{{ statistics -->
|
2013-01-19 18:46:22 +01:00
|
|
|
<ul class="stats pull-left">
|
2013-02-25 13:21:55 +01:00
|
|
|
<!-- {{{ active download statistics -->
|
|
|
|
<li
|
|
|
|
ng-show="hasStatus(download, 'active')"
|
|
|
|
class="label label-success hidden-phone hidden-tablet">
|
|
|
|
<span>Status: {{download.status}}</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li
|
|
|
|
ng-show="hasStatus(download, 'active')"
|
|
|
|
class="label label-success">
|
|
|
|
<span>ETA: {{getEta(download) | time}}</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li
|
|
|
|
ng-show="hasStatus(download, 'active')"
|
|
|
|
class="label label-success hidden-phone">
|
|
|
|
<span>Size: {{download.totalLength | blength}}</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li
|
|
|
|
ng-show="hasStatus(download, 'active')"
|
|
|
|
class="label label-success hidden-phone">
|
|
|
|
<span>Downloaded: {{download.completedLength | blength}}</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li
|
|
|
|
ng-show="hasStatus(download, 'active')"
|
|
|
|
class="label label-success hidden-phone hidden-tablet">
|
|
|
|
<span>Progress: {{getProgress(download)}}%</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li
|
|
|
|
ng-show="hasStatus(download, 'active')"
|
|
|
|
class="label label-success">
|
|
|
|
<span>Speed: {{download.downloadSpeed | bspeed}}</span>
|
|
|
|
</li>
|
2013-01-19 18:46:22 +01:00
|
|
|
|
2013-01-21 15:07:55 +01:00
|
|
|
<!-- TODO: figure out how to do multiple ng-show
|
2013-01-22 13:11:38 +01:00
|
|
|
<li ng-show="download.bittorrent" class="label label-success hidden-phone">Upload Speed: <span class="download-uploadSpeed">{{download.uploadSpeed | bspeed}}</span></li>
|
2013-01-21 15:07:55 +01:00
|
|
|
-->
|
2013-01-19 18:46:22 +01:00
|
|
|
|
2013-02-25 13:21:55 +01:00
|
|
|
<!-- }}} -->
|
|
|
|
<!-- {{{ paused download statistics -->
|
|
|
|
<li
|
|
|
|
ng-show="hasStatus(download, 'paused')"
|
|
|
|
class="label label-info">
|
|
|
|
<span>Status: {{download.status}}</span>
|
|
|
|
</li>
|
2013-01-19 18:46:22 +01:00
|
|
|
|
2013-02-25 13:21:55 +01:00
|
|
|
<li
|
|
|
|
ng-show="hasStatus(download, 'paused')"
|
|
|
|
class="label label-info">
|
|
|
|
<span>Size: {{download.totalLength | blength}}</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li
|
|
|
|
ng-show="hasStatus(download, 'paused')"
|
|
|
|
class="label label-info hidden-phone">
|
|
|
|
<span>Downloaded: {{download.completedLength | blength}}</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li
|
|
|
|
ng-show="hasStatus(download, 'paused')"
|
|
|
|
class="label label-info hidden-phone">
|
|
|
|
<span>Path: {{download.dir}}</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<!-- }}} -->
|
|
|
|
<!-- {{{ complete download statistics -->
|
2013-01-19 18:46:22 +01:00
|
|
|
|
2013-02-25 13:21:55 +01:00
|
|
|
<li
|
|
|
|
ng-show="hasStatus(download, 'complete')"
|
|
|
|
class="label">
|
|
|
|
<span>Status: {{download.status}}</span>
|
|
|
|
</li>
|
2013-01-19 18:46:22 +01:00
|
|
|
|
2013-02-25 13:21:55 +01:00
|
|
|
<li
|
|
|
|
ng-show="hasStatus(download, 'complete')"
|
|
|
|
class="label hidden-phone">
|
|
|
|
<span>Path: {{download.dir}}</span>
|
|
|
|
</li>
|
2013-01-19 18:46:22 +01:00
|
|
|
|
2013-02-25 13:21:55 +01:00
|
|
|
<li
|
|
|
|
ng-show="hasStatus(download, 'complete')"
|
|
|
|
class="label">
|
|
|
|
<span>Size: {{download.totalLength | blength}}</span>
|
|
|
|
</li>
|
2013-01-15 09:24:09 +01:00
|
|
|
|
2013-02-25 13:21:55 +01:00
|
|
|
<!-- }}} -->
|
|
|
|
<!-- {{{ removed download statistics -->
|
|
|
|
<li
|
|
|
|
ng-show="hasStatus(download, 'removed')"
|
|
|
|
class="label label-warning">
|
|
|
|
<span>Status: {{download.status}}</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li
|
|
|
|
ng-show="hasStatus(download, 'removed')"
|
|
|
|
class="label label-warning hidden-phone">
|
|
|
|
<span>Path: {{download.dir}}</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li
|
|
|
|
ng-show="hasStatus(download, 'removed')"
|
|
|
|
class="label label-warning">
|
|
|
|
<span>Size: {{download.totalLength | blength}}</span>
|
|
|
|
</li>
|
|
|
|
<!-- }}} -->
|
|
|
|
<!-- {{{ error download statistics -->
|
|
|
|
<li
|
|
|
|
ng-show="hasStatus(download, 'error')"
|
|
|
|
class="label label-important">
|
|
|
|
<span>Status: {{download.status}}</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li
|
|
|
|
ng-show="hasStatus(download, 'error')"
|
|
|
|
class="label label-important hidden-phone">
|
|
|
|
<span>Path: {{download.dir}}</span>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li
|
|
|
|
ng-show="hasStatus(download, 'error')"
|
|
|
|
class="label label-important">
|
|
|
|
<span>Size: {{download.totalLength | blength}}</span>
|
|
|
|
</li>
|
|
|
|
<!-- }}} -->
|
2013-01-19 18:46:22 +01:00
|
|
|
</ul>
|
2013-02-25 13:21:55 +01:00
|
|
|
<!-- }}} -->
|
2013-01-19 18:46:22 +01:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2013-01-28 15:18:21 +01:00
|
|
|
<td class="download-progress" colspan="2" ng-click="download.collapsed = !download.collapsed">
|
2013-01-19 18:46:22 +01:00
|
|
|
|
2013-01-26 17:54:17 +01:00
|
|
|
<div ng-show="hasStatus(download, 'active')" class="progress progress-striped" style="width: 100%; margin: 0; padding: 0;">
|
2013-01-22 13:11:38 +01:00
|
|
|
<div class="bar" style="width: {{getProgress(download)}}%;"></div>
|
2013-01-19 18:46:22 +01:00
|
|
|
</div>
|
|
|
|
|
2013-01-22 13:11:38 +01:00
|
|
|
<div ng-show="hasStatus(download, 'paused')" class="progress progress-info progress-striped" style="width: 100%; margin: 0; padding: 0;">
|
|
|
|
<div class="bar" style="width: {{getProgress(download)}}%;"></div>
|
2013-01-19 18:46:22 +01:00
|
|
|
</div>
|
|
|
|
|
2013-01-22 13:11:38 +01:00
|
|
|
<div ng-show="hasStatus(download, 'error')" class="progress progress-danger progress-striped" style="width: 100%; margin: 0; padding: 0;">
|
|
|
|
<div class="bar" style="width: {{getProgress(download)}}%;"></div>
|
2013-01-19 18:46:22 +01:00
|
|
|
</div>
|
|
|
|
|
2013-01-22 13:11:38 +01:00
|
|
|
<div ng-show="hasStatus(download, 'removed')" class="progress progress-warning progress-striped" style="width: 100%; margin: 0; padding: 0;">
|
|
|
|
<div class="bar" style="width: {{getProgress(download)}}%;"></div>
|
2013-01-19 18:46:22 +01:00
|
|
|
</div>
|
|
|
|
|
2013-01-22 13:11:38 +01:00
|
|
|
<div ng-show="hasStatus(download, 'complete')" class="progress progress-success progress-striped" style="width: 100%; margin: 0; padding: 0;">
|
|
|
|
<div class="bar" style="width: {{getProgress(download)}}%;"></div>
|
2013-01-19 18:46:22 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</td>
|
|
|
|
</tr>
|
2013-01-28 15:18:21 +01:00
|
|
|
<tr ng-click="download.collapsed = !download.collapsed" class="download-detail">
|
2013-01-19 18:46:22 +01:00
|
|
|
<td colspan="2">
|
2013-03-02 12:01:07 +01:00
|
|
|
<div collapse="download.collapsed">
|
2013-01-28 15:18:21 +01:00
|
|
|
<canvas bitfield="download.bitfield" draw="!download.collapsed" pieces="download.numPieces" class="progress chunk-canvas" width="1400" style="width: 100%; margin: 5px;" chunkbar></canvas>
|
2013-01-19 18:46:22 +01:00
|
|
|
<ul class="stats">
|
|
|
|
<li class="label">Status: <span class="download-status">{{download.status}}</span></li>
|
|
|
|
<li class="label">GID: <span class="download-gid">{{download.gid}}</span></li>
|
|
|
|
<li class="label">Dir: <span class="download-dir">{{download.dir}}</span></li>
|
2013-01-22 08:53:30 +01:00
|
|
|
<li class="label">Size: <span class="download-totalLength">{{download.totalLength | blength}}</span></li>
|
|
|
|
<li class="label">Downloaded: <span class="download-completedLength">{{download.completedLength | blength}}</span></li>
|
2013-01-19 18:46:22 +01:00
|
|
|
<li class="label">Num of Pieces: <span class="download-numPieces">{{download.numPieces}}</span></li>
|
2013-01-22 08:53:30 +01:00
|
|
|
<li class="label">Piece Length: <span class="download-pieceLength">{{download.pieceLength | blength}}</span></li>
|
2013-01-22 13:11:38 +01:00
|
|
|
<li class="label">ETA: <span class="download-eta">{{getEta(download) | time}}</span></li>
|
2013-01-22 08:53:30 +01:00
|
|
|
<li class="label">Down Speed: <span class="download-downloadSpeed">{{download.downloadSpeed | bspeed}}</span></li>
|
2013-01-19 18:46:22 +01:00
|
|
|
|
2013-01-22 13:11:38 +01:00
|
|
|
<li class="label" ng-show="download.bittorrent">Upload Speed: <span class="download-uploadSpeed">{{download.uploadSpeed | bspeed}}</span></li>
|
|
|
|
<li class="label" ng-show="download.bittorrent">Upload Length: <span class="download-uploadLength">{{download.uploadLength | blength}}</span></li>
|
2013-01-19 18:46:22 +01:00
|
|
|
|
|
|
|
<li class="label">Connections: <span class="download-connections">{{download.connections}}</span></li>
|
|
|
|
</ul>
|
2013-01-15 09:24:09 +01:00
|
|
|
|
2013-01-19 18:46:22 +01:00
|
|
|
<h4 class="hidden-phone">Download Files</h4>
|
|
|
|
<ul class="download-files hidden-phone">
|
2013-01-22 13:11:38 +01:00
|
|
|
<li class="label" ng-repeat="file in download.files">{{file.path | prelative:download.dir}} ({{file.length | blength}})</li>
|
2013-01-19 18:46:22 +01:00
|
|
|
</ul>
|
|
|
|
|
2013-01-22 13:11:38 +01:00
|
|
|
<div ng-show="hasStatus(download, 'active')">
|
2013-01-28 15:18:21 +01:00
|
|
|
<div class="download-graph" dspeed="download.downloadSpeed" uspeed="download.uploadSpeed" dgraph draw="!download.collapsed"></div>
|
2013-01-19 18:46:22 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2013-01-21 15:07:55 +01:00
|
|
|
<!-- }}} -->
|
|
|
|
|
2013-02-22 19:28:10 +01:00
|
|
|
<!-- }}} -->
|
|
|
|
|
2013-01-21 15:07:55 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- {{{ modals -->
|
|
|
|
<div ng-controller="ModalCtrl">
|
2013-01-28 15:18:21 +01:00
|
|
|
|
2013-02-25 13:21:55 +01:00
|
|
|
<!--{{{ add uri modal -->
|
2013-01-29 18:52:30 +01:00
|
|
|
<div class="modal hide modal-adduris" modal="getUris.shown">
|
2013-02-20 01:13:06 +01:00
|
|
|
<div class="modal-header">
|
2013-02-20 14:12:55 +01:00
|
|
|
<button class="close" ng-click="getUris.close()">x</button>
|
2013-02-20 01:13:06 +01:00
|
|
|
<h3>Add Downloads By URIs</h3>
|
|
|
|
</div>
|
|
|
|
<form class="modal-body">
|
2013-01-28 15:18:21 +01:00
|
|
|
<fieldset>
|
|
|
|
<legend>Download URIs</legend>
|
2013-01-29 18:52:30 +01:00
|
|
|
<textarea rows="6" ng-model="getUris.uris"></textarea>
|
2013-01-28 15:18:21 +01:00
|
|
|
<p class="help-block">
|
|
|
|
You can add multiple downloads (files)
|
|
|
|
at the same time by putting uris for each
|
|
|
|
file on a separate line.
|
|
|
|
<br>
|
|
|
|
You can also add multiple uris (mirrors) for the
|
|
|
|
*same* file. To do this separate the uris
|
|
|
|
by a space.
|
|
|
|
<br>
|
|
|
|
Aria2 will use multiple uris (or mirrors) to boost
|
|
|
|
the download speed for that file (download).
|
|
|
|
<br>
|
|
|
|
E.g. To add 2 files (downloads) f1.jpg
|
|
|
|
and f2.mp4 with 2 uris (mirrors) each,
|
|
|
|
add uris as following:
|
|
|
|
<br>
|
|
|
|
<!-- pre tags print tabs, so do not indent them! -->
|
|
|
|
<pre>
|
|
|
|
http://ex1.com/f1.jpg http://ex2.com/f1.jpg
|
|
|
|
http://ex1.com/f2.mp4 http://ex2.com/f2.mp4
|
|
|
|
</pre>
|
|
|
|
A URI can be HTTP(S)/FTP/BitTorrent Magnet URI.
|
|
|
|
</p>
|
|
|
|
</fieldset>
|
2013-02-20 01:13:06 +01:00
|
|
|
</form>
|
|
|
|
<div class="modal-footer">
|
2013-02-20 14:12:55 +01:00
|
|
|
<button class="btn" ng-click="getUris.close()">Cancel</button>
|
|
|
|
<button class="btn btn-primary" ng-click="getUris.success()">Start</button>
|
2013-02-20 01:13:06 +01:00
|
|
|
</div>
|
2013-01-28 15:18:21 +01:00
|
|
|
</div>
|
2013-01-30 07:13:38 +01:00
|
|
|
<!-- }}} -->
|
|
|
|
|
2013-02-25 13:21:55 +01:00
|
|
|
<!-- {{{ add torrent modal -->
|
2013-01-30 07:13:38 +01:00
|
|
|
<div class="modal hide" modal="getTorrents.shown">
|
2013-02-20 01:13:06 +01:00
|
|
|
<div class="modal-header">
|
2013-02-20 14:12:55 +01:00
|
|
|
<button class="close" ng-click="getTorrents.close()">x</button>
|
2013-02-20 01:13:06 +01:00
|
|
|
<h3>Add Downloads By Torrents</h3>
|
|
|
|
</div>
|
|
|
|
<form class="modal-body">
|
2013-01-30 07:13:38 +01:00
|
|
|
<fieldset>
|
|
|
|
<legend>Select Torrents</legend>
|
|
|
|
<input type="file" class="input-xlarge" fselect="getTorrents.files" multiple/>
|
|
|
|
<p class="help-block">
|
|
|
|
Select the torrent from the local filesystem to start the download.
|
|
|
|
<br>
|
|
|
|
You can select multiple torrents to start multiple downloads
|
|
|
|
<br>
|
|
|
|
To add a magnet torrent url, use the add url option and add it there.
|
|
|
|
</p>
|
|
|
|
</fieldset>
|
2013-02-20 01:13:06 +01:00
|
|
|
</form>
|
|
|
|
<div class="modal-footer">
|
2013-02-20 14:12:55 +01:00
|
|
|
<button class="btn" ng-click="getTorrents.close()">Cancel</button>
|
|
|
|
<button class="btn btn-primary" ng-click="getTorrents.success()">Start</button>
|
2013-02-20 01:13:06 +01:00
|
|
|
</div>
|
2013-01-30 07:13:38 +01:00
|
|
|
</div
|
|
|
|
<!-- }}} -->
|
|
|
|
|
2013-02-25 13:21:55 +01:00
|
|
|
<!-- {{{ add metalink modal -->
|
2013-01-30 07:13:38 +01:00
|
|
|
<div class="modal hide" modal="getMetalinks.shown">
|
2013-02-20 01:13:06 +01:00
|
|
|
<div class="modal-header">
|
2013-02-20 14:12:55 +01:00
|
|
|
<button class="close" ng-click="getMetalinks.close()">x</button>
|
2013-02-20 01:13:06 +01:00
|
|
|
<h3>Add Downloads By Metalinks</h3>
|
|
|
|
</div>
|
|
|
|
<form class="modal-body">
|
2013-01-30 07:13:38 +01:00
|
|
|
<fieldset>
|
|
|
|
<legend>Select Metalinks</legend>
|
|
|
|
<input type="file" class="input-xlarge" fselect="getMetalinks.files" multiple/>
|
|
|
|
<p class="help-block">
|
|
|
|
Select the metalink from the local filesystem to start the download.
|
|
|
|
<br>
|
|
|
|
You can select multiple metalinks to start multiple downloads
|
|
|
|
</p>
|
|
|
|
</fieldset>
|
2013-02-20 01:13:06 +01:00
|
|
|
</form>
|
|
|
|
<div class="modal-footer">
|
2013-02-20 14:12:55 +01:00
|
|
|
<button class="btn" ng-click="getMetalinks.close()">Cancel</button>
|
|
|
|
<button class="btn btn-primary" ng-click="getMetalinks.success()">Start</button>
|
2013-02-20 01:13:06 +01:00
|
|
|
</div>
|
2013-01-30 07:13:38 +01:00
|
|
|
</div
|
|
|
|
<!-- }}} -->
|
2013-01-28 15:18:21 +01:00
|
|
|
|
2013-02-25 13:21:55 +01:00
|
|
|
<!-- {{{ settings modal -->
|
2013-02-25 11:50:42 +01:00
|
|
|
<div class="modal hide" modal="settings.shown">
|
2013-02-20 01:13:06 +01:00
|
|
|
<div class="modal-header">
|
2013-02-25 11:50:42 +01:00
|
|
|
<button class="close" ng-click="settings.close()">x</button>
|
|
|
|
<h3>{{settings.title}}</h3>
|
2013-02-20 01:13:06 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<form class="form-horizontal modal-body">
|
|
|
|
<fieldset>
|
|
|
|
<div class="control-group">
|
2013-02-25 11:50:42 +01:00
|
|
|
<div ng-repeat="(name, set) in settings.settings">
|
2013-02-20 01:13:06 +01:00
|
|
|
<label class="control-label">{{name}}</label>
|
|
|
|
|
|
|
|
<div class="controls">
|
2013-02-20 14:12:55 +01:00
|
|
|
<select ng-show="set.options.length" ng-options="opt for opt in set.options" ng-model="set.val">
|
2013-02-20 01:13:06 +01:00
|
|
|
</select>
|
2013-02-20 14:12:55 +01:00
|
|
|
<input ng-show="!set.options.length" typ="text" class="input-xlarge" ng-model="set.val"/>
|
|
|
|
<p class="help-block">{{set.desc}}</p>
|
2013-02-20 01:13:06 +01:00
|
|
|
</div>
|
|
|
|
<br><br>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
2013-02-25 11:50:42 +01:00
|
|
|
<button class="btn" ng-click="settings.close()">Cancel</button>
|
|
|
|
<button class="btn btn-success" ng-click="settings.success()">Save</button>
|
2013-02-20 01:13:06 +01:00
|
|
|
</div>
|
|
|
|
</div
|
|
|
|
<!-- }}} -->
|
|
|
|
|
2013-02-26 15:02:26 +01:00
|
|
|
<!--{{{ connection modal -->
|
|
|
|
<div class="modal hide" modal="connection.shown">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button class="close" ng-click="connection.close()">x</button>
|
|
|
|
<h3>Connection Settings</h3>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-horizontal">
|
|
|
|
<fieldset>
|
|
|
|
<legend>Aria2 RPC host and port</legend>
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">Enter the host:</label>
|
|
|
|
<div class="controls">
|
|
|
|
<div class="input-prepend">
|
2013-03-09 06:35:53 +01:00
|
|
|
<span class="add-on">http(s)://</span>
|
|
|
|
<input type="text" class="input-xlarge"
|
|
|
|
ng-model="connection.conf.host"/>
|
2013-02-26 15:02:26 +01:00
|
|
|
</div>
|
|
|
|
<p class="help-block">
|
|
|
|
Enter the ip or dns name of the server on which the
|
|
|
|
rpc for aria2 is running (default = localhost)
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<label class="control-label">Enter the port:</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input type="text" class="input-xlarge"
|
2013-03-09 06:35:53 +01:00
|
|
|
ng-model="connection.conf.port"/>
|
2013-02-26 15:02:26 +01:00
|
|
|
<p class="help-block">
|
|
|
|
Enter the port of the server on which the rpc for
|
|
|
|
aria2 is running (default = 6800)
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<label class="control-label">SSL/TLS encryption:</label>
|
|
|
|
<div class="controls">
|
2013-03-09 06:35:53 +01:00
|
|
|
<input type="checkbox"
|
|
|
|
ng-model="connection.conf.encrypt">
|
|
|
|
Enable encryption connection to aria2
|
|
|
|
</input>
|
2013-02-26 15:02:26 +01:00
|
|
|
<p class="help-block">Enable SSL/TLS encryption.</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<label class="control-label">Enter the username (optional):</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input type="text" class="input-xlarge"
|
2013-03-09 06:35:53 +01:00
|
|
|
ng-model="connection.conf.auth.user"/>
|
2013-02-26 15:02:26 +01:00
|
|
|
<p class="help-block">
|
|
|
|
Enter the aria2 RPC username
|
|
|
|
(empty if authentication not enabled)
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<label class="control-label">Enter the password (optional):</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input type="password" class="input-xlarge"
|
2013-03-09 06:35:53 +01:00
|
|
|
ng-model="connection.conf.auth.pass"/>
|
2013-02-26 15:02:26 +01:00
|
|
|
<p class="help-block">
|
|
|
|
Enter the aria2 RPC password
|
|
|
|
(empty if authentication not enabled)
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2013-03-09 06:35:53 +01:00
|
|
|
<button href="#" class="btn" ng-click="connection.close()">Cancel</button>
|
|
|
|
<button href="#"
|
|
|
|
class="btn btn-primary" ng-click="connection.success()">
|
|
|
|
Save Connection configuration
|
|
|
|
</button>
|
2013-02-26 15:02:26 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- }}} -->
|
|
|
|
|
|
|
|
|
2013-01-15 09:24:09 +01:00
|
|
|
</div>
|
2013-01-21 15:07:55 +01:00
|
|
|
<!-- }}} -->
|
2013-01-15 09:24:09 +01:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|