diff src/browser/sat_browser/menu.py @ 683:801eb94aa869

browser side: versions management + version is shown in about dialog
author Goffi <goffi@goffi.org>
date Thu, 19 Mar 2015 20:41:46 +0100
parents 849ffb24d5bf
children 9877607c719a
line wrap: on
line diff
--- a/src/browser/sat_browser/menu.py	Thu Mar 19 20:41:14 2015 +0100
+++ b/src/browser/sat_browser/menu.py	Thu Mar 19 20:41:46 2015 +0100
@@ -101,17 +101,23 @@
         _dialog.show()
 
     def onAbout(self):
-        _about = HTML("""<b>Libervia</b>, a Salut &agrave; Toi project<br />
-<br />
-You can contact the authors at <a href="mailto:contact@salut-a-toi.org">contact@salut-a-toi.org</a><br />
-Blog available (mainly in french) at <a href="http://www.goffi.org" target="_blank">http://www.goffi.org</a><br />
-Project page: <a href="http://salut-a-toi.org"target="_blank">http://salut-a-toi.org</a><br />
-<br />
-Any help welcome :)
-<p style='font-size:small;text-align:center'>This project is dedicated to Roger Poisson</p>
-""")
-        _dialog = dialog.GenericDialog("About", _about)
-        _dialog.show()
+        def gotVersions():
+            _about = HTML("""<b>Libervia</b>, a Salut &agrave; Toi project<br />
+    <br />
+    Libervia is a web frontend for Salut &agrave; Toi<br />
+    <span style='font-style: italic;'>S&agrave;T version:</span> {sat_version}<br/>
+    <span style='font-style: italic;'>Libervia version:</span> {libervia_version}<br/>
+    <br />
+    You can contact the authors at <a href="mailto:contact@salut-a-toi.org">contact@salut-a-toi.org</a><br />
+    Blog available (mainly in french) at <a href="http://www.goffi.org" target="_blank">http://www.goffi.org</a><br />
+    Project page: <a href="http://salut-a-toi.org"target="_blank">http://salut-a-toi.org</a><br />
+    <br />
+    Any help welcome :)
+    <p style='font-size:small;text-align:center'>This project is dedicated to Roger Poisson</p>
+    """.format(sat_version=self.host.sat_version, libervia_version=self.host.libervia_version))
+            _dialog = dialog.GenericDialog("About", _about)
+            _dialog.show()
+        self.host.getVersions(gotVersions)
 
     #Settings menu