summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-24 17:58:50 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-03-24 17:58:50 +0000
commit4d7e61c49e752feb3a0389f51deb27013d7a10a9 (patch)
treecf110e410ef1e71905f47293fe56ba90bec197b4 /app/views
parent5a5cb39de0e3d7ffb7e126543c8d210cd62fcd84 (diff)
downloadredmine-4d7e61c49e752feb3a0389f51deb27013d7a10a9.tar.gz
redmine-4d7e61c49e752feb3a0389f51deb27013d7a10a9.zip
Do not display both 'View all revisions' and 'View revision' links (#7984).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5213 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/repositories/show.rhtml21
1 files changed, 9 insertions, 12 deletions
diff --git a/app/views/repositories/show.rhtml b/app/views/repositories/show.rhtml
index 7df7d727d..033a928cc 100644
--- a/app/views/repositories/show.rhtml
+++ b/app/views/repositories/show.rhtml
@@ -19,19 +19,16 @@
:locals => {:project => @project, :path => @path,
:revisions => @changesets, :entry => nil }%>
<% end %>
-<p>
-<% if @repository.supports_all_revisions? %>
-<%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %>
-<% end %>
-<% if @repository.supports_directory_revisions? %>
-|
-<%= link_to l(:label_view_revisions),
- :action => 'changes',
- :path => to_path_param(@path), :id => @project %>
-<% end %>
-</p>
-<% if true # @path.blank? %>
+<% if @path.blank? && @repository.supports_all_revisions? %>
+ <p><%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %>
+<% elsif @repository.supports_directory_revisions? %>
+ <p><%= link_to l(:label_view_revisions),
+ :action => 'changes',
+ :path => to_path_param(@path), :id => @project %></p>
+<% end %>
+
+<% if @repository.supports_all_revisions? %>
<% content_for :header_tags do %>
<%= auto_discovery_link_tag(
:atom, params.merge(