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:
parent
ca6e69ec24
commit
9737beecc4
|
@ -1,11 +1,16 @@
|
||||||
<div class="contextual">
|
<div class="contextual">
|
||||||
<%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %>
|
<%= 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>
|
</div>
|
||||||
|
|
||||||
<h2><%= l(:label_repository) %> (<%= @repository.scm_name %>)</h2>
|
<h2><%= l(:label_repository) %> (<%= @repository.scm_name %>)</h2>
|
||||||
|
|
||||||
<% if !@entries.nil? && authorize_for('repositories', 'browse') %>
|
<% if !@entries.nil? && authorize_for('repositories', 'browse') %>
|
||||||
<h3><%= l(:label_browse) %></h3>
|
|
||||||
<%= render :partial => 'dir_list' %>
|
<%= render :partial => 'dir_list' %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue