0001-backoffice-include-version-number-and-gpl-intro-text.patch
wcs/backoffice/root.py | ||
---|---|---|
278 | 278 | |
279 | 279 | |
280 | 280 |
def get_sidebar(self): |
281 |
from qommon.admin.menu import get_vc_version |
|
282 |
from wcs.admin.root import gpl |
|
281 | 283 |
r = TemplateIO(html=True) |
284 | ||
282 | 285 |
r += htmltext('<div class="bo-block">') |
283 | 286 |
r += htmltext('<ul id="sidebar-actions">') |
284 | 287 |
r += htmltext('<li><a href="statistics">%s</a></li>') % _('Global statistics') |
285 | 288 |
r += htmltext('</ul>') |
286 | 289 |
r += htmltext('</div>') |
290 | ||
291 |
version = get_vc_version() |
|
292 |
if version: |
|
293 |
r += htmltext('<div class="bo-block"><p class="version-info">') |
|
294 |
r += _('Version:') |
|
295 |
r += ' ' |
|
296 |
r += version |
|
297 |
r += htmltext('</p></div>') |
|
298 | ||
299 |
r += htmltext('<div class="bo-block">') |
|
300 |
r += gpl() |
|
301 |
r += htmltext('</div>') |
|
302 | ||
287 | 303 |
return r.getvalue() |
288 | 304 | |
289 | 305 |
def management(self): |
290 |
- |