%header = 'pyLoad Webinterface' %js = ['mootools-1.2.3-core.js','mootools-1.2.3.1-more.js'] %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 window id="addlinks", width=400, caption="Add links", body="", button="Add"
%if page != "login": User:{{user}} %else: Please Login! %end

pyLoad — Webinterface

%if page != "loggedin" and page != "login":
Status:
Speed: 
Files in queue: 
%end
%if page == "login":
Login


%elif page== "home":

Downloads:

% for link in links:

{{link['name']}}
{{int((link['size'] - link['kbleft']) / 1024)}}/{{int(link['size']) / 1024}} MB
{{int(link['speed'])}} kb/s
{{link['eta']}}
%end
%elif page=="loggedin": You were successfully logged in %elif page=="queue": Currently in Development %elif page=="downloads": Currently in Development %end
%include footer use_js=[]