diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-07 21:59:28 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2012-01-07 21:59:28 +0100 |
commit | d347b354b169044fabd0684f304f1777ae5b75d8 (patch) | |
tree | 60685aa7ff43765f80c1d8245acee344b0eb3302 /module/web | |
parent | MultiHoster plugin type, some fixes, new documentation structure (diff) | |
download | pyload-d347b354b169044fabd0684f304f1777ae5b75d8.tar.xz |
show empty packages
Diffstat (limited to 'module/web')
-rw-r--r-- | module/web/templates/default/queue.html | 6 |
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>
|