From 29f9dc8fb3396b03d732ebcbeb1cc8f00fe13897 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 25 Aug 2010 18:22:27 +0200 Subject: new dirs --- module/web/templates/default/base.html | 317 ++++++++++++++++++++++++++++ module/web/templates/default/captcha.html | 37 ++++ module/web/templates/default/collector.html | 152 +++++++++++++ module/web/templates/default/downloads.html | 53 +++++ module/web/templates/default/home.html | 241 +++++++++++++++++++++ module/web/templates/default/login.html | 38 ++++ module/web/templates/default/logout.html | 10 + module/web/templates/default/logs.html | 62 ++++++ module/web/templates/default/queue.html | 140 ++++++++++++ module/web/templates/default/settings.html | 180 ++++++++++++++++ module/web/templates/default/window.html | 41 ++++ 11 files changed, 1271 insertions(+) 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/collector.html create mode 100644 module/web/templates/default/downloads.html create mode 100644 module/web/templates/default/home.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/queue.html create mode 100644 module/web/templates/default/settings.html create mode 100644 module/web/templates/default/window.html (limited to 'module/web/templates/default') diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html new file mode 100644 index 000000000..fd18aee84 --- /dev/null +++ b/module/web/templates/default/base.html @@ -0,0 +1,317 @@ +{% load i18n %} + + + + + + + + + + + + + + + + + + +{% block title %}pyLoad {% trans "Webinterface" %}{% endblock %} + + + +{% block head %} +{% endblock %} + + + + +
+ +
+ +{% if user.is_authenticated %} + + +Captcha: +{% trans "Captcha waiting" %} + + +User:{{user.username}} + +{% else %} + {% trans "Please Login!" %} +{% endif %} + +
+ + + +
+ +
+ +
+
+ +{% if perms.pyload.can_change_status %} + +{% endif %} + +{% if perms.pyload.can_see_dl %} +
+{% endif %} + +
+ +
+ +

{% block subtitle %}pyLoad - {% trans "Webinterface" %}{% endblock %}

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

{{message}}

+{% endfor %} + +{% block content %} +{% endblock content %} + +
+ + +
+
+ +{% include "default/window.html" %} +{% include "default/captcha.html" %} + + diff --git a/module/web/templates/default/captcha.html b/module/web/templates/default/captcha.html new file mode 100644 index 000000000..aa30e365c --- /dev/null +++ b/module/web/templates/default/captcha.html @@ -0,0 +1,37 @@ +{% load i18n %} + + + + + +
+
+

{% trans "Captcha reading" %}

+

{% trans "Please read the text on the captcha." %}

+ + + + + + + + + + + + + + + + + +
+ + +
+ +
\ No newline at end of file diff --git a/module/web/templates/default/collector.html b/module/web/templates/default/collector.html new file mode 100644 index 000000000..613fb824b --- /dev/null +++ b/module/web/templates/default/collector.html @@ -0,0 +1,152 @@ +{% extends 'default/base.html' %} +{% load i18n %} + +{% block head %} + +{% endblock %} + +{% block title %}{% trans "Collector" %} - {{block.super}} {% endblock %} +{% block subtitle %}{% trans "Collector" %}{% endblock %} + +{% block menu %} +
  • + {% trans "Home" %} +
  • +
  • + {% trans "Queue" %} +
  • +
  • + {% trans "Collector" %} +
  • +
  • + {% trans "Downloads" %} +
  • +
  • + {% trans "Logs" %} +
  • +
  • + {% trans "Config" %} +
  • {% endblock %} + +{% block content %} +{% for id,package in content %} +
    +
    + {{ package.name }} +    + +    + +    + +
    + +
    +{% endfor %} + +{% endblock %} \ No newline at end of file diff --git a/module/web/templates/default/downloads.html b/module/web/templates/default/downloads.html new file mode 100644 index 000000000..9ab5a2ea4 --- /dev/null +++ b/module/web/templates/default/downloads.html @@ -0,0 +1,53 @@ +{% extends 'default/base.html' %} +{% load i18n %} + +{% block title %}Downloads - {{block.super}} {% endblock %} + +{% block menu %} +
  • + {% trans "Home" %} +
  • +
  • + {% trans "Queue" %} +
  • +
  • + {% trans "Collector" %} +
  • +
  • + {% trans "Downloads" %} +
  • +
  • + {% trans "Logs" %} +
  • +
  • + {% trans "Config" %} +
  • +{% endblock %} + +{% block subtitle %} +{% trans "Downloads" %} +{% endblock %} + +{% block content %} + +{% trans "It's recommend not to download Files bigger than ~10MB from here." %} + + + +{% endblock %} \ No newline at end of file diff --git a/module/web/templates/default/home.html b/module/web/templates/default/home.html new file mode 100644 index 000000000..bbc196fe1 --- /dev/null +++ b/module/web/templates/default/home.html @@ -0,0 +1,241 @@ +{% extends 'default/base.html' %} +{% load i18n %} + +{% block head %} + + + +{% endblock %} + +{% block subtitle %} +{% trans "Active Downloads" %} +{% endblock %} + +{% block content %} + + + + + + + + + + + + + {% for link in content %} + + + + + + + + + + + {% endfor %} + + +
    {% trans "Name" %}{% trans "Status" %}{% trans "Information" %}{% trans "Size" %}{% trans "Progress" %}
    +{% endblock %} \ No newline at end of file diff --git a/module/web/templates/default/login.html b/module/web/templates/default/login.html new file mode 100644 index 000000000..7ae78183b --- /dev/null +++ b/module/web/templates/default/login.html @@ -0,0 +1,38 @@ +{% extends 'default/base.html' %} +{% load i18n %} +{% load token %} + +{% block title %}{% trans "Login" %} - {{block.super}} {% endblock %} + +{% block content %} + +
    +
    + {% csrf_token %} +
    + +
    + Login + +
    + +
    + +
    +
    +
    + +{% if form.errors %} +

    {% trans "Your username and password didn't match. Please try again." %}

    +{% endif %} + +
    +
    + +{% endblock %} diff --git a/module/web/templates/default/logout.html b/module/web/templates/default/logout.html new file mode 100644 index 000000000..edc30392e --- /dev/null +++ b/module/web/templates/default/logout.html @@ -0,0 +1,10 @@ +{% extends 'default/base.html' %} +{% load i18n %} + +{% block head %} + +{% endblock %} + +{% block content %} +

    {% trans "You were successfully logged out." %}

    +{% endblock %} \ No newline at end of file diff --git a/module/web/templates/default/logs.html b/module/web/templates/default/logs.html new file mode 100644 index 000000000..5da99912f --- /dev/null +++ b/module/web/templates/default/logs.html @@ -0,0 +1,62 @@ +{% extends 'default/base.html' %} +{% load i18n %} + +{% block title %}{% trans "Logs" %} - {{block.super}} {% endblock %} +{% block subtitle %}{% trans "Logs" %}{% endblock %} +{% block head %} + +{% endblock %} +{% block menu %} +
  • + {% trans "Home" %} +
  • +
  • + {% trans "Queue" %} +
  • +
  • + {% trans "Collector" %} +
  • +
  • + {% trans "Downloads" %} +
  • +
  • + {% trans "Logs" %} +
  • +
  • + {% trans "Config" %} +
  • +{% endblock %} + +{% block content %} +
    + +
    << {% trans "Start" %} < {% trans "prev" %} {% trans "next" %} > {% trans "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/module/web/templates/default/queue.html b/module/web/templates/default/queue.html new file mode 100644 index 000000000..0c6c021f5 --- /dev/null +++ b/module/web/templates/default/queue.html @@ -0,0 +1,140 @@ +{% extends 'default/base.html' %} +{% load i18n %} + +{% block head %} + +{% endblock %} + +{% block title %}{% trans "Queue" %} - {{block.super}} {% endblock %} +{% block subtitle %}{% trans "Queue" %}{% endblock %} + +{% block menu %} +
  • + {% trans "Home" %} +
  • +
  • + {% trans "Queue" %} +
  • +
  • + {% trans "Collector" %} +
  • +
  • + {% trans "Downloads" %} +
  • +
  • + {% trans "Logs" %} +
  • +
  • + {% trans "Config" %} +
  • {% endblock %} + +{% block content %} +{% for id, package in content %} +
    +
    + {{ package.name }} +    + +    + +
    + +
    +{% endfor %} + +{% endblock %} \ No newline at end of file diff --git a/module/web/templates/default/settings.html b/module/web/templates/default/settings.html new file mode 100644 index 000000000..e9a40ff3a --- /dev/null +++ b/module/web/templates/default/settings.html @@ -0,0 +1,180 @@ +{% extends 'default/base.html' %} +{% load i18n %} +{% load contains %} + +{% block title %}{% trans "Config" %} - {{block.super}} {% endblock %} +{% block subtitle %}{% trans "Config" %}{% endblock %} + +{% block head %} + + +{% endblock %} + +{% block menu %} +
  • + {% trans "Home" %} +
  • +
  • + {% trans "Queue" %} +
  • +
  • + {% trans "Collector" %} +
  • +
  • + {% trans "Downloads" %} +
  • +
  • + {% trans "Logs" %} +
  • +
  • + {% trans "Config" %} +
  • +{% endblock %} + +{% block content %} + + + +
    + +
    +
    +{% for configname, config in conf.iteritems %} + {% ifnotequal configname "Accounts" %} + {% for skey, section in config.iteritems %} +
    + + {% for okey, option in section.items %} + {% ifnotequal okey "desc" %} + + + + + {% endifnotequal %} + {% endfor %} +
    + {% ifequal option.type "bool" %} + + {% else %} + {% if option.type|contains:";" %} + + {% else %} + + {% endif %} + {% endifequal %} +
    +
    + {% endfor %} + {% else %} + + {% for plugin, accounts in config.iteritems %} +
    + + {% for account in accounts %} + + + + + + + {% endfor %} + + + + + + + + + + + + + +
    + + + {% trans "Delete? " %} + + +
     
    + +
    + +
    +
    + {% endfor %} + + {% endifnotequal %} +{% endfor %} +{% if conf %} + +
    + +
    +{% for message in errors %} +{{message}}
    +{% endfor %} + +{% endif %} + +{% endblock %} diff --git a/module/web/templates/default/window.html b/module/web/templates/default/window.html new file mode 100644 index 000000000..01218965e --- /dev/null +++ b/module/web/templates/default/window.html @@ -0,0 +1,41 @@ +{% load i18n %} + + + + + +
    +
    +

    {% trans "Add Package" %}

    +

    {% trans "Paste your links or upload a container." %}

    + + + + + + + + + + + + {% trans "Queue" %} + + {% trans "Collector" %} + + + + + +
    + +
    + +
    \ No newline at end of file -- cgit v1.2.3