diff options
author | godofdream <soilfiction@gmail.com> | 2012-08-17 01:29:03 +0200 |
---|---|---|
committer | godofdream <soilfiction@gmail.com> | 2012-08-17 01:29:03 +0200 |
commit | 7bc7de7332670f692eda576787e671c2eba0e5bb (patch) | |
tree | 594b70c9b59794d05d01cd7939bef750a8ff51b4 /module/web/templates/default | |
parent | Merge (diff) | |
download | pyload-7bc7de7332670f692eda576787e671c2eba0e5bb.tar.xz |
added division into default template and mobile template, added Base site
Diffstat (limited to 'module/web/templates/default')
-rw-r--r-- | module/web/templates/default/app.html | 19 | ||||
-rw-r--r-- | module/web/templates/default/app_login.html | 49 | ||||
-rw-r--r-- | module/web/templates/default/login.html | 8 | ||||
-rw-r--r-- | module/web/templates/default/logout.html | 9 |
4 files changed, 7 insertions, 78 deletions
diff --git a/module/web/templates/default/app.html b/module/web/templates/default/app.html deleted file mode 100644 index 306f4b8bf..000000000 --- a/module/web/templates/default/app.html +++ /dev/null @@ -1,19 +0,0 @@ -<!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 deleted file mode 100644 index ecc41ee92..000000000 --- a/module/web/templates/default/app_login.html +++ /dev/null @@ -1,49 +0,0 @@ -{% 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/login.html b/module/web/templates/default/login.html index 035853a26..9454b709d 100644 --- a/module/web/templates/default/login.html +++ b/module/web/templates/default/login.html @@ -2,11 +2,17 @@ {% block title %}{{_("Login")}} - {{super()}} {% endblock %} {% block content %} <br> +{% if logout %} +<div id="logged_out"> + <b>{{_("You were successfully logged out.")}}</b> +</div> +{% endif %} +<br> <div class="login"> <div class="login_title"> {{_("Login")}} </div> - <form action="" method="post" accept-charset="utf-8" id="login"> + <form action="/login" method="post" accept-charset="utf-8" id="login"> <input type="hidden" name="do" value="login" /> <div class="login_user"> <span>{{_("Username")}}</span> diff --git a/module/web/templates/default/logout.html b/module/web/templates/default/logout.html deleted file mode 100644 index 8444c4b3f..000000000 --- a/module/web/templates/default/logout.html +++ /dev/null @@ -1,9 +0,0 @@ -{% 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 %} |