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
This commit is contained in:
parent
e311b26c41
commit
ca2c2a2add
@ -18,15 +18,20 @@
|
|||||||
<%= render :partial => 'revisions',
|
<%= render :partial => 'revisions',
|
||||||
:locals => {:project => @project, :path => @path,
|
:locals => {:project => @project, :path => @path,
|
||||||
:revisions => @changesets, :entry => nil }%>
|
:revisions => @changesets, :entry => nil }%>
|
||||||
|
<% end %>
|
||||||
<% if @path.blank? %>
|
<p>
|
||||||
<p><%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %></p>
|
<% if @repository.supports_all_revisions? %>
|
||||||
<% else %>
|
<%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %>
|
||||||
<p><%= link_to l(:label_view_revisions),
|
<% end %>
|
||||||
|
<% if @repository.supports_directory_revisions? %>
|
||||||
|
|
|
||||||
|
<%= link_to l(:label_view_revisions),
|
||||||
:action => 'changes',
|
:action => 'changes',
|
||||||
:path => to_path_param(@path), :id => @project %></p>
|
:path => to_path_param(@path), :id => @project %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<% if true # @path.blank? %>
|
||||||
<% content_for :header_tags do %>
|
<% content_for :header_tags do %>
|
||||||
<%= auto_discovery_link_tag(
|
<%= auto_discovery_link_tag(
|
||||||
:atom, params.merge(
|
:atom, params.merge(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user