##// END OF EJS Templates
Added hook :view_repositories_show_contextual to allow adding items to the...
Eric Davis -
r1946:48ae6f38e121
parent child
Show More
@@ -1,34 +1,35
1 <div class="contextual">
1 <div class="contextual">
2 <%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
2 <%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %>
3 <%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %>
3
4
4 <% if !@entries.nil? && authorize_for('repositories', 'browse') -%>
5 <% if !@entries.nil? && authorize_for('repositories', 'browse') -%>
5 <% form_tag(:action => 'browse', :id => @project) do -%>
6 <% form_tag(:action => 'browse', :id => @project) do -%>
6 | <%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %>
7 | <%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %>
7 <% end -%>
8 <% end -%>
8 <% end -%>
9 <% end -%>
9 </div>
10 </div>
10
11
11 <h2><%= l(:label_repository) %> (<%= @repository.scm_name %>)</h2>
12 <h2><%= l(:label_repository) %> (<%= @repository.scm_name %>)</h2>
12
13
13 <% if !@entries.nil? && authorize_for('repositories', 'browse') %>
14 <% if !@entries.nil? && authorize_for('repositories', 'browse') %>
14 <%= render :partial => 'dir_list' %>
15 <%= render :partial => 'dir_list' %>
15 <% end %>
16 <% end %>
16
17
17 <% if !@changesets.empty? && authorize_for('repositories', 'revisions') %>
18 <% if !@changesets.empty? && authorize_for('repositories', 'revisions') %>
18 <h3><%= l(:label_latest_revision_plural) %></h3>
19 <h3><%= l(:label_latest_revision_plural) %></h3>
19 <%= render :partial => 'revisions', :locals => {:project => @project, :path => '', :revisions => @changesets, :entry => nil }%>
20 <%= render :partial => 'revisions', :locals => {:project => @project, :path => '', :revisions => @changesets, :entry => nil }%>
20 <p><%= link_to l(:label_view_revisions), :action => 'revisions', :id => @project %></p>
21 <p><%= link_to l(:label_view_revisions), :action => 'revisions', :id => @project %></p>
21 <% content_for :header_tags do %>
22 <% content_for :header_tags do %>
22 <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :action => 'revisions', :id => @project, :page => nil, :key => User.current.rss_key})) %>
23 <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :action => 'revisions', :id => @project, :page => nil, :key => User.current.rss_key})) %>
23 <% end %>
24 <% end %>
24 <p class="other-formats">
25 <p class="other-formats">
25 <%= l(:label_export_to) %>
26 <%= l(:label_export_to) %>
26 <span><%= link_to 'Atom', {:action => 'revisions', :id => @project, :format => 'atom', :key => User.current.rss_key}, :class => 'feed' %></span>
27 <span><%= link_to 'Atom', {:action => 'revisions', :id => @project, :format => 'atom', :key => User.current.rss_key}, :class => 'feed' %></span>
27 </p>
28 </p>
28 <% end %>
29 <% end %>
29
30
30 <% content_for :header_tags do %>
31 <% content_for :header_tags do %>
31 <%= stylesheet_link_tag "scm" %>
32 <%= stylesheet_link_tag "scm" %>
32 <% end %>
33 <% end %>
33
34
34 <% html_title(l(:label_repository)) -%>
35 <% html_title(l(:label_repository)) -%>
General Comments 0
You need to be logged in to leave comments. Login now