summaryrefslogtreecommitdiffstats
path: root/module/web/templates
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-19 17:13:35 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-08-19 17:13:35 +0200
commit0c8dc650e52323f741bdaf50a864f1ebd819e6c6 (patch)
tree204b85ba411fde2b8da79493c75002253f3ee628 /module/web/templates
parentsome webinterface functions (diff)
downloadpyload-0c8dc650e52323f741bdaf50a864f1ebd819e6c6.tar.xz
webinterface statusbar
Diffstat (limited to 'module/web/templates')
-rw-r--r--module/web/templates/default.tpl43
-rw-r--r--module/web/templates/header.tpl4
-rw-r--r--module/web/templates/window.tpl28
3 files changed, 72 insertions, 3 deletions
diff --git a/module/web/templates/default.tpl b/module/web/templates/default.tpl
index c9c4da272..fe617bfe6 100644
--- a/module/web/templates/default.tpl
+++ b/module/web/templates/default.tpl
@@ -3,8 +3,15 @@
%if page== "home": js.append('default/home.js')
%end
+%if page== "loggedin": red=True
+%else: red=False
+%end
+%if page != "loggedin" and page != "login": js.append('default/status.js')
+%end
+
+%include header title=header, use_js=js, use_css=['default.css','window.css'], redirect=red
-%include header title=header, use_js=js, use_css= ['default.css']
+%include window id="addlinks", width=400, caption="Add links", body="<textarea rows=10 style='width: 345px;'></textarea>", button="Add"
<a class="anchor" name="top" id="top"></a>
@@ -62,10 +69,40 @@
<div id="content" lang="en" dir="ltr">
-<h1><a name="pyload_download_manager_for_1_click_hoster" id="pyload_download_manager_for_1_click_hoster">pyLoad — Webinterface</a></h1>
+<h1><a name="pyload_download_manager_for_1_click_hoster" id="pyload_download_manager_for_1_click_hoster">pyLoad — Webinterface</a>
+</h1>
+
+
+%if page != "loggedin" and page != "login":
+
+<div id="statusbar">
+ <div style="float: left;padding: 8px;">
+Status: running
+</div>
+ <div style="float: left;padding: 8px">
+Speed: 500 kb/s  
+</div>
+
+<div style="padding-top:2px">
+
+<div style="background-image:url(static/default/Button-Play.png);width:32px;height:32px;float:left"></div>
+<div class= "statusbutton" style="background-image:url(static/default/Button-Play-grey.png); visibility: visible; opacity: 0.01"></div>
+<div style="background-image:url(static/default/Button-Pause.png);width:32px;height:32px;float:left"></div>
+<div class= "statusbutton" style="background-image:url(static/default/Button-Pause-grey.png); visibility: visible; opacity: 0.01"></div>
+<div style="background-image:url(static/default/Button-Add.png);width:32px;height:32px;float:left"></div>
+<div class= "statusbutton" style="background-image:url(static/default/Button-Add-grey.png); visibility: visible; opacity: 0.01"></div>
+
+
+</div>
+
+</div>
+
+%end
+
+
<br>
-<div class="level1">
+<div class="level1" style="clear:both">
%if page == "login":
diff --git a/module/web/templates/header.tpl b/module/web/templates/header.tpl
index 27ab7e2bc..22c252e3c 100644
--- a/module/web/templates/header.tpl
+++ b/module/web/templates/header.tpl
@@ -14,6 +14,10 @@
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+%if redirect:
+<meta http-equiv="refresh" content="3; url=/">
+%end
+
<title>{{title}}</title>
</head>
diff --git a/module/web/templates/window.tpl b/module/web/templates/window.tpl
new file mode 100644
index 000000000..fce3cb86f
--- /dev/null
+++ b/module/web/templates/window.tpl
@@ -0,0 +1,28 @@
+<div id="{{id}}" class="StickyWinInstance SWclearfix" style="overflow: visible;visibility: visible;display: none; position: absolute; z-index: 10000; opacity: 1; left: 0px; top: 0px;">
+<div class="DefaultStickyWin" style="width: {{width}}px;">
+
+<div class="top">
+<div class="top_ul"></div>
+<div class="top_ur"><h1 class="caption dragHandle">{{caption}}</h1>
+</div></div>
+
+<div class="middle">
+<div class="body">{{body}}
+</div></div>
+
+<div class="closeBody">
+<div class="closeButtons">
+<a class="closeSticky button">{{button}}</a><a class="closeSticky button">Close</a>
+</div>
+</div>
+
+<div class="bottom">
+<div class="bottom_ll">
+</div>
+
+<div class="bottom_lr"></div>
+</div>
+<div class="closeButton closeSticky"></div>
+
+</div>
+</div> \ No newline at end of file