diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-08-18 21:32:51 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-08-18 21:32:51 +0200 |
commit | 172f6a10b9d3f2fc1878147132af73e96d9bd67e (patch) | |
tree | 5cbeb315b5d624465d3b0521523a051ace0a36bd /module/web/templates | |
parent | Updated Config System (diff) | |
download | pyload-172f6a10b9d3f2fc1878147132af73e96d9bd67e.tar.xz |
some webinterface functions
Diffstat (limited to 'module/web/templates')
-rw-r--r-- | module/web/templates/default.tpl | 57 |
1 files changed, 54 insertions, 3 deletions
diff --git a/module/web/templates/default.tpl b/module/web/templates/default.tpl index 0940dc046..c9c4da272 100644 --- a/module/web/templates/default.tpl +++ b/module/web/templates/default.tpl @@ -63,6 +63,8 @@ <h1><a name="pyload_download_manager_for_1_click_hoster" id="pyload_download_manager_for_1_click_hoster">pyLoad — Webinterface</a></h1> +<br> + <div class="level1"> %if page == "login": @@ -79,17 +81,66 @@ </div> <br> -%else: +%elif page== "home": <h2>Downloads:</h2> % for link in links: <p> -{{str(link)}} -</p> +<div class="download" id="dl{{link['id']}}" style="color: #000"> + +<b>{{link['name']}}</b> +<br> +<script type="text/javascript"> +pb{{link['id']}} = new dwProgressBar({ + container: document.id('dl{{link['id']}}'), + startPercentage: {{link['percent']}}, + speed: 1000, + id: {{link['id']}}, + boxID: 'box', + percentageID: 'perc', + displayText: true, + displayID: 'boxtext' +}); + +</script> + +{{link['speed']}} +<br> +{{link['eta']}} +<br> +{{link['size']}} +<br> + +</div> + + +<script type="text/javascript"> +$$("#dl{{link['id']}}")[0].hover(function(e){ + +this.morph({'color': '#f00', 'padding-left': '20px'}); + +}, function(e){ + +this.morph({'color': '#000', 'padding-left': '0px'}); + +}); + + +</script> + %end +</p> + +%elif page=="loggedin": + + +<b>You were successfully logged in</b> + + + %end <hr style="clear: both;" /> |