From acf7c3e50450477a4cf799653bb8492be07c95af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 22 Apr 2015 11:08:17 +0200 Subject: [PATCH 04/11] backoffice: limit menu to main items, add more items with small blocks (#6726) Main items are determined as having an attributed icon, it's not that good as a reference but will do for now. --- wcs/backoffice/root.py | 54 ++++++++++++++++++++++++++++++++++--- wcs/qommon/backoffice/root.py | 24 ----------------- wcs/qommon/static/css/dc2/admin.css | 5 ++++ 3 files changed, 55 insertions(+), 28 deletions(-) diff --git a/wcs/backoffice/root.py b/wcs/backoffice/root.py index ef0f8ab..2924798 100644 --- a/wcs/backoffice/root.py +++ b/wcs/backoffice/root.py @@ -270,27 +270,73 @@ class RootDirectory(BackofficeRootDirectory): def get_intro_text(self): return _('''Welcome.''') + def generate_header_menu(self, selected=None): + s = ['\n') + return ''.join(s) + def _q_index(self): html_top('/') r = TemplateIO(html=True) r += htmltext('

%s

') % self.get_intro_text() - r += htmltext('