scm: code clean up repositories/show.rhtml.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5138 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-03-15 07:14:39 +00:00 committed by Eric Davis
parent ba9624fcf3
commit cb7426d86f
1 changed files with 15 additions and 9 deletions

View File

@ -12,14 +12,19 @@
<%= render_properties(@properties) %>
<% if @changesets && !@changesets.empty? && authorize_for('repositories', 'revisions') %>
<% if authorize_for('repositories', 'revisions') %>
<% if @changesets && !@changesets.empty? %>
<h3><%= l(:label_latest_revision_plural) %></h3>
<%= render :partial => 'revisions', :locals => {:project => @project, :path => @path, :revisions => @changesets, :entry => nil }%>
<%= 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), :action => 'changes', :path => to_path_param(@path), :id => @project %></p>
<p><%= link_to l(:label_view_revisions),
:action => 'changes',
:path => to_path_param(@path), :id => @project %></p>
<% end %>
<% content_for :header_tags do %>
@ -33,6 +38,7 @@
<%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :key => User.current.rss_key} %>
<% end %>
<% end %>
<% end %>
<% content_for :header_tags do %>
<%= stylesheet_link_tag "scm" %>