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