incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1359227 - /incubator/bloodhound/trunk/trac/trac/ticket/roadmap.py
Date Mon, 09 Jul 2012 15:45:11 GMT
Author: gjm
Date: Mon Jul  9 15:45:11 2012
New Revision: 1359227

URL: http://svn.apache.org/viewvc?rev=1359227&view=rev
Log:
trac: stops the Roadmap link being available in the milestone page when RoadmapModule is disabled
- #121

Modified:
    incubator/bloodhound/trunk/trac/trac/ticket/roadmap.py

Modified: incubator/bloodhound/trunk/trac/trac/ticket/roadmap.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/trac/trac/ticket/roadmap.py?rev=1359227&r1=1359226&r2=1359227&view=diff
==============================================================================
--- incubator/bloodhound/trunk/trac/trac/ticket/roadmap.py (original)
+++ incubator/bloodhound/trunk/trac/trac/ticket/roadmap.py Mon Jul  9 15:45:11 2012
@@ -886,8 +886,9 @@ class MilestoneModule(Component):
             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
 



Mime
View raw message