From e7605940aee5cde5bc8a55ae403834525601fa2f Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 18 Aug 2009 15:51:03 +0200 Subject: new webinterface functions --- module/web/templates/default.tpl | 42 ++++++++++++++++++++++++++++++---------- module/web/templates/footer.tpl | 4 ++++ 2 files changed, 36 insertions(+), 10 deletions(-) (limited to 'module/web/templates') diff --git a/module/web/templates/default.tpl b/module/web/templates/default.tpl index 70671028e..0940dc046 100644 --- a/module/web/templates/default.tpl +++ b/module/web/templates/default.tpl @@ -1,29 +1,52 @@ %header = 'pyLoad Webinterface' -%include header title=header, use_js=['mootools-1.2.3-core.js'], use_css= ['default.css'] +%js = ['mootools-1.2.3-core.js','mootools-1.2.3.1-more.js'] - +%if page== "home": js.append('default/home.js') +%end -
+%include header title=header, use_js=js, use_css= ['default.css'] -
+ +
- User:User +
+%if page != "login": + User:{{user}} +%else: + Please Login! + +%end
@@ -50,7 +73,6 @@
Login

-
@@ -73,7 +95,7 @@ -%include footer \ No newline at end of file +%include footer use_js=[] \ No newline at end of file diff --git a/module/web/templates/footer.tpl b/module/web/templates/footer.tpl index 308b1d01b..a59b414bf 100644 --- a/module/web/templates/footer.tpl +++ b/module/web/templates/footer.tpl @@ -1,2 +1,6 @@ +%for item in use_js: + +%end + -- cgit v1.2.3