diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-15 15:56:47 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-15 15:56:47 +0000 |
commit | 9737beecc4cdfba8bb8aba84283c95d54e5fa61b (patch) | |
tree | 90c74bcf63600351021f3f7c01ecdb931d63fe77 /app/views | |
parent | ca6e69ec247e10c521f22fba542404720cc2ebff (diff) | |
download | redmine-9737beecc4cdfba8bb8aba84283c95d54e5fa61b.tar.gz redmine-9737beecc4cdfba8bb8aba84283c95d54e5fa61b.zip |
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
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/repositories/show.rhtml | 7 |
1 files changed, 6 insertions, 1 deletions
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 @@ <div class="contextual"> <%= 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 -%> </div> <h2><%= l(:label_repository) %> (<%= @repository.scm_name %>)</h2> <% if !@entries.nil? && authorize_for('repositories', 'browse') %> -<h3><%= l(:label_browse) %></h3> <%= render :partial => 'dir_list' %> <% end %> |