From 8e7d14bae4d3c836f029a1235eb227380acc3f75 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Mon, 16 Feb 2015 21:59:10 +0100 Subject: Fix plugins to work on 0.4.10 --- pyload/webui/themes/Dark/tml/admin.html | 98 +++++++++ pyload/webui/themes/Dark/tml/base.html | 177 ++++++++++++++++ pyload/webui/themes/Dark/tml/captcha.html | 42 ++++ pyload/webui/themes/Dark/tml/downloads.html | 29 +++ pyload/webui/themes/Dark/tml/folder.html | 15 ++ pyload/webui/themes/Dark/tml/home.html | 263 ++++++++++++++++++++++++ pyload/webui/themes/Dark/tml/info.html | 76 +++++++ pyload/webui/themes/Dark/tml/login.html | 37 ++++ pyload/webui/themes/Dark/tml/logout.html | 9 + pyload/webui/themes/Dark/tml/logs.html | 41 ++++ pyload/webui/themes/Dark/tml/pathchooser.html | 76 +++++++ pyload/webui/themes/Dark/tml/queue.html | 104 ++++++++++ pyload/webui/themes/Dark/tml/settings.html | 204 ++++++++++++++++++ pyload/webui/themes/Dark/tml/settings_item.html | 48 +++++ pyload/webui/themes/Dark/tml/window.html | 52 +++++ 15 files changed, 1271 insertions(+) create mode 100644 pyload/webui/themes/Dark/tml/admin.html create mode 100644 pyload/webui/themes/Dark/tml/base.html create mode 100644 pyload/webui/themes/Dark/tml/captcha.html create mode 100644 pyload/webui/themes/Dark/tml/downloads.html create mode 100644 pyload/webui/themes/Dark/tml/folder.html create mode 100644 pyload/webui/themes/Dark/tml/home.html create mode 100644 pyload/webui/themes/Dark/tml/info.html create mode 100644 pyload/webui/themes/Dark/tml/login.html create mode 100644 pyload/webui/themes/Dark/tml/logout.html create mode 100644 pyload/webui/themes/Dark/tml/logs.html create mode 100644 pyload/webui/themes/Dark/tml/pathchooser.html create mode 100644 pyload/webui/themes/Dark/tml/queue.html create mode 100644 pyload/webui/themes/Dark/tml/settings.html create mode 100644 pyload/webui/themes/Dark/tml/settings_item.html create mode 100644 pyload/webui/themes/Dark/tml/window.html (limited to 'pyload/webui/themes/Dark/tml') diff --git a/pyload/webui/themes/Dark/tml/admin.html b/pyload/webui/themes/Dark/tml/admin.html new file mode 100644 index 000000000..3a88ffc7a --- /dev/null +++ b/pyload/webui/themes/Dark/tml/admin.html @@ -0,0 +1,98 @@ +{% extends '/Dark/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 pyload.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/pyload/webui/themes/Dark/tml/base.html b/pyload/webui/themes/Dark/tml/base.html new file mode 100644 index 000000000..bebb0600d --- /dev/null +++ b/pyload/webui/themes/Dark/tml/base.html @@ -0,0 +1,177 @@ + + + + + + + + + + + + + + + + + + +{% 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 user.is_authenticated %} +
+ +
{% endif %} + +
+
+ +{% 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 %} + +
+ + +
+
+ + + + diff --git a/pyload/webui/themes/Dark/tml/captcha.html b/pyload/webui/themes/Dark/tml/captcha.html new file mode 100644 index 000000000..731d97d11 --- /dev/null +++ b/pyload/webui/themes/Dark/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/pyload/webui/themes/Dark/tml/downloads.html b/pyload/webui/themes/Dark/tml/downloads.html new file mode 100644 index 000000000..c6ff7a243 --- /dev/null +++ b/pyload/webui/themes/Dark/tml/downloads.html @@ -0,0 +1,29 @@ +{% extends '/Dark/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/Dark/tml/folder.html b/pyload/webui/themes/Dark/tml/folder.html new file mode 100644 index 000000000..b57338d5e --- /dev/null +++ b/pyload/webui/themes/Dark/tml/folder.html @@ -0,0 +1,15 @@ +
  • + + + + {{ name }} + + +    + +    + + + +
    {{ _("Folder is empty") }}
    +
  • \ No newline at end of file diff --git a/pyload/webui/themes/Dark/tml/home.html b/pyload/webui/themes/Dark/tml/home.html new file mode 100644 index 000000000..9131c640e --- /dev/null +++ b/pyload/webui/themes/Dark/tml/home.html @@ -0,0 +1,263 @@ +{% extends '/Dark/tml/base.html' %} +{% block head %} + + + +{% endblock %} + +{% block subtitle %} +{{_("Active Downloads")}} +{% endblock %} + +{% block menu %} +
  • + {{_("Home")}} +
  • +
  • + {{_("Queue")}} +
  • +
  • + {{_("Collector")}} +
  • +
  • + {{_("Downloads")}} +
  • +
  • + {{_("Logs")}} +
  • +
  • + {{_("Config")}} +
  • +{% endblock %} + +{% block content %} + + + + + + + + + + + + + {% for link in content %} + + + + + + + + + + + {% endfor %} + + +
    {{_("Name")}}{{_("Status")}}{{_("Information")}}{{_("Size")}}{{_("Progress")}}
    +{% endblock %} \ No newline at end of file diff --git a/pyload/webui/themes/Dark/tml/info.html b/pyload/webui/themes/Dark/tml/info.html new file mode 100644 index 000000000..1c0a35e9f --- /dev/null +++ b/pyload/webui/themes/Dark/tml/info.html @@ -0,0 +1,76 @@ +{% extends '/Dark/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/Dark/tml/login.html b/pyload/webui/themes/Dark/tml/login.html new file mode 100644 index 000000000..dcb3a18b8 --- /dev/null +++ b/pyload/webui/themes/Dark/tml/login.html @@ -0,0 +1,37 @@ +{% extends '/Dark/tml/base.html' %} + +{% block title %}{{_("Login")}} - {{super()}} {% endblock %} + +{% block content %} + +
    +
    +
    + +
    + Login +{% if errors %} +

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

    +{% endif %} + + + + + + + + + + + + + +
    {{_("Username")}}
    {{_("Password")}}
     
    +
    +
    +
    + +
    +
    + +{% endblock %} diff --git a/pyload/webui/themes/Dark/tml/logout.html b/pyload/webui/themes/Dark/tml/logout.html new file mode 100644 index 000000000..08adfcf6c --- /dev/null +++ b/pyload/webui/themes/Dark/tml/logout.html @@ -0,0 +1,9 @@ +{% extends '/Dark/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/Dark/tml/logs.html b/pyload/webui/themes/Dark/tml/logs.html new file mode 100644 index 000000000..e7fead2df --- /dev/null +++ b/pyload/webui/themes/Dark/tml/logs.html @@ -0,0 +1,41 @@ +{% extends '/Dark/tml/base.html' %} + +{% block title %}{{_("Logs")}} - {{super()}} {% endblock %} +{% block subtitle %}{{_("Logs")}}{% endblock %} +{% block head %} + +{% endblock %} + +{% block content %} +
    + +
    << {{_("Start")}} < {{_("prev")}} {{_("next")}} > {{_("End")}} >>
    +
    +
    + +   + + +
    +
    +
    {{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/Dark/tml/pathchooser.html b/pyload/webui/themes/Dark/tml/pathchooser.html new file mode 100644 index 000000000..288af8bfa --- /dev/null +++ b/pyload/webui/themes/Dark/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/Dark/tml/queue.html b/pyload/webui/themes/Dark/tml/queue.html new file mode 100644 index 000000000..1a61e2638 --- /dev/null +++ b/pyload/webui/themes/Dark/tml/queue.html @@ -0,0 +1,104 @@ +{% extends '/Dark/tml/base.html' %} +{% block head %} + + + + +{% endblock %} + +{% if target %} + {% set name = _("Queue") %} +{% else %} + {% set name = _("Collector") %} +{% endif %} + +{% block title %}{{name}} - {{super()}} {% endblock %} +{% block subtitle %}{{name}}{% endblock %} + +{% block pageactions %} + +{% endblock %} + +{% block content %} +{% autoescape true %} + + +{% endautoescape %} +{% endblock %} + +{% block hidden %} +
    +
    +

    {{_("Edit Package")}}

    +

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

    + + + + + + + + + + + + +
    + +
    + +
    +{% endblock %} \ No newline at end of file diff --git a/pyload/webui/themes/Dark/tml/settings.html b/pyload/webui/themes/Dark/tml/settings.html new file mode 100644 index 000000000..cf0fe1745 --- /dev/null +++ b/pyload/webui/themes/Dark/tml/settings.html @@ -0,0 +1,204 @@ +{% extends '/Dark/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.")}}

    + + + + + + + + + + + +
    + +
    + +
    +{% endblock %} \ No newline at end of file diff --git a/pyload/webui/themes/Dark/tml/settings_item.html b/pyload/webui/themes/Dark/tml/settings_item.html new file mode 100644 index 000000000..e417e564c --- /dev/null +++ b/pyload/webui/themes/Dark/tml/settings_item.html @@ -0,0 +1,48 @@ + + {% 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/Dark/tml/window.html b/pyload/webui/themes/Dark/tml/window.html new file mode 100644 index 000000000..a518a7b95 --- /dev/null +++ b/pyload/webui/themes/Dark/tml/window.html @@ -0,0 +1,52 @@ + + +
    +
    +

    {{_("Add Package")}}

    +

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

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