backoffice: include version number and gpl intro text in sidebar (#6726)
This commit is contained in:
parent
a25f3fe541
commit
df6e6df0b2
|
@ -283,12 +283,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('<div class="bo-block">')
|
||||
r += htmltext('<ul id="sidebar-actions">')
|
||||
r += htmltext('<li><a href="statistics">%s</a></li>') % _('Global statistics')
|
||||
r += htmltext('</ul>')
|
||||
r += htmltext('</div>')
|
||||
|
||||
version = get_vc_version()
|
||||
if version:
|
||||
r += htmltext('<div class="bo-block"><p class="version-info">')
|
||||
r += _('Version:')
|
||||
r += ' '
|
||||
r += version
|
||||
r += htmltext('</p></div>')
|
||||
|
||||
r += htmltext('<div class="bo-block">')
|
||||
r += gpl()
|
||||
r += htmltext('</div>')
|
||||
|
||||
return r.getvalue()
|
||||
|
||||
def management(self):
|
||||
|
|
Loading…
Reference in New Issue