##// END OF EJS Templates
scm: code clean up repositories/show.rhtml....
Toshi MARUYAMA -
r5018:1ec3f1c696f9
parent child
Show More
@@ -1,41 +1,47
1 <%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
1 <%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>
2
2
3 <div class="contextual">
3 <div class="contextual">
4 <%= render :partial => 'navigation' %>
4 <%= render :partial => 'navigation' %>
5 </div>
5 </div>
6
6
7 <h2><%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'dir', :revision => @rev } %></h2>
7 <h2><%= render :partial => 'breadcrumbs', :locals => { :path => @path, :kind => 'dir', :revision => @rev } %></h2>
8
8
9 <% if !@entries.nil? && authorize_for('repositories', 'browse') %>
9 <% if !@entries.nil? && authorize_for('repositories', 'browse') %>
10 <%= render :partial => 'dir_list' %>
10 <%= render :partial => 'dir_list' %>
11 <% end %>
11 <% end %>
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
37 <% content_for :header_tags do %>
43 <% content_for :header_tags do %>
38 <%= stylesheet_link_tag "scm" %>
44 <%= stylesheet_link_tag "scm" %>
39 <% end %>
45 <% end %>
40
46
41 <% html_title(l(:label_repository)) -%>
47 <% html_title(l(:label_repository)) -%>
General Comments 0
You need to be logged in to leave comments. Login now