summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-10-28 11:59:29 +0000
committerGo MAEDA <maeda@farend.jp>2018-10-28 11:59:29 +0000
commit758b6f5a5993002547a5b7bcc1ec917d9cf828ea (patch)
treec7ed6638fae5372815b648c6107bfb4885faf2e8
parente8243d213dd14c35f7409f3a13278e985c3ade79 (diff)
downloadredmine-758b6f5a5993002547a5b7bcc1ec917d9cf828ea.tar.gz
redmine-758b6f5a5993002547a5b7bcc1ec917d9cf828ea.zip
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
-rw-r--r--app/views/repositories/diff.html.erb27
1 files changed, 27 insertions, 0 deletions
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 @@
+<div class="contextual">
+ &#171;
+ <% 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 -%>
+ &#187;&nbsp;
+
+ <%= 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 %>
+</div>
<% if @changeset && @changeset_to.nil? %>
<%= render :partial => 'changeset' %>
<% else %>