##// END OF EJS Templates
fix html tag at app/views/repositories/show.html.erb...
Toshi MARUYAMA -
r9186:9aefe8b1e973
parent child
Show More
@@ -1,73 +1,75
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 authorize_for('repositories', 'revisions') %>
15 <% if authorize_for('repositories', 'revisions') %>
16 <% if @changesets && !@changesets.empty? %>
16 <% if @changesets && !@changesets.empty? %>
17 <h3><%= l(:label_latest_revision_plural) %></h3>
17 <h3><%= l(:label_latest_revision_plural) %></h3>
18 <%= render :partial => 'revisions',
18 <%= render :partial => 'revisions',
19 :locals => {:project => @project, :path => @path,
19 :locals => {:project => @project, :path => @path,
20 :revisions => @changesets, :entry => nil }%>
20 :revisions => @changesets, :entry => nil }%>
21 <% end %>
21 <% end %>
22 <p>
22 <p>
23 <% has_branches = (!@repository.branches.nil? && @repository.branches.length > 0)
23 <% has_branches = (!@repository.branches.nil? && @repository.branches.length > 0)
24 sep = '' %>
24 sep = '' %>
25 <% if @repository.supports_all_revisions? && @path.blank? %>
25 <% if @repository.supports_all_revisions? && @path.blank? %>
26 <%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project, :repository_id => @repository.identifier_param %>
26 <%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project, :repository_id => @repository.identifier_param %>
27 <% sep = '|' %>
27 <% sep = '|' %>
28 <% end %>
28 <% end %>
29 <% if @repository.supports_directory_revisions? &&
29 <% if @repository.supports_directory_revisions? &&
30 ( has_branches || !@path.blank? || !@rev.blank? ) %>
30 ( has_branches || !@path.blank? || !@rev.blank? ) %>
31 <%= sep %>
31 <%= sep %>
32 <%= link_to l(:label_view_revisions),
32 <%= link_to l(:label_view_revisions),
33 :action => 'changes',
33 :action => 'changes',
34 :path => to_path_param(@path),
34 :path => to_path_param(@path),
35 :id => @project,
35 :id => @project,
36 :repository_id => @repository.identifier_param,
36 :repository_id => @repository.identifier_param,
37 :rev => @rev %>
37 :rev => @rev %>
38 <% end %>
38 <% end %>
39 </p>
39 </p>
40 <% if @repository.supports_all_revisions? %>
40 <% if @repository.supports_all_revisions? %>
41 <% content_for :header_tags do %>
41 <% content_for :header_tags do %>
42 <%= auto_discovery_link_tag(
42 <%= auto_discovery_link_tag(
43 :atom, params.merge(
43 :atom, params.merge(
44 {:format => 'atom', :action => 'revisions',
44 {:format => 'atom', :action => 'revisions',
45 :id => @project, :page => nil, :key => User.current.rss_key})) %>
45 :id => @project, :page => nil, :key => User.current.rss_key})) %>
46 <% end %>
46 <% end %>
47
47
48 <% other_formats_links do |f| %>
48 <% other_formats_links do |f| %>
49 <%= f.link_to 'Atom',
49 <%= f.link_to 'Atom',
50 :url => {:action => 'revisions', :id => @project,
50 :url => {:action => 'revisions', :id => @project,
51 :repository_id => @repository.identifier_param,
51 :repository_id => @repository.identifier_param,
52 :key => User.current.rss_key} %>
52 :key => User.current.rss_key} %>
53 <% end %>
53 <% end %>
54 <% end %>
54 <% end %>
55 <% end %>
55 <% end %>
56
56
57 <% if @repositories.size > 1 %>
57 <% if @repositories.size > 1 %>
58 <% content_for :sidebar do %>
58 <% content_for :sidebar do %>
59 <h3><%= l(:label_repository_plural) %></h3>
59 <h3><%= l(:label_repository_plural) %></h3>
60 <%= @repositories.sort.collect {|repo|
60 <p>
61 <%= @repositories.sort.collect {|repo|
61 link_to h(repo.name),
62 link_to h(repo.name),
62 {:controller => 'repositories', :action => 'show',
63 {:controller => 'repositories', :action => 'show',
63 :id => @project, :repository_id => repo.identifier_param, :rev => nil, :path => nil},
64 :id => @project, :repository_id => repo.identifier_param, :rev => nil, :path => nil},
64 :class => 'repository' + (repo == @repository ? ' selected' : '')
65 :class => 'repository' + (repo == @repository ? ' selected' : '')
65 }.join('<br />').html_safe %></p>
66 }.join('<br />').html_safe %>
67 </p>
66 <% end %>
68 <% end %>
67 <% end %>
69 <% end %>
68
70
69 <% content_for :header_tags do %>
71 <% content_for :header_tags do %>
70 <%= stylesheet_link_tag "scm" %>
72 <%= stylesheet_link_tag "scm" %>
71 <% end %>
73 <% end %>
72
74
73 <% html_title(l(:label_repository)) -%>
75 <% html_title(l(:label_repository)) -%>
General Comments 0
You need to be logged in to leave comments. Login now