summaryrefslogtreecommitdiffstats
path: root/app/views/repositories
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-24 23:43:33 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-24 23:43:33 +0000
commit69311c9d2f4fe3f5c2fea722545ff7c44e50ee19 (patch)
tree305eb74d218d6e3771b2af5cfb3c0b92a460e72f /app/views/repositories
parent023a0efa10f4e30a4292732410b20cf6b231ee5e (diff)
downloadredmine-69311c9d2f4fe3f5c2fea722545ff7c44e50ee19.tar.gz
redmine-69311c9d2f4fe3f5c2fea722545ff7c44e50ee19.zip
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
Diffstat (limited to 'app/views/repositories')
-rw-r--r--app/views/repositories/show.rhtml6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/repositories/show.rhtml b/app/views/repositories/show.rhtml
index 7df7d727d..d51724252 100644
--- a/app/views/repositories/show.rhtml
+++ b/app/views/repositories/show.rhtml
@@ -23,7 +23,11 @@
<% if @repository.supports_all_revisions? %>
<%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %>
<% 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),
:action => 'changes',