From 5f314b8ad9a0e8ac83d5f610c64b6f2f01c2b1ea Mon Sep 17 00:00:00 2001
From: Walter Purcaro <vuolter@gmail.com>
Date: Sat, 28 Jun 2014 20:18:58 +0200
Subject: [Webui] Notify update version when a pyload update is available

---
 module/web/pyload_app.py               | 6 ++++--
 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 %}
 
-- 
cgit v1.2.3