From 4996dba9b3dd53cc192d89022b42183c3e3a224b Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 23 Jun 2011 17:09:30 +0200 Subject: closed #339 --- module/web/pyload_app.py | 3 ++- module/web/templates/default/info.html | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/module/web/pyload_app.py b/module/web/pyload_app.py index 4cd07fa16..3bd314a40 100644 --- a/module/web/pyload_app.py +++ b/module/web/pyload_app.py @@ -36,7 +36,7 @@ from webinterface import PYLOAD, PYLOAD_DIR, PROJECT_DIR, SETUP from utils import render_to_response, parse_permissions, parse_userdata, login_required, get_permission, set_permission from filters import relpath, unquotepath -from module.utils import formatSize, decode, fs_decode +from module.utils import formatSize, decode, fs_decode, freeSpace # Helper @@ -607,6 +607,7 @@ def info(): "version": PYLOAD.get_server_version(), "folder": abspath(PYLOAD_DIR), "config": abspath(""), "download": abspath(conf["general"]["download_folder"]["value"]), + "freespace": formatSize(freeSpace(conf["general"]["download_folder"]["value"])), "remote": conf["remote"]["port"]["value"], "webif": conf["webinterface"]["port"]["value"], "language": conf["general"]["language"]["value"]} diff --git a/module/web/templates/default/info.html b/module/web/templates/default/info.html index fabe7aea1..14f5a734f 100644 --- a/module/web/templates/default/info.html +++ b/module/web/templates/default/info.html @@ -21,8 +21,12 @@

{{ _("Support") }}

{{ _("System") }}

@@ -51,6 +55,10 @@ {{ _("Download Folder:") }} {{ download }} + + {{ _("Free Space:") }} + {{ freespace }} + {{ _("Language:") }} {{ language }} -- cgit v1.2.3