diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-03 14:49:16 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-03 14:49:16 +0200 |
commit | 3ef26c71cb3c23a876b95af77f6541c06227a937 (patch) | |
tree | 481462718d3c99410cad9dd4e8ffab7eed8e1f6f /module/web | |
parent | share-online premium fix (revert to old design, coz new one is still buggy) (diff) | |
download | pyload-3ef26c71cb3c23a876b95af77f6541c06227a937.tar.xz |
Diffstat (limited to 'module/web')
-rw-r--r-- | module/web/pyload/views.py | 7 | ||||
-rw-r--r-- | module/web/templates/default/settings.html | 6 |
2 files changed, 9 insertions, 4 deletions
diff --git a/module/web/pyload/views.py b/module/web/pyload/views.py index 04a58ea68..678884790 100644 --- a/module/web/pyload/views.py +++ b/module/web/pyload/views.py @@ -328,21 +328,20 @@ def config(request): messages.append(_("All options were set correctly.")) accs = settings.PYLOAD.get_accounts() - for plugin,accounts in accs.iteritems(): + for accounts in accs.itervalues(): for data in accounts: if data["trafficleft"] == -1: data["trafficleft"] = _("unlimited") elif not data["trafficleft"]: - data["trafficleft"] = "" + data["trafficleft"] = _("not available") if data["validuntil"] == -1: data["validuntil"] = _("unlimited") elif not data["validuntil"]: - data["validuntil"] = "" + data["validuntil"] = _("not available") else: t = localtime(data["validuntil"]) data["validuntil"] = strftime("%d-%m-%Y",t) - return render_to_response(join(settings.TEMPLATE, 'settings.html'), RequestContext(request, {'conf': {'Plugin':plugin, 'General':conf, 'Accounts': accs}, 'errors': messages}, [status_proc])) diff --git a/module/web/templates/default/settings.html b/module/web/templates/default/settings.html index a4d3ceb25..f23027210 100644 --- a/module/web/templates/default/settings.html +++ b/module/web/templates/default/settings.html @@ -137,19 +137,25 @@ </td> <td> {% trans "Status:" %} + <span style="font-weight: bold;"> {% if account.valid %} {% trans "valid" %} {% else %} {% trans "not valid" %} {% endif %} + </span> |</td> <td> {% trans "Valid until:" %} + <span style="font-weight: bold;"> {{ account.validuntil }} + </span> |</td> <td> {% trans "Traffic left:" %} + <span style="font-weight: bold;"> {{ account.trafficleft }} + </span> |</td> <td> {% trans "Delete? " %} |