From a5f665f504dc544b4a03f2ee81da6c44555415e5 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 17 Feb 2015 19:35:35 +0100 Subject: Update webui --- pyload/webui/themes/Next/tml/admin.html | 100 +++++++++ pyload/webui/themes/Next/tml/base.html | 199 +++++++++++++++++ pyload/webui/themes/Next/tml/captcha.html | 40 ++++ pyload/webui/themes/Next/tml/downloads.html | 29 +++ pyload/webui/themes/Next/tml/filemanager.html | 80 +++++++ pyload/webui/themes/Next/tml/folder.html | 15 ++ pyload/webui/themes/Next/tml/home.html | 277 ++++++++++++++++++++++++ pyload/webui/themes/Next/tml/info.html | 81 +++++++ pyload/webui/themes/Next/tml/login.html | 36 +++ pyload/webui/themes/Next/tml/logout.html | 9 + pyload/webui/themes/Next/tml/logs.html | 41 ++++ pyload/webui/themes/Next/tml/pathchooser.html | 76 +++++++ pyload/webui/themes/Next/tml/queue.html | 109 ++++++++++ pyload/webui/themes/Next/tml/settings.html | 217 +++++++++++++++++++ pyload/webui/themes/Next/tml/settings_item.html | 50 +++++ pyload/webui/themes/Next/tml/window.html | 46 ++++ 16 files changed, 1405 insertions(+) create mode 100644 pyload/webui/themes/Next/tml/admin.html create mode 100644 pyload/webui/themes/Next/tml/base.html create mode 100644 pyload/webui/themes/Next/tml/captcha.html create mode 100644 pyload/webui/themes/Next/tml/downloads.html create mode 100644 pyload/webui/themes/Next/tml/filemanager.html create mode 100644 pyload/webui/themes/Next/tml/folder.html create mode 100644 pyload/webui/themes/Next/tml/home.html create mode 100644 pyload/webui/themes/Next/tml/info.html create mode 100644 pyload/webui/themes/Next/tml/login.html create mode 100644 pyload/webui/themes/Next/tml/logout.html create mode 100644 pyload/webui/themes/Next/tml/logs.html create mode 100644 pyload/webui/themes/Next/tml/pathchooser.html create mode 100644 pyload/webui/themes/Next/tml/queue.html create mode 100644 pyload/webui/themes/Next/tml/settings.html create mode 100644 pyload/webui/themes/Next/tml/settings_item.html create mode 100644 pyload/webui/themes/Next/tml/window.html (limited to 'pyload/webui/themes/Next/tml') diff --git a/pyload/webui/themes/Next/tml/admin.html b/pyload/webui/themes/Next/tml/admin.html new file mode 100644 index 000000000..5c71cbac5 --- /dev/null +++ b/pyload/webui/themes/Next/tml/admin.html @@ -0,0 +1,100 @@ +{% extends '/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.") }}

+ +
+ + +

{{ _("Your username.") }}

+
+
+ + +

{{ _("The password for this account.") }}

+
+
+ + +

{{ _("The new password.") }}

+
+
+ + +

{{ _("Please repeat the new password.") }}

+
+ + + + + +
+
+ +
+{% endblock %} diff --git a/pyload/webui/themes/Next/tml/base.html b/pyload/webui/themes/Next/tml/base.html new file mode 100644 index 000000000..b8365361e --- /dev/null +++ b/pyload/webui/themes/Next/tml/base.html @@ -0,0 +1,199 @@ + + + + + + + + + + + + + + + + + + + + + +{% 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 %} + + + + + + +{% 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 "/tml/window.html" %} + {% include "/tml/captcha.html" %} + {% block hidden %} + {% endblock %} +
+ + + diff --git a/pyload/webui/themes/Next/tml/captcha.html b/pyload/webui/themes/Next/tml/captcha.html new file mode 100644 index 000000000..5a5893b72 --- /dev/null +++ b/pyload/webui/themes/Next/tml/captcha.html @@ -0,0 +1,40 @@ + +
+ +
+ +

{{_("Captcha reading")}}

+

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

+ +
+ + + +
+ +
+ +
+
+
+ + +

{{_("Input the text on the captcha.")}}

+
+ +
+ +
+ +
+ + + + +
+ +
+ + + +
\ No newline at end of file diff --git a/pyload/webui/themes/Next/tml/downloads.html b/pyload/webui/themes/Next/tml/downloads.html new file mode 100644 index 000000000..295fbf670 --- /dev/null +++ b/pyload/webui/themes/Next/tml/downloads.html @@ -0,0 +1,29 @@ +{% extends '/tml/base.html' %} + +{% block title %}Downloads - {{super()}} {% endblock %} + +{% block subtitle %} +{{_("Downloads")}} +{% endblock %} + +{% block content %} + + + +{% endblock %} \ No newline at end of file diff --git a/pyload/webui/themes/Next/tml/filemanager.html b/pyload/webui/themes/Next/tml/filemanager.html new file mode 100644 index 000000000..9d3aded8f --- /dev/null +++ b/pyload/webui/themes/Next/tml/filemanager.html @@ -0,0 +1,80 @@ +{% extends '/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 %} +
      + {% else %} +
        + {% endif %} + {% for child in fld.folders %} + {{ display_folder(child) }} + {% endfor %} + {% for child in fld.files %} + {{ display_file(child) }} + {% endfor %} +
      + {% else %} +
      {{ _("Folder is empty") }}
      + {% endif %} + +{%- endmacro %} + +{% block content %} + +
      + +
        +{{ display_folder(root, true) }} +
      + +{% include "/tml/rename_directory.html" %} + +{% endblock %} diff --git a/pyload/webui/themes/Next/tml/folder.html b/pyload/webui/themes/Next/tml/folder.html new file mode 100644 index 000000000..9a87ffddc --- /dev/null +++ b/pyload/webui/themes/Next/tml/folder.html @@ -0,0 +1,15 @@ +
    • + + + + {{ name }} + + +    + +    + + + +
      {{ _("Folder is empty") }}
      +
    • \ No newline at end of file diff --git a/pyload/webui/themes/Next/tml/home.html b/pyload/webui/themes/Next/tml/home.html new file mode 100644 index 000000000..57d442bd1 --- /dev/null +++ b/pyload/webui/themes/Next/tml/home.html @@ -0,0 +1,277 @@ +{% extends '/tml/base.html' %} +{% block head %} + + +{% endblock %} + +{% block subtitle %}{{_("Active Downloads")}}{% endblock %} +{% block content %} + + + + + + + + + + +
      + + + {% for link in content %} + + + + + + + + + + + {% endfor %} + + +
      {{_("Status")}}{{_("Name")}}{{_("Information")}}{{_("Size")}}{{_("Progress")}}
      +
  • +{% endblock %} diff --git a/pyload/webui/themes/Next/tml/info.html b/pyload/webui/themes/Next/tml/info.html new file mode 100644 index 000000000..053ec8210 --- /dev/null +++ b/pyload/webui/themes/Next/tml/info.html @@ -0,0 +1,81 @@ +{% extends '/tml/base.html' %} + +{% block head %} + +{% endblock %} + +{% block title %}{{ _("Information") }} - {{ super() }} {% endblock %} +{% block subtitle %}{{ _("Information") }}{% endblock %} + +{% block content %} +

    {{ _("News") }}

    +
    + +

    {{ _("Support") }}

    + + + +

    {{ _("System") }}

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    {{ _("Python:") }}{{ python }}
    {{ _("OS:") }}{{ os }}
    {{ _("pyLoad version:") }}{{ version }}
    {{ _("Installation Folder:") }}{{ folder }}
    {{ _("Config Folder:") }}{{ config }}
    {{ _("Download Folder:") }}{{ download }}
    {{ _("Free Space:") }}{{ freespace }}
    {{ _("Language:") }}{{ language }}
    {{ _("Webinterface Port:") }}{{ webif }}
    {{ _("Remote Interface Port:") }}{{ remote }}
    + +{% endblock %} \ No newline at end of file diff --git a/pyload/webui/themes/Next/tml/login.html b/pyload/webui/themes/Next/tml/login.html new file mode 100644 index 000000000..93d50d64d --- /dev/null +++ b/pyload/webui/themes/Next/tml/login.html @@ -0,0 +1,36 @@ +{% extends '/tml/base.html' %} + +{% block title %}{{_("Login")}} - {{super()}} {% endblock %} + +{% block content %} + +
    +
    +
    + +
    + Login + +
    + +
    + +
    +
    +
    + +{% if errors %} +

    {{_("Your username and password didn't match. Please try again.")}}

    + {{ _("To reset your login data or add an user run:") }} python pyLoadCore.py -u +{% endif %} + +
    +
    + +{% endblock %} diff --git a/pyload/webui/themes/Next/tml/logout.html b/pyload/webui/themes/Next/tml/logout.html new file mode 100644 index 000000000..e711b2a42 --- /dev/null +++ b/pyload/webui/themes/Next/tml/logout.html @@ -0,0 +1,9 @@ +{% extends '/tml/base.html' %} + +{% block head %} + +{% endblock %} + +{% block content %} +

    {{_("You were successfully logged out.")}}

    +{% endblock %} \ No newline at end of file diff --git a/pyload/webui/themes/Next/tml/logs.html b/pyload/webui/themes/Next/tml/logs.html new file mode 100644 index 000000000..ddbe12980 --- /dev/null +++ b/pyload/webui/themes/Next/tml/logs.html @@ -0,0 +1,41 @@ +{% extends '/tml/base.html' %} + +{% block title %}{{_("Logs")}} - {{super()}} {% endblock %} +{% block subtitle %}{{_("Logs")}}{% endblock %} +{% block head %} + +{% endblock %} + +{% block content %} +
    + +
    +
    +
    + +   + + +
    +
    +
    {{warning}}
    +
    +
    + + {% for line in log %} + + {% endfor %} +
    {{line.line}}{{line.date}}{{line.level}}{{line.message}}
    +
    +
    +
    + + +
    +
    +
     
    +{% endblock %} \ No newline at end of file diff --git a/pyload/webui/themes/Next/tml/pathchooser.html b/pyload/webui/themes/Next/tml/pathchooser.html new file mode 100644 index 000000000..6dcc4314d --- /dev/null +++ b/pyload/webui/themes/Next/tml/pathchooser.html @@ -0,0 +1,76 @@ + + + + + + +
    +
    +
    + + +
    + + {% if type == 'folder' %} + {{_("Path")}}: {{_("absolute")}} | {{_("relative")}} + {% else %} + {{_("Path")}}: {{_("absolute")}} | {{_("relative")}} + {% endif %} +
    + + + + + + + + {% if parentdir %} + + + + {% endif %} +{% for file in files %} + + {% if type == 'folder' %} + + {% else %} + + {% endif %} + + + + + +{% endfor %} +
    {{_("name")}}{{_("size")}}{{_("type")}}{{_("last modified")}}
    + {{_("parent directory")}} +
    {% if file.type == 'dir' %}{{ file.name|truncate(25) }}{% else %}{{ file.name|truncate(25) }}{% endif %}{% if file.type == 'dir' %}{{ file.name|truncate(25) }}{% else %}{{ file.name|truncate(25) }}{% endif %}{{ file.size|float|filesizeformat }}{% if file.type == 'dir' %}directory{% else %}{{ file.ext|default("file") }}{% endif %}{{ file.modified|date("d.m.Y - H:i:s") }}
    +
    + + \ No newline at end of file diff --git a/pyload/webui/themes/Next/tml/queue.html b/pyload/webui/themes/Next/tml/queue.html new file mode 100644 index 000000000..41feb2739 --- /dev/null +++ b/pyload/webui/themes/Next/tml/queue.html @@ -0,0 +1,109 @@ +{% extends '/tml/base.html' %} +{% block head %} + + + + +{% endblock %} + +{% if target %} + {% set name = _("Queue") %} +{% else %} + {% set name = _("Collector") %} +{% endif %} + +{% block pageactions %} +
    + + +
    +{% endblock %} + +{% block title %}{{name}} - {{super()}} {% endblock %} +{% block subtitle %}{{name}}{% endblock %} + +{% block content %} +{% autoescape true %} + + +{% endautoescape %} +{% endblock %} + +{% block hidden %} +
    +
    +

    {{_("Edit Package")}}

    +

    {{_("Edit the package detais below.")}}

    + + + +
    + + +

    {{_("The name of the package.")}}

    +
    +
    + + +

    {{_("Name of subfolder for these downloads.")}}

    +
    +
    + + +

    {{_("List of passwords used for unrar.")}}

    +
    + + + + +
    + +
    + +
    +{% endblock %} \ No newline at end of file diff --git a/pyload/webui/themes/Next/tml/settings.html b/pyload/webui/themes/Next/tml/settings.html new file mode 100644 index 000000000..6d097f49d --- /dev/null +++ b/pyload/webui/themes/Next/tml/settings.html @@ -0,0 +1,217 @@ +{% extends '/tml/base.html' %} + +{% block title %}{{ _("Config") }} - {{ super() }} {% endblock %} +{% block subtitle %}{{ _("Config") }}{% endblock %} + +{% block head %} + + + + +{% endblock %} + +{% block content %} + + + +
    + +
    + + + + + + +
    + +
    +

       {{ _("Choose a section from the menu") }}

    +
    +
    + + +
    +
    + + + + + + +
    + + +
    +

       {{ _("Choose a section from the menu") }}

    +
    +
    + +
    + +
    + + + +
    + + + + + + + + + + + + + + + + + + + + {% for account in conf.accs %} + {% set plugin = account.type %} + + + + + + + + + + + + + + {% endfor %} +
    {{ _("Plugin") }}{{ _("Name") }}{{ _("Password") }}{{ _("Status") }}{{ _("Premium") }}{{ _("Valid until") }}{{ _("Traffic left") }}{{ _("Time") }}{{ _("Max Parallel") }}{{ _("Delete?") }}
    + {{ plugin }} + + + + {% if account.valid %} + + {{ _("valid") }} + {% else %} + + {{ _("not valid") }} + {% endif %} + + + {% if account.premium %} + + {{ _("yes") }} + {% else %} + + {{ _("no") }} + {% endif %} + + + + {{ account.validuntil }} + + + + {{ account.trafficleft }} + + + + + + + +
    + + + + +
    +
    +
    +{% endblock %} +{% block hidden %} +
    +
    +

    {{_("Add Account")}}

    +

    {{_("Enter your account data to use premium features.")}}

    + +
    + + +

    {{_("Your username.")}}

    +
    +
    + + +

    {{_("The password for this account.")}}

    +
    +
    + +

    {{_("Choose the hoster for your account.")}}

    +
    +
    + +
    + + +
    + +
    + +
    +{% endblock %} \ No newline at end of file diff --git a/pyload/webui/themes/Next/tml/settings_item.html b/pyload/webui/themes/Next/tml/settings_item.html new file mode 100644 index 000000000..048ff897b --- /dev/null +++ b/pyload/webui/themes/Next/tml/settings_item.html @@ -0,0 +1,50 @@ + + + {% if section.outline %} + + {% endif %} + {% for okey, option in section.iteritems() %} + {% if okey not in ("desc","outline") %} + + + + + {% endif %} + {% endfor %} + +
    {{ section.outline }}
    + {% if option.type == "bool" %} + + {% elif ";" in option.type %} + + {% elif option.type == "folder" %} + + + {% elif option.type == "file" %} + + + {% elif option.type == "password" %} + + {% else %} + + {% endif %} +
    \ No newline at end of file diff --git a/pyload/webui/themes/Next/tml/window.html b/pyload/webui/themes/Next/tml/window.html new file mode 100644 index 000000000..290d40be6 --- /dev/null +++ b/pyload/webui/themes/Next/tml/window.html @@ -0,0 +1,46 @@ + + +
    +
    +

    {{_("Add Package")}}

    +

    {{_("Paste your links or upload a container.")}}

    +
    + + +

    {{_("The name of the new package.")}}

    +
    +
    + +
    +
    + +
    +
    +

    {{_("The name of the new package.")}} {{ _("Filter urls") }}

    +
    +
    + + +

    {{_("Password for RAR-Archive")}}

    +
    +
    + + +

    {{_("Upload a container.")}}

    +
    +
    + + + {{_("Queue")}} + + {{_("Collector")}} + + +
    + + +
    + + + +
    \ No newline at end of file -- cgit v1.2.3