##// 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 <div class="contextual">
1 <div class="contextual">
2 <%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %>
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 </div>
9 </div>
4
10
5 <h2><%= l(:label_repository) %> (<%= @repository.scm_name %>)</h2>
11 <h2><%= l(:label_repository) %> (<%= @repository.scm_name %>)</h2>
6
12
7 <% if !@entries.nil? && authorize_for('repositories', 'browse') %>
13 <% if !@entries.nil? && authorize_for('repositories', 'browse') %>
8 <h3><%= l(:label_browse) %></h3>
9 <%= render :partial => 'dir_list' %>
14 <%= render :partial => 'dir_list' %>
10 <% end %>
15 <% end %>
11
16
12 <% if !@changesets.empty? && authorize_for('repositories', 'revisions') %>
17 <% if !@changesets.empty? && authorize_for('repositories', 'revisions') %>
13 <h3><%= l(:label_latest_revision_plural) %></h3>
18 <h3><%= l(:label_latest_revision_plural) %></h3>
14 <%= render :partial => 'revisions', :locals => {:project => @project, :path => '', :revisions => @changesets, :entry => nil }%>
19 <%= render :partial => 'revisions', :locals => {:project => @project, :path => '', :revisions => @changesets, :entry => nil }%>
15 <p><%= link_to l(:label_view_revisions), :action => 'revisions', :id => @project %></p>
20 <p><%= link_to l(:label_view_revisions), :action => 'revisions', :id => @project %></p>
16 <% content_for :header_tags do %>
21 <% content_for :header_tags do %>
17 <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :action => 'revisions', :id => @project, :page => nil, :key => User.current.rss_key})) %>
22 <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :action => 'revisions', :id => @project, :page => nil, :key => User.current.rss_key})) %>
18 <% end %>
23 <% end %>
19 <% end %>
24 <% end %>
20
25
21 <% content_for :header_tags do %>
26 <% content_for :header_tags do %>
22 <%= stylesheet_link_tag "scm" %>
27 <%= stylesheet_link_tag "scm" %>
23 <% end %>
28 <% end %>
24
29
25 <% html_title(l(:label_repository)) -%>
30 <% html_title(l(:label_repository)) -%>
General Comments 0
You need to be logged in to leave comments. Login now