From 9737beecc4cdfba8bb8aba84283c95d54e5fa61b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 15 Jun 2008 15:56:47 +0000 Subject: [PATCH] Adds a field on the repository view to browse at specific revision (#1443). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1554 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/repositories/show.rhtml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/views/repositories/show.rhtml b/app/views/repositories/show.rhtml index 469ac063e..9a73183e8 100644 --- a/app/views/repositories/show.rhtml +++ b/app/views/repositories/show.rhtml @@ -1,11 +1,16 @@
<%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %> + +<% if !@entries.nil? && authorize_for('repositories', 'browse') -%> +<% form_tag(:action => 'browse', :id => @project) do -%> +| <%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %> +<% end -%> +<% end -%>

<%= l(:label_repository) %> (<%= @repository.scm_name %>)

<% if !@entries.nil? && authorize_for('repositories', 'browse') %> -

<%= l(:label_browse) %>

<%= render :partial => 'dir_list' %> <% end %>