From 6eae782f13953dd0ba2bbe1b582cf33fd4d7d90a Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 19 Dec 2011 23:10:49 +0100 Subject: configparser v2, warning CONFIG will be DELETED. --- module/web/templates/default/settings_item.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'module/web/templates/default') diff --git a/module/web/templates/default/settings_item.html b/module/web/templates/default/settings_item.html index 813383343..b81ba1b95 100644 --- a/module/web/templates/default/settings_item.html +++ b/module/web/templates/default/settings_item.html @@ -1,12 +1,13 @@ {% if section.outline %} - + {% endif %} - {% for okey, option in section.iteritems() %} - {% if okey not in ("desc","outline") %} + {% for option in section.items %} + {% set okey = option.name %} + {% set skey = section.name %} - + - {% endif %} {% endfor %}
{{ section.outline }}
{{ section.description }}
{% if option.type == "bool" %} {% elif ";" in option.type %}
\ No newline at end of file -- cgit v1.2.3 From 958bf611f5d9d117f19f824990ec6fd6b537e967 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 22 Dec 2011 23:45:38 +0100 Subject: accountmanager v2, delete your accounts.conf and re-enter them in pyload, new nice debug functions, try core.shell() and core.breakpoint() --- module/web/templates/default/settings.html | 32 ++++++++++++------------- module/web/templates/default/settings_item.html | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) (limited to 'module/web/templates/default') diff --git a/module/web/templates/default/settings.html b/module/web/templates/default/settings.html index a4443025a..be320970b 100644 --- a/module/web/templates/default/settings.html +++ b/module/web/templates/default/settings.html @@ -102,18 +102,18 @@ {% for account in conf.accs %} - {% set plugin = account.type %} + {% set plugin = account.__name__ %} {{ plugin }} - + - + {% if account.valid %} @@ -137,27 +137,27 @@ - {{ account.validuntil }} + {{ account._validuntil }} - {{ account.trafficleft }} + {{ account._trafficleft }} - + - + - diff --git a/module/web/templates/default/settings_item.html b/module/web/templates/default/settings_item.html index b81ba1b95..b3d7fe334 100644 --- a/module/web/templates/default/settings_item.html +++ b/module/web/templates/default/settings_item.html @@ -1,5 +1,5 @@ - {% if section.outline %} + {% if section.description %} {% endif %} {% for option in section.items %} -- cgit v1.2.3
{{ section.description }}