2012-05-01 13:52:07 +02:00
|
|
|
<!doctype html>
|
|
|
|
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
|
|
|
|
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
|
|
|
|
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
|
|
|
|
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
|
|
2012-06-09 07:23:39 +02:00
|
|
|
<title>aria2 Web Client</title>
|
2012-05-01 13:52:07 +02:00
|
|
|
<meta name="description" content="">
|
|
|
|
<meta name="author" content="">
|
|
|
|
|
|
|
|
<meta name="viewport" content="width=device-width">
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="css/style.css">
|
2012-05-27 00:02:45 +02:00
|
|
|
<link rel="stylesheet" href="css/bootstrap.css">
|
2012-05-01 13:52:07 +02:00
|
|
|
|
|
|
|
<script src="js/libs/modernizr-2.5.3.min.js"></script>
|
2012-05-27 00:02:45 +02:00
|
|
|
<script src="js/libs/jquery-1.7.2.js"></script>
|
|
|
|
<script src="js/libs/bootstrap.js"></script>
|
2012-06-04 16:08:46 +02:00
|
|
|
<script src="js/libs/mustache.js"></script>
|
2012-06-06 12:41:15 +02:00
|
|
|
<script src="js/aria2_settings.js"></script>
|
2012-06-04 16:08:46 +02:00
|
|
|
|
2012-06-07 10:10:19 +02:00
|
|
|
<style>
|
|
|
|
.button_set {
|
|
|
|
float: right;
|
|
|
|
margin-bottom: 5px;
|
|
|
|
}
|
2012-06-07 12:02:11 +02:00
|
|
|
.active_settings {
|
|
|
|
text-align: center;
|
|
|
|
margin-bottom: 3px;
|
|
|
|
}
|
2012-06-22 14:31:02 +02:00
|
|
|
|
|
|
|
.download_item {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
padding-top: 10px;
|
|
|
|
background-color: rgb(245, 245, 245);
|
|
|
|
border: 1px solid rgba(0, 0, 0, 0.05);
|
|
|
|
border-radius: 4px 4px 4px 4px;
|
|
|
|
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.05);
|
|
|
|
}
|
|
|
|
|
2012-06-07 10:10:19 +02:00
|
|
|
</style>
|
2012-06-16 14:50:11 +02:00
|
|
|
<!--{{{ active downloads template -->
|
2012-06-05 11:44:54 +02:00
|
|
|
<script type="text/mustache" id="download_active_template">
|
2012-06-22 14:31:02 +02:00
|
|
|
<div class="row download_item download_active_item" data-gid="{{gid}}" data-settingsName={{sett_name}}>
|
|
|
|
<div class="span2" style="overflow: hidden;">
|
|
|
|
<b style="font-size: 12px;" class="tmp_name">{{name}}</b>
|
2012-06-05 07:25:57 +02:00
|
|
|
</div>
|
2012-06-05 14:53:52 +02:00
|
|
|
<div class="span6">
|
2012-06-07 10:10:19 +02:00
|
|
|
<div class="pull-right">
|
2012-06-07 12:02:11 +02:00
|
|
|
<span class="label label-success">Remaining: <span class="tmp_remaining">{{remaining}}</span></span> |
|
|
|
|
<span class="label label-success">Progress: <span class="tmp_percentage">{{percentage}}</span>%</span> |
|
|
|
|
<span class="label label-success">Speed: <span class="tmp_down_speed">{{down_speed}}</span></span> |
|
|
|
|
<span class="label label-success">Time left: <span class="tmp_eta">{{eta}}</span></span>
|
2012-06-07 10:10:19 +02:00
|
|
|
</div>
|
2012-06-05 11:44:54 +02:00
|
|
|
</div>
|
2012-06-07 10:10:19 +02:00
|
|
|
<div class="span3">
|
|
|
|
<div class="button_set">
|
2012-06-05 11:44:54 +02:00
|
|
|
<button class="btn btn-mini download_pause"><i class="icon-pause"></i>Pause</button>
|
2012-06-07 12:02:11 +02:00
|
|
|
<button class="btn btn-mini btn-info" data-toggle="collapse" data-target="[data-gid={{gid}}] .more_info" onclick="$(this).button('toggle');"><i class="icon-info-sign"></i> More Info</button>
|
2012-06-05 13:40:43 +02:00
|
|
|
<button class="btn btn-mini btn-danger download_remove"><i class="icon-remove"></i> Remove</button>
|
2012-06-05 11:44:54 +02:00
|
|
|
</div>
|
2012-06-05 07:25:57 +02:00
|
|
|
</div>
|
2012-06-07 10:10:19 +02:00
|
|
|
<br>
|
2012-06-22 14:31:02 +02:00
|
|
|
<div class="span11 progress progress-striped active">
|
2012-06-05 14:53:52 +02:00
|
|
|
<div class="bar" style="width: {{percentage}}%;"></div>
|
2012-06-05 07:25:57 +02:00
|
|
|
</div>
|
2012-06-07 12:02:11 +02:00
|
|
|
<div class="span12 more_info collapse">
|
|
|
|
<b class="span2 label active_settings">Status: <span class="tmp_status">{{status}}</span></b>
|
|
|
|
<b class="span2 label active_settings">GID: <span class="tmp_gid">{{gid}}</span></b>
|
|
|
|
<b class="span2 label active_settings">Dir: <span class="tmp_dir">{{dir}}</span></b>
|
|
|
|
<b class="span2 label active_settings">Size: <span class="tmp_size">{{size}}</span></b>
|
|
|
|
<b class="span2 label active_settings">Downloaded: <span class="tmp_downloaded">{{downloaded}}</span></b>
|
|
|
|
<b class="span2 label active_settings">Num of Pieces: <span class="tmp_numPieces">{{numPieces}}</span></b>
|
|
|
|
<b class="span2 label active_settings">Piece Length: <span class="tmp_pieceLength">{{pieceLength}}</span></b>
|
|
|
|
<b class="span2 label active_settings">ETA: <span class="tmp_eta">{{eta}}</span></b>
|
|
|
|
<b class="span2 label active_settings">Download Speed: <span class="tmp_down_speed">{{down_speed}}</span></b>
|
|
|
|
<b class="span2 label active_settings">Upload Speed: <span class="tmp_upload_speed">{{upload_speed}}</span></b>
|
|
|
|
<b class="span2 label active_settings">Upload Length: <span class="tmp_uploadLength">{{uploadLength}}</span></b>
|
2012-06-22 14:31:02 +02:00
|
|
|
<b class="span2 label active_settings">Connections: <span class="tmp_connections">{{connections}}</span></b>
|
2012-06-07 14:45:58 +02:00
|
|
|
<div class="span4 offset4">
|
|
|
|
<button class="btn btn-mini pull-right download_settings"><i class="icon-cog"></i> Download Settings for {{sett_name}}</button>
|
|
|
|
</div>
|
2012-06-07 12:02:11 +02:00
|
|
|
</div>
|
2012-06-05 07:25:57 +02:00
|
|
|
</div>
|
|
|
|
</script>
|
2012-06-06 09:51:42 +02:00
|
|
|
<!-- active downloads template end }}}-->
|
|
|
|
|
2012-06-16 14:50:11 +02:00
|
|
|
<!--{{{ waiting downloads template-->
|
2012-06-05 11:44:54 +02:00
|
|
|
<script type="text/mustache" id="download_waiting_template">
|
2012-06-22 14:31:02 +02:00
|
|
|
<div class="row download_item download_waiting_item" data-gid="{{gid}}" data-settingsName={{sett_name}}>
|
|
|
|
<div class="span2" style="overflow: hidden;">
|
|
|
|
<b style="font-size: 12px;" class="tmp_name">{{name}}</b>
|
2012-06-05 11:44:54 +02:00
|
|
|
</div>
|
2012-06-05 14:53:52 +02:00
|
|
|
<div class="span6">
|
2012-06-07 12:02:11 +02:00
|
|
|
<span class="badge badge-warning">Status: <span class="tmp_status">{{status}}</span></span>
|
2012-06-07 10:10:19 +02:00
|
|
|
<div class="pull-right">
|
2012-06-07 12:02:11 +02:00
|
|
|
<span class="label label-warning">Size: <span class="tmp_size">{{size}}</span></span> |
|
|
|
|
<span class="label label-warning">Remaining: <span class="tmp_remaining">{{remaining}}</span></span> |
|
|
|
|
<span class="label label-warning">Progress: <span class="tmp_percentage">{{percentage}}</span>%</span>
|
2012-06-07 10:10:19 +02:00
|
|
|
</div>
|
2012-06-05 11:44:54 +02:00
|
|
|
</div>
|
2012-06-07 12:02:11 +02:00
|
|
|
<div class="span3">
|
2012-06-07 10:10:19 +02:00
|
|
|
<div class="button_set">
|
2012-06-05 11:44:54 +02:00
|
|
|
<button class="btn btn-mini download_play"><i class="icon-play"></i> Play</button>
|
2012-06-07 12:02:11 +02:00
|
|
|
<button class="btn btn-mini btn-info" data-toggle="collapse" data-target="[data-gid={{gid}}] .more_info" onclick="$(this).button('toggle');"><i class="icon-info-sign"></i> More Info</button>
|
2012-06-05 19:24:15 +02:00
|
|
|
<button class="btn btn-mini btn-danger download_remove"><i class="icon-fire"></i> Purge</button>
|
2012-06-05 11:44:54 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2012-06-07 10:10:19 +02:00
|
|
|
<br>
|
2012-06-22 14:31:02 +02:00
|
|
|
<div class="span11 progress progress-striped">
|
2012-06-05 14:53:52 +02:00
|
|
|
<div class="bar" style="width: {{percentage}}%; background-color:#FBB450"></div>
|
2012-06-05 11:44:54 +02:00
|
|
|
</div>
|
2012-06-07 12:02:11 +02:00
|
|
|
<div class="span12 more_info collapse">
|
|
|
|
<b class="span2 label active_settings">Status: <span class="tmp_status">{{status}}</span></b>
|
|
|
|
<b class="span2 label active_settings">GID: <span class="tmp_gid">{{gid}}</span></b>
|
|
|
|
<b class="span2 label active_settings">Dir: <span class="tmp_dir">{{dir}}</span></b>
|
|
|
|
<b class="span2 label active_settings">Size: <span class="tmp_size">{{size}}</span></b>
|
|
|
|
<b class="span2 label active_settings">Downloaded: <span class="tmp_downloaded">{{downloaded}}</span></b>
|
|
|
|
<b class="span2 label active_settings">Num of Pieces: <span class="tmp_numPieces">{{numPieces}}</span></b>
|
|
|
|
<b class="span2 label active_settings">Piece Length: <span class="tmp_pieceLength">{{pieceLength}}</span></b>
|
|
|
|
<b class="span2 label active_settings">Upload Length: <span class="tmp_uploadLength">{{uploadLength}}</span></b>
|
2012-06-07 14:45:58 +02:00
|
|
|
<div class="span4 offset4">
|
|
|
|
<button class="btn btn-mini pull-right download_settings"><i class="icon-cog"></i> Download Settings for {{sett_name}}</button>
|
|
|
|
</div>
|
2012-06-07 12:02:11 +02:00
|
|
|
</div>
|
2012-06-05 11:44:54 +02:00
|
|
|
</div>
|
|
|
|
</script>
|
2012-06-06 09:51:42 +02:00
|
|
|
<!-- waiting downloads template end }}}-->
|
|
|
|
|
2012-06-16 14:50:11 +02:00
|
|
|
<!--{{{ stopped downloads template-->
|
2012-06-05 11:44:54 +02:00
|
|
|
<script type="text/mustache" id="download_stopped_template">
|
2012-06-22 14:31:02 +02:00
|
|
|
<div class="row download_item download_stopped_item" data-gid="{{gid}}">
|
|
|
|
<div class="span2" style="overflow: hidden;">
|
|
|
|
<b style="font-size: 12px;" class="tmp_name">{{settings_name}}</b>
|
2012-06-05 11:44:54 +02:00
|
|
|
</div>
|
2012-06-05 14:53:52 +02:00
|
|
|
<div class="span6">
|
2012-06-22 14:31:02 +02:00
|
|
|
{{#booleans.is_error}}
|
|
|
|
<span class="badge badge-important">Status: <span class="tmp_status">{{status}}</span></span>
|
|
|
|
<div class="pull-right">
|
|
|
|
<span class="label label-important">Size: <span class="tmp_size">{{size}}</span></span> |
|
|
|
|
<span class="label label-important">Downloaded: <span class="tmp_downloaded">{{downloaded}}</span></span> |
|
|
|
|
<span class="label label-important">Progress: <span class="tmp_percentage">{{percentage}}</span>%</span>
|
|
|
|
</div>
|
|
|
|
{{/booleans.is_error}}
|
|
|
|
{{^booleans.is_error}}
|
2012-06-16 15:29:55 +02:00
|
|
|
<span class="badge badge-info">Status: <span class="tmp_status">{{status}}</span></span>
|
2012-06-07 10:10:19 +02:00
|
|
|
<div class="pull-right">
|
2012-06-16 15:29:55 +02:00
|
|
|
<span class="label label-info">Size: <span class="tmp_size">{{size}}</span></span> |
|
|
|
|
<span class="label label-info">Downloaded: <span class="tmp_downloaded">{{downloaded}}</span></span> |
|
|
|
|
<span class="label label-info">Progress: <span class="tmp_percentage">{{percentage}}</span>%</span>
|
2012-06-07 10:10:19 +02:00
|
|
|
</div>
|
2012-06-22 14:31:02 +02:00
|
|
|
{{/booleans.is_error}}
|
2012-06-05 11:44:54 +02:00
|
|
|
</div>
|
2012-06-07 12:02:11 +02:00
|
|
|
<div class="span3">
|
2012-06-07 10:10:19 +02:00
|
|
|
<div class="button_set">
|
2012-06-05 13:40:43 +02:00
|
|
|
<button class="btn btn-mini download_restart"><i class="icon-repeat"></i> Restart</button>
|
2012-06-07 12:02:11 +02:00
|
|
|
<button class="btn btn-mini btn-info" data-toggle="collapse" data-target="[data-gid={{gid}}] .more_info" onclick="$(this).button('toggle');"><i class="icon-info-sign"></i> More Info</button>
|
2012-06-05 13:40:43 +02:00
|
|
|
<button class="btn btn-mini btn-danger download_remove"><i class="icon-fire"></i> Purge</button>
|
2012-06-05 11:44:54 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2012-06-07 10:10:19 +02:00
|
|
|
<br>
|
2012-06-22 14:31:02 +02:00
|
|
|
<div class="span11 progress progress-striped">
|
|
|
|
{{#booleans.is_error}}
|
|
|
|
<div class="bar" style="width: {{percentage}}%; background-color:rgb(185, 74, 72)"></div>
|
|
|
|
{{/booleans.is_error}}
|
|
|
|
{{^booleans.is_error}}
|
2012-06-16 15:29:55 +02:00
|
|
|
<div class="bar" style="width: {{percentage}}%; background-color:#3A87AD"></div>
|
2012-06-22 14:31:02 +02:00
|
|
|
{{/booleans.is_error}}
|
2012-06-05 11:44:54 +02:00
|
|
|
</div>
|
2012-06-07 12:02:11 +02:00
|
|
|
<div class="span12 more_info collapse">
|
|
|
|
<b class="span2 label active_settings">Status: <span class="tmp_status">{{status}}</span></b>
|
|
|
|
<b class="span2 label active_settings">GID: <span class="tmp_gid">{{gid}}</span></b>
|
|
|
|
<b class="span2 label active_settings">Dir: <span class="tmp_dir">{{dir}}</span></b>
|
|
|
|
<b class="span2 label active_settings">Size: <span class="tmp_size">{{size}}</span></b>
|
|
|
|
<b class="span2 label active_settings">Downloaded: <span class="tmp_downloaded">{{downloaded}}</span></b>
|
|
|
|
<b class="span2 label active_settings">Num of Pieces: <span class="tmp_numPieces">{{numPieces}}</span></b>
|
|
|
|
<b class="span2 label active_settings">Piece Length: <span class="tmp_pieceLength">{{pieceLength}}</span></b>
|
|
|
|
<b class="span2 label active_settings">Upload Length: <span class="tmp_uploadLength">{{uploadLength}}</span></b>
|
|
|
|
</div>
|
2012-06-05 11:44:54 +02:00
|
|
|
</div>
|
|
|
|
</script>
|
2012-06-06 09:51:42 +02:00
|
|
|
<!-- stopped downloads template end }}}-->
|
2012-06-05 11:44:54 +02:00
|
|
|
|
2012-06-06 14:08:24 +02:00
|
|
|
<!--{{{ start global settings item template -->
|
|
|
|
<script type="text/mustache" id="global_general_settings_template">
|
2012-06-06 16:50:59 +02:00
|
|
|
{{#settings}}
|
|
|
|
<fieldset>
|
|
|
|
<legend>{{name}}</legend>
|
|
|
|
<div class="control-group">
|
|
|
|
{{#values}}
|
|
|
|
<label class="control-label" for="input_settings_{{name}}">{{name}}</label>
|
|
|
|
<div class="controls">
|
|
|
|
{{^options}}
|
|
|
|
{{#has_value}}
|
|
|
|
<input typ="text" class="input-xlarge" id="input_settings_{{name}}" value="{{value}}"/>
|
|
|
|
{{/has_value}}
|
|
|
|
|
|
|
|
{{^has_value}}
|
|
|
|
<input typ="text" class="input-xlarge" placeholder="default" id="input_settings_{{name}}"/>
|
|
|
|
{{/has_value}}
|
|
|
|
{{/options}}
|
|
|
|
|
|
|
|
{{#option}}
|
|
|
|
{{#has_value}}
|
|
|
|
<select id="input_settings_{{name}}">
|
|
|
|
{{/has_value}}
|
|
|
|
|
|
|
|
{{^has_value}}
|
|
|
|
<select id="input_settings_{{name}}">
|
2012-06-06 19:43:51 +02:00
|
|
|
<option value="no_val">Default</option>
|
2012-06-06 16:50:59 +02:00
|
|
|
{{/has_value}}
|
|
|
|
|
|
|
|
{{/option}}
|
|
|
|
|
|
|
|
{{#options}}
|
|
|
|
|
|
|
|
{{#has_value}}
|
|
|
|
<option value="{{& val}}">{{disp}}</option>
|
|
|
|
{{/has_value}}
|
|
|
|
|
|
|
|
{{^has_value}}
|
|
|
|
<option value="{{& .}}">{{.}}</option>
|
|
|
|
{{/has_value}}
|
|
|
|
|
|
|
|
{{/options}}
|
|
|
|
|
|
|
|
{{#option}}
|
|
|
|
</select>
|
|
|
|
{{/option}}
|
|
|
|
|
|
|
|
<p class="help-block">{{desc}}</p>
|
|
|
|
<br><br>
|
|
|
|
</div>
|
|
|
|
{{/values}}
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
{{/settings}}
|
2012-06-06 14:08:24 +02:00
|
|
|
|
|
|
|
</script>
|
|
|
|
<!-- global settings template end }}}-->
|
|
|
|
|
2012-06-07 14:45:58 +02:00
|
|
|
<!--{{{ download settings template start -->
|
|
|
|
<script type="text/mustache" id="download_settings_template">
|
|
|
|
|
|
|
|
<div class="modal-header">
|
|
|
|
<button class="close" data-dismiss="modal">x</button>
|
|
|
|
<h3>{{settings_name}} Download Settings</h3>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-horizontal" id="dynamic_download_settings" data-downloadSettingsGid="{{gid}}">
|
|
|
|
{{#settings}}
|
|
|
|
<fieldset>
|
|
|
|
<legend>{{name}}</legend>
|
|
|
|
<div class="control-group">
|
|
|
|
{{#values}}
|
|
|
|
<label class="control-label" for="download_settings_{{name}}">{{name}}</label>
|
|
|
|
<div class="controls">
|
|
|
|
{{^options}}
|
|
|
|
{{#has_value}}
|
|
|
|
<input typ="text" class="input-xlarge" id="download_settings_{{name}}" value="{{value}}"/>
|
|
|
|
{{/has_value}}
|
|
|
|
|
|
|
|
{{^has_value}}
|
|
|
|
<input typ="text" class="input-xlarge" placeholder="default" id="download_settings_{{name}}"/>
|
|
|
|
{{/has_value}}
|
|
|
|
{{/options}}
|
|
|
|
|
|
|
|
{{#option}}
|
|
|
|
{{#has_value}}
|
|
|
|
<select id="download_settings_{{name}}">
|
|
|
|
{{/has_value}}
|
|
|
|
|
|
|
|
{{^has_value}}
|
|
|
|
<select id="download_settings_{{name}}">
|
|
|
|
<option value="no_val">Default</option>
|
|
|
|
{{/has_value}}
|
|
|
|
|
|
|
|
{{/option}}
|
|
|
|
|
|
|
|
{{#options}}
|
|
|
|
|
|
|
|
{{#has_value}}
|
|
|
|
<option value="{{& val}}">{{disp}}</option>
|
|
|
|
{{/has_value}}
|
|
|
|
|
|
|
|
{{^has_value}}
|
|
|
|
<option value="{{& .}}">{{.}}</option>
|
|
|
|
{{/has_value}}
|
|
|
|
|
|
|
|
{{/options}}
|
|
|
|
|
|
|
|
{{#option}}
|
|
|
|
</select>
|
|
|
|
{{/option}}
|
|
|
|
|
|
|
|
<p class="help-block">{{desc}}</p>
|
|
|
|
<br><br>
|
|
|
|
</div>
|
|
|
|
{{/values}}
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
{{/settings}}
|
|
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button id="save_download_settings" class="btn btn-success">Save</button>
|
|
|
|
</div>
|
|
|
|
</script>
|
|
|
|
<!-- download settings template end }}}-->
|
|
|
|
|
2012-06-04 16:08:46 +02:00
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
padding-top: 60px;
|
|
|
|
}
|
|
|
|
</style>
|
2012-05-01 13:52:07 +02:00
|
|
|
|
|
|
|
</head>
|
2012-06-04 16:08:46 +02:00
|
|
|
<body>
|
|
|
|
<div class="navbar navbar-fixed-top">
|
|
|
|
<div class="navbar-inner">
|
|
|
|
<div class="container">
|
2012-06-09 07:23:39 +02:00
|
|
|
<a class="brand" href="#">aria2 Web-Client</a>
|
2012-06-04 16:08:46 +02:00
|
|
|
<div class="nav-collapse">
|
|
|
|
<ul class="nav">
|
2012-06-09 08:35:24 +02:00
|
|
|
<li class="active"><a href="#">All Downloads</a></li>
|
2012-06-22 14:31:02 +02:00
|
|
|
<li class="dropdown" id="add_download">
|
|
|
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#add_download">
|
|
|
|
Add Download
|
|
|
|
<b class="caret"></b>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a id="newDownload" href="#">Add Download url</a></li>
|
|
|
|
<li><a id="newDownload_metalink" href="#">Add Metalink</a></li>
|
|
|
|
<li><a id="newDownload_torrent" href="#">Add Torrent</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
<li class="dropdown" id="stop_downloads">
|
|
|
|
<a class="dropdown-toggle" data-toggle="dropdown" href="#stop_downloads">
|
|
|
|
Stop Downloads
|
|
|
|
<b class="caret"></b>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
<li><a href="#" onclick="force_pause_all()"><i class="icon-pause"></i> Pause All downloads</a></li>
|
|
|
|
<li><a href="#" onclick="force_remove_all()"><i class="icon-remove"></i> Remove All downloads</a></li>
|
|
|
|
<li><a href="#" onclick="force_purge_all()"><i class="icon-fire"></i> Purge All downloads</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2012-06-14 17:54:17 +02:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<ul class="nav pull-right">
|
|
|
|
<li class="dropdown">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
|
|
|
Other <b class="caret"></b>
|
|
|
|
</a>
|
|
|
|
<ul class="dropdown-menu">
|
2012-06-22 14:31:02 +02:00
|
|
|
<li><a href="#" onclick="custom_aria2_connect()">
|
|
|
|
<i class="icon-wrench"></i> Connection settings</a>
|
|
|
|
</li>
|
|
|
|
<li><a href="#" onclick="custom_global_settings()">
|
|
|
|
<i class="icon-wrench"></i> Global settings</a></li>
|
|
|
|
<li><a href="#" onclick="custom_global_statistics()">
|
|
|
|
<i class="icon-list-alt"></i> Global Statistics</a></li>
|
2012-06-14 17:54:17 +02:00
|
|
|
<li><a href="#" onclick="show_about()">About</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
2012-06-04 16:08:46 +02:00
|
|
|
</ul>
|
|
|
|
</div><!--/.nav-collapse -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div role="main" class="container">
|
2012-06-05 07:25:57 +02:00
|
|
|
<!-- Download items here -->
|
|
|
|
|
2012-06-05 11:44:54 +02:00
|
|
|
<div id="active_downloads"></div>
|
|
|
|
|
|
|
|
<div id="waiting_downloads"></div>
|
|
|
|
|
|
|
|
<div id="stopped_downloads"></div>
|
2012-06-05 07:25:57 +02:00
|
|
|
|
2012-05-01 13:52:07 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
2012-06-05 11:44:54 +02:00
|
|
|
<!--{{{ Hidden dialogs and out of screen HTML elements -->
|
2012-06-04 16:08:46 +02:00
|
|
|
|
2012-06-05 19:24:15 +02:00
|
|
|
<!--{{{ error connection template -->
|
2012-06-06 09:06:05 +02:00
|
|
|
<div class="modal hide" id="error_connect">
|
2012-05-27 00:02:45 +02:00
|
|
|
<div class="modal-header">
|
|
|
|
<button class="close" data-dismiss="modal">x</button>
|
2012-06-09 07:23:39 +02:00
|
|
|
<h3>Connection to aria failed :( </h3>
|
2012-05-27 00:02:45 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<p>
|
|
|
|
Make sure that aria2c is running and rpc is enabled.
|
|
|
|
aria2c --enable-rpc
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2012-06-04 16:08:46 +02:00
|
|
|
<a href="#" onclick="window.location.reload(true)" class="btn">Retry</a>
|
|
|
|
<a href="#" onclick="custom_aria2_connect()" class="btn btn-primary">Use custom IP and port settings</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2012-06-05 19:24:15 +02:00
|
|
|
<!-- error connection end }}}-->
|
2012-06-04 16:08:46 +02:00
|
|
|
|
2012-06-22 14:31:02 +02:00
|
|
|
<!--{{{ No file api template -->
|
|
|
|
<div class="modal hide" id="error_file_api">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button class="close" data-dismiss="modal">x</button>
|
|
|
|
<h3>Unfortunately your browser does not support HTML5 File Api :( </h3>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<p>
|
|
|
|
To use this feature, please upgrade your browser to a somewhat recent version.
|
|
|
|
If you have no clue then head on to <a href="http://firefox.com">http://firefox.com</a>
|
|
|
|
and follow instructions there.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<a href="#" onclick="clear_dialogs()" class="btn">Close</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- no file api end }}}-->
|
|
|
|
|
2012-06-09 08:50:26 +02:00
|
|
|
<!--{{{ About template -->
|
|
|
|
<div class="modal hide" id="about_modal">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button class="close" data-dismiss="modal">x</button>
|
|
|
|
<h3>About </h3>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<p>
|
2012-06-25 10:53:30 +02:00
|
|
|
aria2 version: <span class="about_aria_version"></span>
|
2012-06-09 08:50:26 +02:00
|
|
|
<br>
|
|
|
|
Web-Client status: <span class="about_webclient_version"></span>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<a href="#" onclick="clear_dialogs()" class="btn">Close</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- About end }}}-->
|
2012-06-22 14:31:02 +02:00
|
|
|
|
2012-06-07 14:45:58 +02:00
|
|
|
<!--{{{ global statistics template -->
|
|
|
|
<div class="modal hide" id="global_statistics_modal">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button class="close" data-dismiss="modal">x</button>
|
2012-06-09 07:23:39 +02:00
|
|
|
<h3>aria2 Global Statistics</h3>
|
2012-06-07 14:45:58 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<p class="row-fluid" class="global_statistics_list" style="text-align: center;">
|
|
|
|
<h5 class="span3 badge" style="text-align: center; margin: 5px;">Overall Download Speed: <span class="stat_downloadSpeed"></span></h3>
|
|
|
|
<h5 class="span3 badge" style="text-align: center; margin: 5px;">Overall Upload Speed: <span class="stat_uploadSpeed"></span></h3>
|
|
|
|
<h5 class="span3 badge" style="text-align: center; margin: 5px;">Total Active Downloads: <span class="stat_numActive"></span></h3>
|
|
|
|
<h5 class="span3 badge" style="text-align: center; margin: 5px;">Total Waiting Downloads: <span class="stat_numWaiting"></span></h3>
|
|
|
|
<h5 class="span3 badge" style="text-align: center; margin: 5px;">Total Stopped Downloads: <span class="stat_numStopped"></span></h3>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<a href="#" onclick="clear_dialogs()" class="btn">Close</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- global statistics end }}}-->
|
|
|
|
|
2012-06-05 19:24:15 +02:00
|
|
|
<!--{{{ change aria2 rpc host and port template -->
|
2012-06-06 09:06:05 +02:00
|
|
|
<div class="modal hide" id="change_conf">
|
2012-06-04 16:08:46 +02:00
|
|
|
<div class="modal-header">
|
|
|
|
<button class="close" data-dismiss="modal">x</button>
|
|
|
|
<h3>Please enter the aria2 RPC port and host</h3>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-horizontal">
|
|
|
|
<fieldset>
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label" for="input_host">Enter the host:</label>
|
|
|
|
<div class="controls">
|
|
|
|
<div class="input-prepend"><span class="add-on">http://</span><input type="text" class="input-xlarge" id="input_host" placeholder="localhost"/></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" for="input_port">Enter the port:</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input type="text" class="input-xlarge" placeholder="6800" id="input_port"/>
|
|
|
|
<p class="help-block">Enter the port of the server on which the rpc for aria2 is running (default = 6800)</p>
|
|
|
|
</div>
|
2012-06-06 08:17:55 +02:00
|
|
|
<label class="control-label" for="input_user">Enter the username (optional):</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input type="text" class="input-xlarge" id="input_user"/>
|
|
|
|
<p class="help-block">Enter the username of the server on which the rpc for aria2 is running (empty if authentication not enabled)</p>
|
|
|
|
</div>
|
|
|
|
<label class="control-label" for="input_pass">Enter the password (optional):</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input type="text" class="input-xlarge" id="input_pass"/>
|
|
|
|
<p class="help-block">Enter the password of the server on which the rpc for aria2 is running (empty if authentication not enabled)</p>
|
|
|
|
</div>
|
2012-06-04 16:08:46 +02:00
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<a href="#" onclick="window.location.reload(true)" class="btn">Retry with default configuration</a>
|
|
|
|
<a href="#" onclick="update_server_conf()" class="btn btn-primary">Use custom IP and port settings</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2012-06-05 19:24:15 +02:00
|
|
|
<!-- change aria2 rpc host and port template }}}-->
|
2012-06-04 16:08:46 +02:00
|
|
|
|
2012-06-22 14:31:02 +02:00
|
|
|
<!--{{{ add new torrent -->
|
|
|
|
<div class="modal hide" id="new_torrent">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button class="close" data-dismiss="modal">x</button>
|
|
|
|
<h3>Add new Torrents</h3>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-horizontal">
|
|
|
|
<fieldset>
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label" for="input_torrent">Select the torrent file:</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input type="file" class="input-xlarge" id="input_torrent" multiple/>
|
|
|
|
<p class="help-block">
|
|
|
|
Select the local torrent file to start download.
|
|
|
|
To add a magnet torrent url, use the add url option and add it there.
|
|
|
|
Note that you can select multiple torrent files to start at once.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<a href="#" onclick="add_torrent()" class="btn">Add</a>
|
|
|
|
<a href="#" onclick="clear_dialogs()" class="btn">Cancel</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- add new torrent end }}}-->
|
|
|
|
|
|
|
|
<!--{{{ add new metalink -->
|
|
|
|
<div class="modal hide" id="new_metalink">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button class="close" data-dismiss="modal">x</button>
|
|
|
|
<h3>Add new Metalinks</h3>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-horizontal">
|
|
|
|
<fieldset>
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label" for="input_metalink">Select the Metalink file:</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input type="file" class="input-xlarge" id="input_metalink" multiple/>
|
|
|
|
<p class="help-block">
|
|
|
|
Please select a local metalink file to initiate its downloads. Note that you
|
|
|
|
can select multiple metalink files at once to start
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<a href="#" onclick="add_metalink()" class="btn">Add</a>
|
|
|
|
<a href="#" onclick="clear_dialogs()" class="btn">Cancel</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- add new metalink end }}}-->
|
2012-06-04 16:08:46 +02:00
|
|
|
|
2012-06-05 19:24:15 +02:00
|
|
|
<!--{{{ add new Download template -->
|
2012-06-06 09:06:05 +02:00
|
|
|
<div class="modal hide" id="newDownload_modal">
|
2012-06-04 16:08:46 +02:00
|
|
|
<div class="modal-header">
|
|
|
|
<button class="close" data-dismiss="modal">x</button>
|
|
|
|
<h3>Add a new Download</h3>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-horizontal">
|
|
|
|
<fieldset>
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label" for="newDownload_url">Enter url for the Download:</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input type="text" class="input-xlarge" id="newDownload_url" placeholder="http://example.com"/>
|
2012-06-05 19:24:15 +02:00
|
|
|
<button class="btn" id="multiple_uris"><i class="icon-plus-sign"></i></button>
|
2012-06-05 07:25:57 +02:00
|
|
|
<span class="help-block">URI can be HTTP(S)/FTP/BitTorrent Magnet URI</span>
|
2012-06-05 19:24:15 +02:00
|
|
|
<ol class="download_urls"></ol>
|
2012-06-04 16:08:46 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button id="addNewDownload" class="btn">Add Download</button>
|
2012-05-27 00:02:45 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2012-06-06 09:06:05 +02:00
|
|
|
<!-- add new Download template end }}}-->
|
2012-06-05 19:24:15 +02:00
|
|
|
|
2012-06-06 12:41:15 +02:00
|
|
|
<!--{{{ global settings template start -->
|
|
|
|
<div class="modal hide" id="global_settings_modal">
|
|
|
|
<div class="modal-header">
|
|
|
|
<button class="close" data-dismiss="modal">x</button>
|
|
|
|
<h3>Global Settings</h3>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2012-06-06 16:50:59 +02:00
|
|
|
<form class="form-horizontal" id="dynamic_global_settings">
|
|
|
|
<!-- dynamic settings injection here -->
|
2012-06-06 12:41:15 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2012-06-06 19:43:51 +02:00
|
|
|
<button id="save_global_settings" class="btn btn-success">Save</button>
|
2012-06-06 12:41:15 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- global settings template end }}}-->
|
|
|
|
|
2012-06-07 14:45:58 +02:00
|
|
|
<!--{{{ download settings template start -->
|
|
|
|
<div class="modal hide" id="download_settings_modal">
|
|
|
|
</div>
|
|
|
|
<!-- download settings template end }}}-->
|
|
|
|
|
2012-06-05 11:44:54 +02:00
|
|
|
<!-- }}} hidden modals end -->
|
2012-05-01 13:52:07 +02:00
|
|
|
|
|
|
|
<script src="js/plugins.js"></script>
|
|
|
|
|
|
|
|
<script src="js/script.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|