##// END OF EJS Templates
Fixed links to versions anchors on the roadmap....
Jean-Philippe Lang -
r8580:1fa341df1cfb
parent child
Show More
@@ -49,7 +49,7
49
49
50 <h3><%= l(:label_version_plural) %></h3>
50 <h3><%= l(:label_version_plural) %></h3>
51 <% @versions.each do |version| %>
51 <% @versions.each do |version| %>
52 <%= link_to format_version_name(version), :anchor => anchor(version.name) %><br />
52 <%= link_to format_version_name(version), "##{anchor(version.name)}" %><br />
53 <% end %>
53 <% end %>
54 <% if @completed_versions.present? %>
54 <% if @completed_versions.present? %>
55 <p>
55 <p>
@@ -42,6 +42,9 class VersionsControllerTest < ActionController::TestCase
42 assert !assigns(:versions).include?(Version.find(1))
42 assert !assigns(:versions).include?(Version.find(1))
43 # Context menu on issues
43 # Context menu on issues
44 assert_select "script", :text => Regexp.new(Regexp.escape("new ContextMenu('/issues/context_menu')"))
44 assert_select "script", :text => Regexp.new(Regexp.escape("new ContextMenu('/issues/context_menu')"))
45 # Links to versions anchors
46 assert_tag 'a', :attributes => {:href => '#2.0'},
47 :ancestor => {:tag => 'div', :attributes => {:id => 'sidebar'}}
45 # Links to completed versions in the sidebar
48 # Links to completed versions in the sidebar
46 assert_tag 'a', :attributes => {:href => '/versions/1'},
49 assert_tag 'a', :attributes => {:href => '/versions/1'},
47 :ancestor => {:tag => 'div', :attributes => {:id => 'sidebar'}}
50 :ancestor => {:tag => 'div', :attributes => {:id => 'sidebar'}}
General Comments 0
You need to be logged in to leave comments. Login now