Commit 5395caed authored by Toshi MARUYAMA's avatar Toshi MARUYAMA Committed by Eric Davis

scm: remove "View all revisions" in sub directory (#7984).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5223 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent f6fc3b88
...@@ -20,16 +20,21 @@ ...@@ -20,16 +20,21 @@
:revisions => @changesets, :entry => nil }%> :revisions => @changesets, :entry => nil }%>
<% end %> <% end %>
<p> <p>
<% if @repository.supports_all_revisions? %> <%
has_branches = (!@repository.branches.nil? && @repository.branches.length > 0)
sep = ''
%>
<% if @repository.supports_all_revisions? && @path.blank? %>
<%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %> <%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %>
<% sep = '|' %>
<% end %> <% end %>
<% <%
has_branches = (!@repository.branches.nil? && @repository.branches.length > 0)
if @repository.supports_directory_revisions? && if @repository.supports_directory_revisions? &&
( has_branches || !@path.blank? || !@rev.blank? ) ( has_branches || !@path.blank? || !@rev.blank? )
%> %>
| <%= sep %>
<%= link_to l(:label_view_revisions), <%=
link_to l(:label_view_revisions),
:action => 'changes', :action => 'changes',
:path => to_path_param(@path), :path => to_path_param(@path),
:id => @project, :id => @project,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment