Commits

Anonymous committed b8a2d34 Draft

trac: stops the Roadmap link being available in the milestone page when RoadmapModule is disabled - #121

Comments (0)

Files changed (1)

trac/ticket/roadmap.py

             if idx < len(milestones) - 1:
                 add_milestone_link('next', milestones[idx + 1])
                 add_milestone_link('last', milestones[-1])
+        roadmap_back = self.env[RoadmapModule] and _('Back to Roadmap') or None
         prevnext_nav(req, _('Previous Milestone'), _('Next Milestone'),
-                     _('Back to Roadmap'))
+                         roadmap_back)
 
         return 'milestone_view.html', data, None