Commits

g...@13f79535-47bb-0310-9956-ffa450edef68  committed 6be7c10 Draft

Dashboard: provide link to reports in context nav for all ticket pages - for #134 (from olemis)

  • Participants
  • Parent commits dd017b0

Comments (0)

Files changed (1)

File bhdashboard/web_ui.py

         for item in req.chrome['nav'].get('mainnav', []):
             self.log.debug('%s' % (item,))
             if item['name'] == 'tickets':
-                item['label'] = tag.a(_(self.mainnav_label), 
+                item['label'] = tag.a(_(self.mainnav_label),
                         href=req.href.dashboard())
+                if item['active'] and \
+                        not ReportModule(self.env).match_request(req):
+                    add_ctxtnav(req, _('Available Reports'),
+                            href=req.href.report())
                 break
         return template, data, content_type