diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-03-21 15:20:39 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-03-21 15:20:39 +0100 |
commit | b2f560126561f0c152a7cf8b06edc78d28117b29 (patch) | |
tree | dd0ec222774f2caeb243e75ca5552c5d924db25d /module/web/templates | |
parent | render package stats, speedgraph (diff) | |
download | pyload-b2f560126561f0c152a7cf8b06edc78d28117b29.tar.xz |
little fixes, use global progress to render single task
Diffstat (limited to 'module/web/templates')
-rw-r--r-- | module/web/templates/default/base.html | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html index f8dd10c4e..822d7c710 100644 --- a/module/web/templates/default/base.html +++ b/module/web/templates/default/base.html @@ -39,15 +39,24 @@ });
</script>
<script type="text/template" id="template-header">
- <%= if downloads %>
- <% downloads %> downloads running <%= if speed %>(<% formatSize speed %>/s)<%/if%>
+ <%= if single %>
+ <% name %> (<% statusmsg %>)
<% else %>
- No running tasks
+ <%= if downloads %>
+ <% downloads %> downloads running <%= if speed %>(<% formatSize speed %>/s)<%/if%>
+ <% else %>
+ No running tasks
+ <%/if%>
<%/if%>
<i class="iconf-list pull-right"></i>
<div class="progress" id="globalprogress">
- <div class="bar" style="width: 48%">48%</div>
+ <%= if single %>
+ <div class="bar" style="width: <% percent %>%"> <% formatTime eta %>
+ <% else %>
+ <div class="bar" style="width: 0%">
+ <%/if%>
+ </div>
</div>
</script>
<script type="text/template" id="template-header-status">
|