scm: do not display 'View revision' links in subversion if path or revision are nil (#7984).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5219 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-03-24 23:43:33 +00:00
parent 023a0efa10
commit 69311c9d2f
1 changed files with 5 additions and 1 deletions

View File

@ -23,7 +23,11 @@
<% if @repository.supports_all_revisions? %> <% if @repository.supports_all_revisions? %>
<%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %> <%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %>
<% end %> <% end %>
<% if @repository.supports_directory_revisions? %> <%
has_branches = (!@repository.branches.nil? && @repository.branches.length > 0)
if @repository.supports_directory_revisions? &&
( has_branches || !@path.blank? || !@rev.blank? )
%>
| |
<%= link_to l(:label_view_revisions), <%= link_to l(:label_view_revisions),
:action => 'changes', :action => 'changes',