diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-12-15 17:48:30 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-12-15 17:48:30 +0100 |
commit | 95d09b338ac7aed2b387bf143a5cfd1c4b29f612 (patch) | |
tree | 2f6c078f95bbc80f423609bacab8066fe86d7067 /module/web/templates/default | |
parent | gui queue view - unstable (non thread safe) (diff) | |
download | pyload-95d09b338ac7aed2b387bf143a5cfd1c4b29f612.tar.xz |
new Django webinterface(in development), small fixes
Diffstat (limited to 'module/web/templates/default')
-rw-r--r-- | module/web/templates/default/base.html | 99 | ||||
-rw-r--r-- | module/web/templates/default/downloads.html | 16 | ||||
-rw-r--r-- | module/web/templates/default/home.html | 1 | ||||
-rw-r--r-- | module/web/templates/default/login.html | 35 | ||||
-rw-r--r-- | module/web/templates/default/logout.html | 9 | ||||
-rw-r--r-- | module/web/templates/default/logs.html | 16 | ||||
-rw-r--r-- | module/web/templates/default/queue.html | 16 | ||||
-rw-r--r-- | module/web/templates/default/window.html | 28 |
8 files changed, 220 insertions, 0 deletions
diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html new file mode 100644 index 000000000..096692a3c --- /dev/null +++ b/module/web/templates/default/base.html @@ -0,0 +1,99 @@ +<?xml version="1.0" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + +<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> +<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/default.css"> +{% block head %} +{% endblock %} +<title>{% block title %}pyLoad Webinterface{% endblock %}</title> +</head> + +<a class="anchor" name="top" id="top"></a> + +<div id="head-panel"> + +<div id="head-search-and-login"> + +{% if user.is_authenticated %} +<img src="{{ MEDIA_URL }}img/head-login.png" alt="User:" style="vertical-align:middle; margin:2px" /><span style="padding-right: 2px;">{{user.username}}</span> + <ul id="user-actions"> + <li><a href="/logout" class="action logout" rel="nofollow">Logout</a></li> + {% if user.is_staff %} + <li><a href="/admin" class="action profile" rel="nofollow">Administrate</a></li> + {% endif %} + <li></li> + <li></li> + </ul> +{% else %} + <span style="padding-right: 2px;">Please Login!</span> +{% endif %} + + </div> + + <a href="/"><img id="head-logo" src="{{ MEDIA_URL }}img/pyload-logo-edited3.5-new-font-small.png" alt="pyLoad" /></a> + + <div id="head-menu"> + <ul> + + {% block menu %} + <li class="selected"> + <a href="/" title=""><img src="{{ MEDIA_URL }}img/head-menu-home.png" alt="" /> Home</a> + </li> + <li> + <a href="/queue/" title=""><img src="{{ MEDIA_URL }}img/head-menu-download.png" alt="" /> Queue</a></li> + <li> + <a href="/downloads/" title=""><img src="{{ MEDIA_URL }}img/head-menu-development.png" alt="" /> Downloads</a></li> + <li class="right"> + <a href="/logs/" class="action index" accesskey="x" rel="nofollow"><img src="{{ MEDIA_URL }}img/head-menu-index.png" alt="" />Logs</a> + </li> + {% endblock %} + + </ul> + </div> + + <div style="clear:both;"></div> +</div> + +<ul id="page-actions"> + <li><a href="" class="action revisions" accesskey="o" rel="nofollow">Reload page</a></li> + +</ul> + +<div id="body-wrapper" class="dokuwiki"> + +<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> + +{% block statusbar %} +{% endblock %} + + +<br> + +<div class="level1" style="clear:both"> +</div> + +{% for message in messages %} + <b><p>{{message}}</p></b> +{% endfor %} + +{% block content %} +{% endblock content %} + + <hr style="clear: both;" /> + +<div id="foot">© 2008-2010 the pyLoad Team + + <a href="#top" class="action top" accesskey="x"><span>Back to top</span></a><br /> + <!--<div class="breadcrumbs"></div>--> + + +</div> +</div> +</head> +<body> diff --git a/module/web/templates/default/downloads.html b/module/web/templates/default/downloads.html new file mode 100644 index 000000000..3c9bb5df4 --- /dev/null +++ b/module/web/templates/default/downloads.html @@ -0,0 +1,16 @@ +{% extends 'default/base.html' %} + +{% block title %}Downloads - {{block.super}} {% endblock %} + +{% block menu %} +<li> + <a href="/" title=""><img src="{{ MEDIA_URL }}img/head-menu-home.png" alt="" /> Home</a> +</li> +<li> + <a href="/queue" title=""><img src="{{ MEDIA_URL }}img/head-menu-download.png" alt="" /> Queue</a></li> +<li class="selected"> + <a href="/downloads" title=""><img src="{{ MEDIA_URL }}img/head-menu-development.png" alt="" /> Downloads</a></li> +<li class="right"> + <a href="/logs" class="action index" accesskey="x" rel="nofollow"><img src="{{ MEDIA_URL }}img/head-menu-index.png" alt="" />Logs</a> +</li> +{% endblock %}
\ No newline at end of file diff --git a/module/web/templates/default/home.html b/module/web/templates/default/home.html new file mode 100644 index 000000000..895302e61 --- /dev/null +++ b/module/web/templates/default/home.html @@ -0,0 +1 @@ +{% extends 'default/base.html' %}
\ No newline at end of file diff --git a/module/web/templates/default/login.html b/module/web/templates/default/login.html new file mode 100644 index 000000000..851802c4f --- /dev/null +++ b/module/web/templates/default/login.html @@ -0,0 +1,35 @@ +{% extends 'default/base.html' %} + +{% block title %}Login - {{block.super}} {% endblock %} + +{% block content %} + +<div class="centeralign"> +<form action="" method="post" accept-charset="utf-8" id="login"> + <div class="no"> + <input type="hidden" name="do" value="login" /> + <fieldset> + <legend>Login</legend> + <label class="block" for="focus__this"> + <span>Username</span> + {{ form.username }} + </label> + <br /> + <label class="block"> + <span>Password</span> + {{ form.password }} + </label> + <br /> + <input type="submit" value="Login" class="button" /> + </fieldset> + </div> +</form> + +{% if form.errors %} +<p>Your username and password didn't match. Please try again.</p> +{% endif %} + +</div> +<br> + +{% endblock %}
\ No newline at end of file diff --git a/module/web/templates/default/logout.html b/module/web/templates/default/logout.html new file mode 100644 index 000000000..4d00bf6d5 --- /dev/null +++ b/module/web/templates/default/logout.html @@ -0,0 +1,9 @@ +{% extends 'default/base.html' %} + +{% block head %} +<meta http-equiv="refresh" content="3; url=/"> +{% endblock %} + +{% block content %} +<p><b>You were successfully logged out.</b></p> +{% endblock %}
\ No newline at end of file diff --git a/module/web/templates/default/logs.html b/module/web/templates/default/logs.html new file mode 100644 index 000000000..d6f392f58 --- /dev/null +++ b/module/web/templates/default/logs.html @@ -0,0 +1,16 @@ +{% extends 'default/base.html' %} + +{% block title %}Logs - {{block.super}} {% endblock %} + +{% block menu %} +<li> + <a href="/" title=""><img src="{{ MEDIA_URL }}img/head-menu-home.png" alt="" /> Home</a> +</li> +<li> + <a href="/queue" title=""><img src="{{ MEDIA_URL }}img/head-menu-download.png" alt="" /> Queue</a></li> +<li> + <a href="/downloads" title=""><img src="{{ MEDIA_URL }}img/head-menu-development.png" alt="" /> Downloads</a></li> +<li class="right" class="selected"> + <a href="/logs" class="action index" accesskey="x" rel="nofollow"><img src="{{ MEDIA_URL }}img/head-menu-index.png" alt="" />Logs</a> +</li> +{% endblock %}
\ No newline at end of file diff --git a/module/web/templates/default/queue.html b/module/web/templates/default/queue.html new file mode 100644 index 000000000..b6a185b19 --- /dev/null +++ b/module/web/templates/default/queue.html @@ -0,0 +1,16 @@ +{% extends 'default/base.html' %} + +{% block title %}Queue - {{block.super}} {% endblock %} + +{% block menu %} +<li> + <a href="/" title=""><img src="{{ MEDIA_URL }}img/head-menu-home.png" alt="" /> Home</a> +</li> +<li class="selected"> + <a href="/queue" title=""><img src="{{ MEDIA_URL }}img/head-menu-download.png" alt="" /> Queue</a></li> +<li> + <a href="/downloads" title=""><img src="{{ MEDIA_URL }}img/head-menu-development.png" alt="" /> Downloads</a></li> +<li class="right"> + <a href="/logs" class="action index" accesskey="x" rel="nofollow"><img src="{{ MEDIA_URL }}img/head-menu-index.png" alt="" />Logs</a> +</li> +{% endblock %}
\ No newline at end of file diff --git a/module/web/templates/default/window.html b/module/web/templates/default/window.html new file mode 100644 index 000000000..f756c4352 --- /dev/null +++ b/module/web/templates/default/window.html @@ -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" id="bt{{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 |