##// END OF EJS Templates
Adds a field on the repository view to browse at specific revision (#1443)....
Jean-Philippe Lang -
r1540:9737beecc4cd
parent child
Show More
@@ -1,25 +1,30
1 1 <div class="contextual">
2 2 <%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %>
3
4 <% if !@entries.nil? && authorize_for('repositories', 'browse') -%>
5 <% form_tag(:action => 'browse', :id => @project) do -%>
6 | <%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %>
7 <% end -%>
8 <% end -%>
3 9 </div>
4 10
5 11 <h2><%= l(:label_repository) %> (<%= @repository.scm_name %>)</h2>
6 12
7 13 <% if !@entries.nil? && authorize_for('repositories', 'browse') %>
8 <h3><%= l(:label_browse) %></h3>
9 14 <%= render :partial => 'dir_list' %>
10 15 <% end %>
11 16
12 17 <% if !@changesets.empty? && authorize_for('repositories', 'revisions') %>
13 18 <h3><%= l(:label_latest_revision_plural) %></h3>
14 19 <%= render :partial => 'revisions', :locals => {:project => @project, :path => '', :revisions => @changesets, :entry => nil }%>
15 20 <p><%= link_to l(:label_view_revisions), :action => 'revisions', :id => @project %></p>
16 21 <% content_for :header_tags do %>
17 22 <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :action => 'revisions', :id => @project, :page => nil, :key => User.current.rss_key})) %>
18 23 <% end %>
19 24 <% end %>
20 25
21 26 <% content_for :header_tags do %>
22 27 <%= stylesheet_link_tag "scm" %>
23 28 <% end %>
24 29
25 30 <% html_title(l(:label_repository)) -%>
General Comments 0
You need to be logged in to leave comments. Login now