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
This commit is contained in:
Jean-Philippe Lang 2008-06-15 15:56:47 +00:00
parent ca6e69ec24
commit 9737beecc4
1 changed files with 6 additions and 1 deletions

View File

@ -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 %>