incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1378245 - /incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/web_ui.py
Date Tue, 28 Aug 2012 17:43:53 GMT
Author: gjm
Date: Tue Aug 28 17:43:52 2012
New Revision: 1378245

URL: http://svn.apache.org/viewvc?rev=1378245&view=rev
Log:
Dashboard: provide link to reports in context nav for all ticket pages - for #134 (from olemis)

Modified:
    incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/web_ui.py

Modified: incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/web_ui.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/web_ui.py?rev=1378245&r1=1378244&r2=1378245&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/web_ui.py (original)
+++ incubator/bloodhound/trunk/bloodhound_dashboard/bhdashboard/web_ui.py Tue Aug 28 17:43:52
2012
@@ -74,8 +74,12 @@ class DashboardModule(Component):
         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
 



Mime
View raw message