summaryrefslogtreecommitdiffstats
path: root/module/web/templates
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-21 15:20:39 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-21 15:20:39 +0100
commitb2f560126561f0c152a7cf8b06edc78d28117b29 (patch)
treedd0ec222774f2caeb243e75ca5552c5d924db25d /module/web/templates
parentrender package stats, speedgraph (diff)
downloadpyload-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.html17
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">