summaryrefslogtreecommitdiffstats
path: root/app/views/repositories/revision.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/repositories/revision.rhtml')
-rw-r--r--app/views/repositories/revision.rhtml22
1 files changed, 18 insertions, 4 deletions
diff --git a/app/views/repositories/revision.rhtml b/app/views/repositories/revision.rhtml
index 32f8583a7..64d1668bc 100644
--- a/app/views/repositories/revision.rhtml
+++ b/app/views/repositories/revision.rhtml
@@ -1,8 +1,22 @@
<div class="contextual">
-<% form_tag do %>
-<%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %>
-<%= submit_tag 'OK' %>
-<% end %>
+ &#171;
+ <% unless @changeset.previous.nil? -%>
+ <%= link_to l(:label_previous), :controller => 'repositories', :action => 'revision', :id => @project, :rev => @changeset.previous.revision %>
+ <% else -%>
+ <%= l(:label_previous) %>
+ <% end -%>
+|
+ <% unless @changeset.next.nil? -%>
+ <%= link_to l(:label_next), :controller => 'repositories', :action => 'revision', :id => @project, :rev => @changeset.next.revision %>
+ <% else -%>
+ <%= l(:label_next) %>
+ <% end -%>
+ &#187;&nbsp;
+
+ <% form_tag do %>
+ <%= text_field_tag 'rev', @rev, :size => 5 %>
+ <%= submit_tag 'OK' %>
+ <% end %>
</div>
<h2><%= l(:label_revision) %> <%= @changeset.revision %></h2>