diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-06-28 20:18:58 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-06-28 20:18:58 +0200 |
commit | 5f314b8ad9a0e8ac83d5f610c64b6f2f01c2b1ea (patch) | |
tree | fdc1593d713b41928eb0816fdeff53923e3d8839 /module/web | |
parent | Improved reloadPlugins methods (diff) | |
download | pyload-5f314b8ad9a0e8ac83d5f610c64b6f2f01c2b1ea.tar.xz |
[Webui] Notify update version when a pyload update is available
Diffstat (limited to 'module/web')
-rw-r--r-- | module/web/pyload_app.py | 6 | ||||
-rw-r--r-- | module/web/templates/default/base.html | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/module/web/pyload_app.py b/module/web/pyload_app.py index 324bb31df..47b5507ca 100644 --- a/module/web/pyload_app.py +++ b/module/web/pyload_app.py @@ -55,8 +55,10 @@ def pre_processor(): # check if update check is available if info: - if info["pyload"] == "True": update = True - if info["plugins"] == "True": plugins = True + if info["pyload"] == "True": + update = info["version"] + if info["plugins"] == "True": + plugins = True return {"user": user, diff --git a/module/web/templates/default/base.html b/module/web/templates/default/base.html index 2a6373e27..4edc30d3d 100644 --- a/module/web/templates/default/base.html +++ b/module/web/templates/default/base.html @@ -36,7 +36,7 @@ {% if update %} <span> -<span style="font-weight: bold; margin: 0 2px 0 2px;">{{_("pyLoad Update available!")}}</span> +<span style="font-weight: bold; margin: 0 2px 0 2px;">{{_("New pyLoad version %s available!") % update}}</span> </span> {% endif %} |