summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 %>