@@ -1,47 +1,52 | |||
|
1 | 1 | <%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %> |
|
2 | 2 | |
|
3 | 3 | <div class="contextual"> |
|
4 | 4 | <%= render :partial => 'navigation' %> |
|
5 | 5 | </div> |
|
6 | 6 | |
|
7 | 7 | <h2><%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'dir', :revision => @rev } %></h2> |
|
8 | 8 | |
|
9 | 9 | <% if !@entries.nil? && authorize_for('repositories', 'browse') %> |
|
10 | 10 | <%= render :partial => 'dir_list' %> |
|
11 | 11 | <% end %> |
|
12 | 12 | |
|
13 | 13 | <%= render_properties(@properties) %> |
|
14 | 14 | |
|
15 | 15 | <% if authorize_for('repositories', 'revisions') %> |
|
16 | 16 | <% if @changesets && !@changesets.empty? %> |
|
17 | 17 | <h3><%= l(:label_latest_revision_plural) %></h3> |
|
18 | 18 | <%= render :partial => 'revisions', |
|
19 | 19 | :locals => {:project => @project, :path => @path, |
|
20 | 20 | :revisions => @changesets, :entry => nil }%> |
|
21 | ||
|
22 | <% if @path.blank? %> | |
|
23 | <p><%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %></p> | |
|
24 | <% else %> | |
|
25 | <p><%= link_to l(:label_view_revisions), | |
|
21 | <% end %> | |
|
22 | <p> | |
|
23 | <% if @repository.supports_all_revisions? %> | |
|
24 | <%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %> | |
|
25 | <% end %> | |
|
26 | <% if @repository.supports_directory_revisions? %> | |
|
27 | | | |
|
28 | <%= link_to l(:label_view_revisions), | |
|
26 | 29 | :action => 'changes', |
|
27 |
:path => to_path_param(@path), :id => @project %> |
|
|
28 |
<% |
|
|
30 | :path => to_path_param(@path), :id => @project %> | |
|
31 | <% end %> | |
|
32 | </p> | |
|
29 | 33 | |
|
34 | <% if true # @path.blank? %> | |
|
30 | 35 | <% content_for :header_tags do %> |
|
31 | 36 | <%= auto_discovery_link_tag( |
|
32 | 37 | :atom, params.merge( |
|
33 | 38 | {:format => 'atom', :action => 'revisions', |
|
34 | 39 | :id => @project, :page => nil, :key => User.current.rss_key})) %> |
|
35 | 40 | <% end %> |
|
36 | 41 | |
|
37 | 42 | <% other_formats_links do |f| %> |
|
38 | 43 | <%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :key => User.current.rss_key} %> |
|
39 | 44 | <% end %> |
|
40 | 45 | <% end %> |
|
41 | 46 | <% end %> |
|
42 | 47 | |
|
43 | 48 | <% content_for :header_tags do %> |
|
44 | 49 | <%= stylesheet_link_tag "scm" %> |
|
45 | 50 | <% end %> |
|
46 | 51 | |
|
47 | 52 | <% html_title(l(:label_repository)) -%> |
General Comments 0
You need to be logged in to leave comments.
Login now