##// END OF EJS Templates
Do not display both 'View all revisions' and 'View revision' links (#7984)....
Jean-Philippe Lang -
r5093:4d7e61c49e75
parent child
Show More
@@ -1,52 +1,49
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 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),
29 :action => 'changes',
30 :path => to_path_param(@path), :id => @project %>
31 <% end %>
32 </p>
33 22
34 <% if true # @path.blank? %>
23 <% if @path.blank? && @repository.supports_all_revisions? %>
24 <p><%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %>
25 <% elsif @repository.supports_directory_revisions? %>
26 <p><%= link_to l(:label_view_revisions),
27 :action => 'changes',
28 :path => to_path_param(@path), :id => @project %></p>
29 <% end %>
30
31 <% if @repository.supports_all_revisions? %>
35 32 <% content_for :header_tags do %>
36 33 <%= auto_discovery_link_tag(
37 34 :atom, params.merge(
38 35 {:format => 'atom', :action => 'revisions',
39 36 :id => @project, :page => nil, :key => User.current.rss_key})) %>
40 37 <% end %>
41 38
42 39 <% other_formats_links do |f| %>
43 40 <%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :key => User.current.rss_key} %>
44 41 <% end %>
45 42 <% end %>
46 43 <% end %>
47 44
48 45 <% content_for :header_tags do %>
49 46 <%= stylesheet_link_tag "scm" %>
50 47 <% end %>
51 48
52 49 <% html_title(l(:label_repository)) -%>
General Comments 0
You need to be logged in to leave comments. Login now