From 758b6f5a5993002547a5b7bcc1ec917d9cf828ea Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 28 Oct 2018 11:59:29 +0000 Subject: [PATCH] Previous/Next link on repository page disappears when switching to "View differences" tab (#26576, #29730). Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@17605 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/repositories/diff.html.erb | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/app/views/repositories/diff.html.erb b/app/views/repositories/diff.html.erb index 889a65f7e..12875f21e 100644 --- a/app/views/repositories/diff.html.erb +++ b/app/views/repositories/diff.html.erb @@ -1,3 +1,30 @@ +
+ « + <% unless @changeset.previous.nil? -%> + <%= link_to_revision(@changeset.previous, @repository, + :text => l(:label_previous), :accesskey => accesskey(:previous)) %> + <% else -%> + <%= l(:label_previous) %> + <% end -%> +| + <% unless @changeset.next.nil? -%> + <%= link_to_revision(@changeset.next, @repository, + :text => l(:label_next), :accesskey => accesskey(:next)) %> + <% else -%> + <%= l(:label_next) %> + <% end -%> + »  + + <%= form_tag({:controller => 'repositories', + :action => 'revision', + :id => @project, + :repository_id => @repository.identifier_param, + :rev => nil}, + :method => :get) do %> + <%= text_field_tag 'rev', @rev, :size => 8 %> + <%= submit_tag 'OK', :name => nil %> + <% end %> +
<% if @changeset && @changeset_to.nil? %> <%= render :partial => 'changeset' %> <% else %> -- 2.39.5