Commit 71ebfdf5 authored by jplang's avatar jplang

Remove link to current version, already present in the page breadcrumb (#26575).

git-svn-id: https://svn.redmine.org/redmine/trunk@17510 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 98539479
...@@ -33,8 +33,7 @@ ...@@ -33,8 +33,7 @@
:version => @content.version) + ')'.html_safe if @content.previous %> - :version => @content.version) + ')'.html_safe if @content.previous %> -
<%= link_to((l(:label_next) + " \xc2\xbb"), :action => 'show', <%= link_to((l(:label_next) + " \xc2\xbb"), :action => 'show',
:id => @page.title, :project_id => @page.project, :id => @page.title, :project_id => @page.project,
:version => @content.next.version) + " - " if @content.next %> :version => @content.next.version) if @content.next %>
<%= link_to(l(:label_current_version), :action => 'show', :id => @page.title, :project_id => @page.project, :version => nil) %>
<br /> <br />
<em><%= @content.author ? link_to_user(@content.author) : l(:label_user_anonymous) <em><%= @content.author ? link_to_user(@content.author) : l(:label_user_anonymous)
%>, <%= format_time(@content.updated_on) %> </em><br /> %>, <%= format_time(@content.updated_on) %> </em><br />
......
...@@ -65,7 +65,6 @@ class WikiControllerTest < Redmine::ControllerTest ...@@ -65,7 +65,6 @@ class WikiControllerTest < Redmine::ControllerTest
assert_select 'a[href=?]', '/projects/ecookbook/wiki/CookBook_documentation/1', :text => /Previous/ assert_select 'a[href=?]', '/projects/ecookbook/wiki/CookBook_documentation/1', :text => /Previous/
assert_select 'a[href=?]', '/projects/ecookbook/wiki/CookBook_documentation/2/diff', :text => /diff/ assert_select 'a[href=?]', '/projects/ecookbook/wiki/CookBook_documentation/2/diff', :text => /diff/
assert_select 'a[href=?]', '/projects/ecookbook/wiki/CookBook_documentation/3', :text => /Next/ assert_select 'a[href=?]', '/projects/ecookbook/wiki/CookBook_documentation/3', :text => /Next/
assert_select 'a[href=?]', '/projects/ecookbook/wiki/CookBook_documentation', :text => /Current version/
end end
def test_show_old_version_with_attachments def test_show_old_version_with_attachments
...@@ -77,7 +76,6 @@ class WikiControllerTest < Redmine::ControllerTest ...@@ -77,7 +76,6 @@ class WikiControllerTest < Redmine::ControllerTest
get :show, :params => {:project_id => 'ecookbook', :id => page.title, :version => '1'} get :show, :params => {:project_id => 'ecookbook', :id => page.title, :version => '1'}
assert_response :success assert_response :success
assert_select 'a[href=?]', '/projects/ecookbook/wiki/Page_with_an_inline_image', :text => /Current version/
end end
def test_show_old_version_without_permission_should_be_denied def test_show_old_version_without_permission_should_be_denied
...@@ -96,7 +94,6 @@ class WikiControllerTest < Redmine::ControllerTest ...@@ -96,7 +94,6 @@ class WikiControllerTest < Redmine::ControllerTest
assert_select 'a', :text => /Previous/, :count => 0 assert_select 'a', :text => /Previous/, :count => 0
assert_select 'a', :text => /diff/, :count => 0 assert_select 'a', :text => /diff/, :count => 0
assert_select 'a[href=?]', '/projects/ecookbook/wiki/CookBook_documentation/2', :text => /Next/ assert_select 'a[href=?]', '/projects/ecookbook/wiki/CookBook_documentation/2', :text => /Next/
assert_select 'a[href=?]', '/projects/ecookbook/wiki/CookBook_documentation', :text => /Current version/
end end
def test_show_redirected_page def test_show_redirected_page
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment