From df888fad2bd1697f6c61930c486242764184d638 Mon Sep 17 00:00:00 2001 From: stickell Date: Sun, 24 Aug 2014 16:00:27 +0200 Subject: Revert 8446e16346ece5a934550f69e81d0cad528f7fba. It broke the WebUI. --- module/web/templates/500.html | 10 + module/web/templates/default/admin.html | 98 ++++++++ module/web/templates/default/base.html | 180 +++++++++++++++ module/web/templates/default/captcha.html | 42 ++++ module/web/templates/default/downloads.html | 29 +++ module/web/templates/default/filemanager.html | 80 +++++++ module/web/templates/default/filemanager_ui.js | 291 ++++++++++++++++++++++++ module/web/templates/default/folder.html | 15 ++ module/web/templates/default/home.html | 266 ++++++++++++++++++++++ module/web/templates/default/info.html | 81 +++++++ module/web/templates/default/login.html | 36 +++ module/web/templates/default/logout.html | 9 + module/web/templates/default/logs.html | 41 ++++ module/web/templates/default/pathchooser.html | 76 +++++++ module/web/templates/default/queue.html | 104 +++++++++ module/web/templates/default/settings.html | 204 +++++++++++++++++ module/web/templates/default/settings_item.html | 48 ++++ module/web/templates/default/setup.html | 13 ++ module/web/templates/default/window.html | 46 ++++ 19 files changed, 1669 insertions(+) create mode 100644 module/web/templates/500.html create mode 100644 module/web/templates/default/admin.html create mode 100644 module/web/templates/default/base.html create mode 100644 module/web/templates/default/captcha.html create mode 100644 module/web/templates/default/downloads.html create mode 100644 module/web/templates/default/filemanager.html create mode 100644 module/web/templates/default/filemanager_ui.js create mode 100644 module/web/templates/default/folder.html create mode 100644 module/web/templates/default/home.html create mode 100644 module/web/templates/default/info.html create mode 100644 module/web/templates/default/login.html create mode 100644 module/web/templates/default/logout.html create mode 100644 module/web/templates/default/logs.html create mode 100644 module/web/templates/default/pathchooser.html create mode 100644 module/web/templates/default/queue.html create mode 100644 module/web/templates/default/settings.html create mode 100644 module/web/templates/default/settings_item.html create mode 100644 module/web/templates/default/setup.html create mode 100644 module/web/templates/default/window.html (limited to 'module/web/templates') diff --git a/module/web/templates/500.html b/module/web/templates/500.html new file mode 100644 index 000000000..e15090b66 --- /dev/null +++ b/module/web/templates/500.html @@ -0,0 +1,10 @@ + + + + Server Error + + +

Server Error occured. Please enable debug mode to get a more detailed report.

+ + diff --git a/module/web/templates/default/admin.html b/module/web/templates/default/admin.html new file mode 100644 index 000000000..cd35275e0 --- /dev/null +++ b/module/web/templates/default/admin.html @@ -0,0 +1,98 @@ +{% extends 'default/base.html' %} + +{% block head %} + +{% endblock %} + + +{% block title %}{{ _("Administrate") }} - {{ super() }} {% endblock %} +{% block subtitle %}{{ _("Administrate") }}{% endblock %} + +{% block content %} + + {{_("Quit pyLoad")}} | + {{_("Restart pyLoad")}} +
+
+ + {{ _("To add user or change passwords use:") }} python pyLoadCore.py -u
+ {{ _("Important: Admin user have always all permissions!") }} + +
+ + + + + + + + + {% for name, data in users.iteritems() %} + + + + + + + {% endfor %} + + +
+ {{ _("Name") }} + + {{ _("Change Password") }} + + {{ _("Admin") }} + + {{ _("Permissions") }} +
{{ name }}{{ _("change") }} + +
+ + +
+{% endblock %} +{% block hidden %} +
+
+

{{ _("Change Password") }}

+ +

{{ _("Enter your current and desired Password.") }}

+ + + + + + + + + + + + + + + +
+ +
+ +
+{% endblock %} diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html new file mode 100644 index 000000000..4edc30d3d --- /dev/null +++ b/module/web/templates/default/base.html @@ -0,0 +1,180 @@ + + + + + + + + + + + + + + + + + + +{% block title %}pyLoad {{_("Webinterface")}}{% endblock %} + +{% block head %} +{% endblock %} + + + + +
+ + +
+ {% block headpanel %} + + {% if user.is_authenticated %} + + +{% if update %} + +{{_("New pyLoad version %s available!") % update}} + +{% endif %} + + +{% if plugins %} + +{{_("Plugins updated, please restart!")}} + +{% endif %} + + +Captcha: +{{_("Captcha waiting")}} + + + User:{{user.name}} + +{% else %} + {{_("Please Login!")}} +{% endif %} + + {% endblock %} +
+ + + +
+ +
+ +
+
+ +{% if perms.STATUS %} + +{% endif %} + +{% if perms.LIST %} + +{% endif %} + +{% block pageactions %} +{% endblock %} +
+ +
+ +
+ +

{% block subtitle %}pyLoad - {{_("Webinterface")}}{% endblock %}

+ +{% block statusbar %} +{% endblock %} + + +
+ +
+
+ + +{% for message in messages %} +

{{message}}

+{% endfor %} + +
+ + {{_("loading")}} +
+ +{% block content %} +{% endblock content %} + +
+ + +
+
+ +
+ {% include "default/window.html" %} + {% include "default/captcha.html" %} + {% block hidden %} + {% endblock %} +
+ + diff --git a/module/web/templates/default/captcha.html b/module/web/templates/default/captcha.html new file mode 100644 index 000000000..541fe99da --- /dev/null +++ b/module/web/templates/default/captcha.html @@ -0,0 +1,42 @@ + +
+ +
+ +

{{_("Captcha reading")}}

+

{{_("Please read the text on the captcha.")}}

+ +
+ + + + + + + + + + + +
+ +
+ +
+ +
+ + + + +
+ +
+ +
+ +
diff --git a/module/web/templates/default/downloads.html b/module/web/templates/default/downloads.html new file mode 100644 index 000000000..122ca1b82 --- /dev/null +++ b/module/web/templates/default/downloads.html @@ -0,0 +1,29 @@ +{% extends 'default/base.html' %} + +{% block title %}Downloads - {{super()}} {% endblock %} + +{% block subtitle %} +{{_("Downloads")}} +{% endblock %} + +{% block content %} + + + +{% endblock %} diff --git a/module/web/templates/default/filemanager.html b/module/web/templates/default/filemanager.html new file mode 100644 index 000000000..97095c13e --- /dev/null +++ b/module/web/templates/default/filemanager.html @@ -0,0 +1,80 @@ +{% extends 'default/base.html' %} + +{% block head %} + + + + +{% endblock %} + +{% block title %}Downloads - {{super()}} {% endblock %} + + +{% block subtitle %} +{{_("FileManager")}} +{% endblock %} + +{% macro display_file(file) %} +
  • + + + + {{ file.name }} + + +    + + + +
  • +{%- endmacro %} + +{% macro display_folder(fld, open = false) -%} +
  • + + + + {{ fld.name }} + + +    + +    + + + + {% if (fld.folders|length + fld.files|length) > 0 %} + {% if open %} +