LocalTracChanges: query_and_report.diff
File query_and_report.diff, 1.4 KB (added by , 14 years ago) |
---|
-
trac/ticket/query.py
diff -urp Trac-orig/trac/ticket/query.py Trac-0.11.5/trac/ticket/query.py
old new class QueryModule(Component): 744 744 return 'tickets' 745 745 746 746 def get_navigation_items(self, req): 747 from trac.ticket.report import ReportModule 748 if 'TICKET_VIEW' in req.perm and \ 749 not self.env.is_component_enabled(ReportModule): 747 if 'TICKET_VIEW' in req.perm: 750 748 yield ('mainnav', 'tickets', 751 749 tag.a(_('View Tickets'), href=req.href.query())) 752 750 -
trac/ticket/report.py
Only in Trac-0.11.5/trac/ticket: query.py.orig diff -urp Trac-orig/trac/ticket/report.py Trac-0.11.5/trac/ticket/report.py
old new class ReportModule(Component): 55 55 # INavigationContributor methods 56 56 57 57 def get_active_navigation_item(self, req): 58 return ' tickets'58 return 'reports' 59 59 60 60 def get_navigation_items(self, req): 61 61 if 'REPORT_VIEW' in req.perm: 62 yield ('mainnav', ' tickets', tag.a(_('View Tickets'),62 yield ('mainnav', 'reports', tag.a(_('View Reports'), 63 63 href=req.href.report())) 64 64 65 65 # IPermissionRequestor methods