From 4c8a6401abe2ee3752d8a30402e74e882042352f Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Wed, 27 Aug 2014 15:22:39 +0200 Subject: [webui] Restructure file tree + convert tabs to 2 whitespaces + remove setup.html --- module/webui/themes/flat/tml/admin.html | 98 +++++++++ module/webui/themes/flat/tml/base.html | 179 ++++++++++++++++ module/webui/themes/flat/tml/captcha.html | 42 ++++ module/webui/themes/flat/tml/downloads.html | 29 +++ module/webui/themes/flat/tml/filemanager.html | 78 +++++++ module/webui/themes/flat/tml/folder.html | 15 ++ module/webui/themes/flat/tml/home.html | 266 ++++++++++++++++++++++++ module/webui/themes/flat/tml/info.html | 81 ++++++++ module/webui/themes/flat/tml/login.html | 36 ++++ module/webui/themes/flat/tml/logout.html | 9 + module/webui/themes/flat/tml/logs.html | 41 ++++ module/webui/themes/flat/tml/pathchooser.html | 76 +++++++ module/webui/themes/flat/tml/queue.html | 104 +++++++++ module/webui/themes/flat/tml/settings.html | 204 ++++++++++++++++++ module/webui/themes/flat/tml/settings_item.html | 48 +++++ module/webui/themes/flat/tml/window.html | 46 ++++ 16 files changed, 1352 insertions(+) create mode 100644 module/webui/themes/flat/tml/admin.html create mode 100644 module/webui/themes/flat/tml/base.html create mode 100644 module/webui/themes/flat/tml/captcha.html create mode 100644 module/webui/themes/flat/tml/downloads.html create mode 100644 module/webui/themes/flat/tml/filemanager.html create mode 100644 module/webui/themes/flat/tml/folder.html create mode 100644 module/webui/themes/flat/tml/home.html create mode 100644 module/webui/themes/flat/tml/info.html create mode 100644 module/webui/themes/flat/tml/login.html create mode 100644 module/webui/themes/flat/tml/logout.html create mode 100644 module/webui/themes/flat/tml/logs.html create mode 100644 module/webui/themes/flat/tml/pathchooser.html create mode 100644 module/webui/themes/flat/tml/queue.html create mode 100644 module/webui/themes/flat/tml/settings.html create mode 100644 module/webui/themes/flat/tml/settings_item.html create mode 100644 module/webui/themes/flat/tml/window.html (limited to 'module/webui/themes/flat/tml') diff --git a/module/webui/themes/flat/tml/admin.html b/module/webui/themes/flat/tml/admin.html new file mode 100644 index 000000000..882cd5a4e --- /dev/null +++ b/module/webui/themes/flat/tml/admin.html @@ -0,0 +1,98 @@ +{% extends '/flat/tml/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/webui/themes/flat/tml/base.html b/module/webui/themes/flat/tml/base.html new file mode 100644 index 000000000..9f6a934fb --- /dev/null +++ b/module/webui/themes/flat/tml/base.html @@ -0,0 +1,179 @@ + + + + + + + + + + + + + + + + + + +{% block title %}pyLoad {{_("Webinterface")}}{% endblock %} + +{% block head %} +{% endblock %} + + + + +
+ + +
+ {% block headpanel %} + + {% if user.is_authenticated %} + + +{% if update %} + +{{_("pyLoad Update available!")}} + +{% 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 '/flat/tml/window.html' %} + {% include '/flat/tml/captcha.html' %} + {% block hidden %} + {% endblock %} +
+ + diff --git a/module/webui/themes/flat/tml/captcha.html b/module/webui/themes/flat/tml/captcha.html new file mode 100644 index 000000000..ae1afe444 --- /dev/null +++ b/module/webui/themes/flat/tml/captcha.html @@ -0,0 +1,42 @@ + +
+ +
+ +

{{_("Captcha reading")}}

+

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

+ +
+ + + + + + + + + + + +
+ +
+ +
+ +
+ + + + +
+ +
+ +
+ +
\ No newline at end of file diff --git a/module/webui/themes/flat/tml/downloads.html b/module/webui/themes/flat/tml/downloads.html new file mode 100644 index 000000000..be56b4915 --- /dev/null +++ b/module/webui/themes/flat/tml/downloads.html @@ -0,0 +1,29 @@ +{% extends '/flat/tml/base.html' %} + +{% block title %}Downloads - {{super()}} {% endblock %} + +{% block subtitle %} +{{_("Downloads")}} +{% endblock %} + +{% block content %} + + + +{% endblock %} \ No newline at end of file diff --git a/module/webui/themes/flat/tml/filemanager.html b/module/webui/themes/flat/tml/filemanager.html new file mode 100644 index 000000000..75e862c51 --- /dev/null +++ b/module/webui/themes/flat/tml/filemanager.html @@ -0,0 +1,78 @@ +{% extends '/flat/tml/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 %} +