summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-16 00:50:32 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-03-16 00:50:32 +0000
commit20fa628de5e4f7274c3e142927c1ed131bdb0ad7 (patch)
tree2ad6a3dcf6b27729a2a15b7ac7395fcb71373387
parentbae1763a09aeb1067e4e901d3aa07b76378e7a73 (diff)
downloadredmine-20fa628de5e4f7274c3e142927c1ed131bdb0ad7.tar.gz
redmine-20fa628de5e4f7274c3e142927c1ed131bdb0ad7.zip
scm: switch showing link all revisions and directory revisions if scm supports these feature or not.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5145 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/repositories/show.rhtml19
1 files changed, 12 insertions, 7 deletions
diff --git a/app/views/repositories/show.rhtml b/app/views/repositories/show.rhtml
index 3b1a0e69d..7df7d727d 100644
--- a/app/views/repositories/show.rhtml
+++ b/app/views/repositories/show.rhtml
@@ -18,15 +18,20 @@
<%= render :partial => 'revisions',
:locals => {:project => @project, :path => @path,
:revisions => @changesets, :entry => nil }%>
-
-<% if @path.blank? %>
- <p><%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %></p>
-<% else %>
- <p><%= link_to l(:label_view_revisions),
+<% 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 %></p>
-<% end %>
+ :path => to_path_param(@path), :id => @project %>
+<% end %>
+</p>
+<% if true # @path.blank? %>
<% content_for :header_tags do %>
<%= auto_discovery_link_tag(
:atom, params.merge(