##// END OF EJS Templates
scm: code clean up repositories/show.rhtml....
Toshi MARUYAMA -
r5018:1ec3f1c696f9
parent child
Show More
@@ -12,25 +12,31
12
12
13 <%= render_properties(@properties) %>
13 <%= render_properties(@properties) %>
14
14
15 <% if @changesets && !@changesets.empty? && authorize_for('repositories', 'revisions') %>
15 <% if authorize_for('repositories', 'revisions') %>
16 <% if @changesets && !@changesets.empty? %>
16 <h3><%= l(:label_latest_revision_plural) %></h3>
17 <h3><%= l(:label_latest_revision_plural) %></h3>
17 <%= render :partial => 'revisions', :locals => {:project => @project, :path => @path, :revisions => @changesets, :entry => nil }%>
18 <%= render :partial => 'revisions',
19 :locals => {:project => @project, :path => @path,
20 :revisions => @changesets, :entry => nil }%>
18
21
19 <% if @path.blank? %>
22 <% if @path.blank? %>
20 <p><%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %></p>
23 <p><%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %></p>
21 <% else %>
24 <% else %>
22 <p><%= link_to l(:label_view_revisions), :action => 'changes', :path => to_path_param(@path), :id => @project %></p>
25 <p><%= link_to l(:label_view_revisions),
23 <% end %>
26 :action => 'changes',
27 :path => to_path_param(@path), :id => @project %></p>
28 <% end %>
24
29
25 <% content_for :header_tags do %>
30 <% content_for :header_tags do %>
26 <%= auto_discovery_link_tag(
31 <%= auto_discovery_link_tag(
27 :atom, params.merge(
32 :atom, params.merge(
28 {:format => 'atom', :action => 'revisions',
33 {:format => 'atom', :action => 'revisions',
29 :id => @project, :page => nil, :key => User.current.rss_key})) %>
34 :id => @project, :page => nil, :key => User.current.rss_key})) %>
30 <% end %>
35 <% end %>
31
36
32 <% other_formats_links do |f| %>
37 <% other_formats_links do |f| %>
33 <%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :key => User.current.rss_key} %>
38 <%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :key => User.current.rss_key} %>
39 <% end %>
34 <% end %>
40 <% end %>
35 <% end %>
41 <% end %>
36
42
General Comments 0
You need to be logged in to leave comments. Login now