From 7a503302fbe6fcc23af94de2fe313298c3a6d95c Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 2 Feb 2011 21:46:15 +0100 Subject: removed django => now using bottle, new builtin threaded ssl server Dont forget to install jinja and beaker ! --- module/web/templates/jinja/default/settings.html | 232 +++++++++++++++++++++++ 1 file changed, 232 insertions(+) create mode 100644 module/web/templates/jinja/default/settings.html (limited to 'module/web/templates/jinja/default/settings.html') diff --git a/module/web/templates/jinja/default/settings.html b/module/web/templates/jinja/default/settings.html new file mode 100644 index 000000000..18bc78e30 --- /dev/null +++ b/module/web/templates/jinja/default/settings.html @@ -0,0 +1,232 @@ +{% extends 'default/base.html' %} + +{% block title %}{{ _("Config") }} - {{ super() }} {% endblock %} +{% block subtitle %}{{ _("Config") }}{% endblock %} + +{% block head %} + + +{% endblock %} + +{% block menu %} +
  • + {{ _("Home") }} +
  • +
  • + {{ _("Queue") }} +
  • +
  • + {{ _("Collector") }} +
  • +
  • + {{ _("Downloads") }} +
  • +
  • + {{ _("Logs") }} +
  • +
  • + {{ _("Config") }} +
  • +{% endblock %} + +{% block content %} + + + +
    + +
    +
    + {% for configname, config in conf.iteritems() %} + {% if configname != "Accounts" %} + {% for skey, section in config.iteritems() %} +
    + + {% for okey, option in section.iteritems() %} + {% if okey != "desc" %} + + + + + {% endif %} + {% endfor %} +
    + {% if option.type == "bool" %} + + {% elif ";" in option.type %} + + {% elif option.type == "folder" %} + + + {% elif option.type == "file" %} + + + {% else %} + + {% endif %} +
    +
    + {% endfor %} + {% else %} + + {% for plugin, accounts in config.iteritems() %} +
    + + {% for account in accounts %} + + + + + + + + + + + {% endfor %} + + + + + + + + + + + + + + + +
    + + + {{ _("Status:") }} + {% if account.valid %} + + {{ _("valid") }} + {% else %} + + {{ _("not valid") }} + {% endif %} + + + {{ _("Valid until:") }} + + {{ account.validuntil }} + + + {{ _("Traffic left:") }} + + {{ account.trafficleft }} + + + {{ _("Time:") }} + + + {{ _("Delete? ") }} + +
     
    + +
    + +
    +
    + {% endfor %} + {% endif %} + {% endfor %} + {% if conf %} + +
    + +
    + {% for message in errors %} + {{ message }}
    + {% endfor %} + + {% endif %} + +{% endblock %} -- cgit v1.2.3