From: Toshi MARUYAMA Date: Thu, 24 Mar 2011 23:42:50 +0000 (+0000) Subject: scm: backout r5213. do not display both 'View all revisions' and 'View revision'... X-Git-Tag: 1.2.0~626 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=023a0efa10f4e30a4292732410b20cf6b231ee5e;p=redmine.git scm: backout r5213. do not display both 'View all revisions' and 'View revision' links (#7984, #7246). Git and Mercurial support *branch*. Git in repository root shows *master branch*. Git master branch does not have all revisions. Mercurial default branch is *default branch*. Mercurial shows *tip* in repository root. Mercurial does not treat directory. "hg log DIR" costs high. Getting correct limited changesets in sub directory and branch is very heavy. So, if there is no recent revision in sub directory and branch, no changeset shows. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5218 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/repositories/show.rhtml b/app/views/repositories/show.rhtml index 033a928cc..7df7d727d 100644 --- a/app/views/repositories/show.rhtml +++ b/app/views/repositories/show.rhtml @@ -19,16 +19,19 @@ :locals => {:project => @project, :path => @path, :revisions => @changesets, :entry => nil }%> <% end %> +

+<% 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 %> +

-<% if @path.blank? && @repository.supports_all_revisions? %> -

<%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %> -<% elsif @repository.supports_directory_revisions? %> -

<%= link_to l(:label_view_revisions), - :action => 'changes', - :path => to_path_param(@path), :id => @project %>

-<% end %> - -<% if @repository.supports_all_revisions? %> +<% if true # @path.blank? %> <% content_for :header_tags do %> <%= auto_discovery_link_tag( :atom, params.merge(