summaryrefslogtreecommitdiffstats
path: root/module/web/templates
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/templates')
-rw-r--r--module/web/templates/default/app.html19
-rw-r--r--module/web/templates/default/app_login.html49
-rw-r--r--module/web/templates/default/base.html4
-rw-r--r--module/web/templates/default/login.html4
-rw-r--r--module/web/templates/default/queue.html51
5 files changed, 115 insertions, 12 deletions
diff --git a/module/web/templates/default/app.html b/module/web/templates/default/app.html
new file mode 100644
index 000000000..306f4b8bf
--- /dev/null
+++ b/module/web/templates/default/app.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <title>{% block title %}pyLoad {{ _("Webinterface") }}{% endblock %}</title>
+ <link href="static/css/default/my.css" rel="stylesheet" type="text/css"/>
+ <link href="static/css/jquery.mobile-1.1.1.min.css" rel="stylesheet" type="text/css"/>
+ <script type="text/javascript" src="static/js/libs/jquery-1.8.0.min.js"></script>
+ <script type="text/javascript" src="static/js/libs/jquery.mobile-1.1.1.min.js"></script>
+ <script type="text/javascript" src="static/js/libs/my.js"></script>
+ {% block head %}
+ {% endblock %}
+ </head>
+ <body>
+ {% block content %}
+ {% endblock content %}
+ </body>
+</html> \ No newline at end of file
diff --git a/module/web/templates/default/app_login.html b/module/web/templates/default/app_login.html
new file mode 100644
index 000000000..ecc41ee92
--- /dev/null
+++ b/module/web/templates/default/app_login.html
@@ -0,0 +1,49 @@
+{% extends 'default/app.html' %}
+{% block title %}{{_("Login")}} - {{super()}} {% endblock %}
+{% block content %}
+<!-- Login -->
+<div data-role="page" id="login">
+ <div data-theme="a" data-role="header">
+ <h3>
+ pyLoad {{_("Login")}}
+ </h3>
+ </div>
+ <div data-role="content" style="padding: 10px">
+ {% if logout %}
+ <div>
+ <b>{{_("You were successfully logged out.")}}</b>
+ </div>
+ {% endif %}
+ <form action="" method="POST" data-ajax="false">
+ <div data-role="fieldcontain">
+ <fieldset data-role="controlgroup">
+ <label for="textinput1">
+ {{_("Username")}}
+ </label>
+ <input name="username" id="textinput1" placeholder="" value="" type="text" />
+ </fieldset>
+ </div>
+ <div data-role="fieldcontain">
+ <fieldset data-role="controlgroup">
+ <label for="textinput2">
+ {{_("Password")}}
+ </label>
+ <input name="password" id="textinput2" placeholder="" value="" type="password" />
+ </fieldset>
+ </div>
+ <input type="submit" data-theme="a" value="Login" />
+ </form>
+ {% if errors %}
+ <div>
+ <p>{{_("Your username and password didn't match. Please try again.")}}</p>
+ {{ _("To reset your login data or add an user run:") }} <b> python pyLoadCore.py -u</b>
+ </div>
+ {% endif %}
+ <div>
+ <a href="/toggle_mobile" >
+ {{_("Desktop Version")}}
+ </a>
+ </div>
+ </div>
+</div>
+{% endblock %} \ No newline at end of file
diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html
index 5e1b2089a..d075fe792 100644
--- a/module/web/templates/default/base.html
+++ b/module/web/templates/default/base.html
@@ -49,7 +49,7 @@
<span>{{ user.name }}</span>
</div>
<div class="header_text">
- <a href="logout" id="header_logout">{{ _("Logout") }}</a>
+ <a href="/logout" id="header_logout">{{ _("Logout") }}</a>
</div>
</div>
<div id="speedgraph"></div>
@@ -92,7 +92,7 @@
<div class="block">
<h2 class="block-title">pyLoad</h2>
- asd <br>
+ <a href="/toggle_mobile">{{_("Mobile Version")}}</a> <br>
dsfdsf <br>
sdf dsg <br>
</div>
diff --git a/module/web/templates/default/login.html b/module/web/templates/default/login.html
index 95c62a992..035853a26 100644
--- a/module/web/templates/default/login.html
+++ b/module/web/templates/default/login.html
@@ -1,7 +1,5 @@
{% extends 'default/base.html' %}
-
{% block title %}{{_("Login")}} - {{super()}} {% endblock %}
-
{% block content %}
<br>
<div class="login">
@@ -30,6 +28,4 @@
{{ _("To reset your login data or add an user run:") }} <b> python pyLoadCore.py -u</b>
{% endif %}
</div>
-
-
{% endblock %} \ No newline at end of file
diff --git a/module/web/templates/default/queue.html b/module/web/templates/default/queue.html
index d13cca776..455916763 100644
--- a/module/web/templates/default/queue.html
+++ b/module/web/templates/default/queue.html
@@ -46,16 +46,55 @@ document.addEvent("domready", function(){
<div class="pack_progressbar_wrapper">
<div id="pack_progress_1" class="pack_progressbar"></div>
</div>
- <div class="pack_toolbar">
- <div class="pack_toolbar_delete" title='{{_("Delete Package")}}'></div>
- <div class="pack_toolbar_restart" title='{{_("Restart Package")}}'></div>
- <div class="pack_toolbar_edit" title='{{_("Edit Package")}}'></div>
- </div>
</div>
<div id="children_1" class="pack_children">
- <span class="child_secrow">{{_("Folder:")}} <span class="folder">TestPackage/</span> | {{_("Password:")}} <span class="password">trololo</span></span>
+
<ul id="sort_children_1" class="sort_children">
+
+
+
+
+
+
+
+ <li>
+ <div id="package_2" class="pack">
+ <div class="pack_header">
+ <div class="pack_icon"></div>
+ <span class="pack_name">TestPackage2</span>
+ <div class="pack_progressbar_wrapper">
+ <div id="pack_progress_2" class="pack_progressbar"></div>
+ </div>
+ </div>
+
+ <div id="children_2" class="pack_children">
+
+ <ul id="sort_children_2" class="sort_children">
+
+
+
+
+
+
+
+ </ul>
+ </div>
+ </div>
+ </li>
+
+
+
+
+
+
+
+
+
+
+
+
+
</ul>
</div>
</div>