summaryrefslogtreecommitdiffstats
path: root/module/web
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-07 21:59:28 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2012-01-07 21:59:28 +0100
commitd347b354b169044fabd0684f304f1777ae5b75d8 (patch)
tree60685aa7ff43765f80c1d8245acee344b0eb3302 /module/web
parentMultiHoster plugin type, some fixes, new documentation structure (diff)
downloadpyload-d347b354b169044fabd0684f304f1777ae5b75d8.tar.xz
show empty packages
Diffstat (limited to 'module/web')
-rw-r--r--module/web/templates/default/queue.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/module/web/templates/default/queue.html b/module/web/templates/default/queue.html
index c88fa3568..9403a8019 100644
--- a/module/web/templates/default/queue.html
+++ b/module/web/templates/default/queue.html
@@ -50,7 +50,11 @@ document.addEvent("domready", function(){
<img title="{{_("Move Package")}}" style="margin-left: -10px; cursor: pointer" height="12px" src="/media/default/img/package_go.png" />
</span>
</div>
- {% set progress = (package.linksdone * 100) / package.linkstotal %}
+ {% if package.linkstotal %}
+ {% set progress = (package.linksdone * 100) / package.linkstotal %}
+ {% else %}
+ {% set progress = 0 %}
+ {% endif %}
<div id="progress" style="border-radius: 4px; border: 1px solid #AAAAAA; width: 50%; height: 1em">
<div style="width: {{ progress }}%; height: 100%; background-color: #add8e6;"></div>