From b35886fd7cf8473bd6cbecf0bc85a42a4b704221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 22 Apr 2015 09:10:12 +0200 Subject: [PATCH 01/11] backoffice: include version number and gpl intro text in sidebar (#6726) --- wcs/backoffice/root.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/wcs/backoffice/root.py b/wcs/backoffice/root.py index ef4f829..8137cc7 100644 --- a/wcs/backoffice/root.py +++ b/wcs/backoffice/root.py @@ -278,12 +278,28 @@ class RootDirectory(BackofficeRootDirectory): def get_sidebar(self): + from qommon.admin.menu import get_vc_version + from wcs.admin.root import gpl r = TemplateIO(html=True) + r += htmltext('
') r += htmltext('') r += htmltext('
') + + version = get_vc_version() + if version: + r += htmltext('

') + r += _('Version:') + r += ' ' + r += version + r += htmltext('

') + + r += htmltext('
') + r += gpl() + r += htmltext('
') + return r.getvalue() def management(self): -- 2.1.4