summaryrefslogtreecommitdiffstats
path: root/module/web/templates
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-09-02 17:13:07 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-09-02 17:13:07 +0200
commit699f5f09bfe176c925997127315974faf333e486 (patch)
treeb033eebb14b8cb879da234aea5ac717c9dfba29b /module/web/templates
parentcleanded up again (diff)
downloadpyload-699f5f09bfe176c925997127315974faf333e486.tar.xz
dynamic webinterface
Diffstat (limited to 'module/web/templates')
-rw-r--r--module/web/templates/default.tpl35
1 files changed, 25 insertions, 10 deletions
diff --git a/module/web/templates/default.tpl b/module/web/templates/default.tpl
index b184f4017..9bd9b71fb 100644
--- a/module/web/templates/default.tpl
+++ b/module/web/templates/default.tpl
@@ -125,15 +125,18 @@ Files in queue: 
%elif page== "home":
<h2>Downloads:</h2>
+<div id="dlcontainer">
+
% for link in links:
-<p>
+
<div class="download" id="dl{{link['id']}}" style="color: #000">
+<p></p>
<b>{{link['name']}}</b>
<br>
<script type="text/javascript">
-pb{{link['id']}} = new dwProgressBar({
+pbs[{{link['id']}}] = new dwProgressBar({
container: document.id('dl{{link['id']}}'),
startPercentage: {{link['percent']}},
speed: 1000,
@@ -144,14 +147,25 @@ pb{{link['id']}} = new dwProgressBar({
displayID: 'boxtext'
});
+dls.push({{link['id']}})
+
</script>
-{{link['speed']}}
-<br>
+
+<div class="dlsize">
+{{int((link['size'] - link['kbleft']) / 1024)}}/{{int(link['size']) / 1024}} MB
+</div>
+
+
+<div class="dlspeed">
+{{int(link['speed'])}} kb/s
+</div>
+
+
+<div class="dltime">
{{link['eta']}}
-<br>
-{{link['size']}}
-<br>
+</div>
+
</div>
@@ -159,11 +173,11 @@ pb{{link['id']}} = new dwProgressBar({
<script type="text/javascript">
$$("#dl{{link['id']}}")[0].hover(function(e){
-this.morph({'color': '#f00', 'padding-left': '20px'});
+this.morph({'color': '#f00'});
}, function(e){
-this.morph({'color': '#000', 'padding-left': '0px'});
+this.morph({'color': '#000'});
});
@@ -173,7 +187,8 @@ this.morph({'color': '#000', 'padding-left': '0px'});
%end
-</p>
+</div>
+
%elif page=="loggedin":