summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-23 17:09:30 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-23 17:09:30 +0200
commit4996dba9b3dd53cc192d89022b42183c3e3a224b (patch)
tree60c6e98dd5bf431def44f373110d761d6b7d81de
parenthaggs' linksavein patch (diff)
downloadpyload-4996dba9b3dd53cc192d89022b42183c3e3a224b.tar.xz
closed #339
-rw-r--r--module/web/pyload_app.py3
-rw-r--r--module/web/templates/default/info.html8
2 files changed, 10 insertions, 1 deletions
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 @@
<h3>{{ _("Support") }}</h3>
<ul>
+ <li style="font-weight:bold;"><a href="http://pyload.org/wiki" target="_blank">Wiki</a></li>
<li style="font-weight:bold;"><a href="http://forum.pyload.org/" target="_blank">Forum</a></li>
<li style="font-weight:bold;"><a href="http://pyload.org/irc/" target="_blank">Chat</a></li>
+ <li style="font-weight:bold;"><a href="https://bitbucket.org/spoob/pyload/overview" target="_blank">Development</a></li>
+ <li style="font-weight:bold;"><a href="https://bitbucket.org/spoob/pyload/issues?status=new&status=open" target="_blank">Issue Tracker</a></li>
+
</ul>
<h3>{{ _("System") }}</h3>
@@ -52,6 +56,10 @@
<td>{{ download }}</td>
</tr>
<tr>
+ <td>{{ _("Free Space:") }}</td>
+ <td>{{ freespace }}</td>
+ </tr>
+ <tr>
<td>{{ _("Language:") }}</td>
<td>{{ language }}</td>
</tr>