1. Olemis Lang
  2. bloodhound-trac

Commits

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

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

  • Participants
  • Parent commits e074d0c
  • Branches default

Comments (0)

Files changed (1)

File trac/ticket/roadmap.py

View file
  • Ignore whitespace
             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