Mercurial > hg > soundsoftware-site
comparison app/views/repositories/show.html.erb @ 1115:433d4f72a19b redmine-2.2
Update to Redmine SVN revision 11137 on 2.2-stable branch
author | Chris Cannam |
---|---|
date | Mon, 07 Jan 2013 12:01:42 +0000 |
parents | c6c2cbd0afee |
children | bb32da3bea34 |
comparison
equal
deleted
inserted
replaced
929:5f33065ddc4b | 1115:433d4f72a19b |
---|---|
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', |
8 :locals => { :path => @path, :kind => 'dir', :revision => @rev } %></h2> | |
8 | 9 |
9 <% if !@entries.nil? && authorize_for('repositories', 'browse') %> | 10 <% if !@entries.nil? && authorize_for('repositories', 'browse') %> |
10 <%= render :partial => 'dir_list' %> | 11 <%= render :partial => 'dir_list' %> |
11 <% end %> | 12 <% end %> |
12 | 13 |
13 <%= render_properties(@properties) %> | 14 <%= render_properties(@properties) %> |
14 | 15 |
15 <% if authorize_for('repositories', 'revisions') %> | 16 <% if authorize_for('repositories', 'revisions') %> |
16 <% if @changesets && !@changesets.empty? %> | 17 <% if @changesets && !@changesets.empty? %> |
17 <h3><%= l(:label_latest_revision_plural) %></h3> | 18 <h3><%= l(:label_latest_revision_plural) %></h3> |
18 <%= render :partial => 'revisions', | 19 <%= render :partial => 'revisions', |
19 :locals => {:project => @project, :path => @path, | 20 :locals => {:project => @project, :path => @path, |
20 :revisions => @changesets, :entry => nil }%> | 21 :revisions => @changesets, :entry => nil }%> |
21 <% end %> | 22 <% end %> |
22 <p> | 23 <p> |
23 <% | 24 <% has_branches = (!@repository.branches.nil? && @repository.branches.length > 0) |
24 has_branches = (!@repository.branches.nil? && @repository.branches.length > 0) | 25 sep = '' %> |
25 sep = '' | 26 <% if @repository.supports_all_revisions? && @path.blank? %> |
26 %> | 27 <%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project, |
27 <% if @repository.supports_all_revisions? && @path.blank? %> | 28 :repository_id => @repository.identifier_param %> |
28 <%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %> | 29 <% sep = '|' %> |
29 <% sep = '|' %> | 30 <% end %> |
30 <% end %> | 31 <% if @repository.supports_directory_revisions? && |
31 <% | 32 ( has_branches || !@path.blank? || !@rev.blank? ) %> |
32 if @repository.supports_directory_revisions? && | 33 <%= sep %> |
33 ( has_branches || !@path.blank? || !@rev.blank? ) | 34 <%= link_to l(:label_view_revisions), |
34 %> | |
35 <%= sep %> | |
36 <%= | |
37 link_to l(:label_view_revisions), | |
38 :action => 'changes', | 35 :action => 'changes', |
39 :path => to_path_param(@path), | 36 :path => to_path_param(@path), |
40 :id => @project, | 37 :id => @project, |
41 :rev => @rev | 38 :repository_id => @repository.identifier_param, |
42 %> | 39 :rev => @rev %> |
43 <% end %> | 40 <% end %> |
44 </p> | 41 </p> |
45 | 42 <% if @repository.supports_all_revisions? %> |
46 <% if true # @path.blank? %> | 43 <% content_for :header_tags do %> |
47 <% content_for :header_tags do %> | 44 <%= auto_discovery_link_tag( |
48 <%= auto_discovery_link_tag( | |
49 :atom, params.merge( | 45 :atom, params.merge( |
50 {:format => 'atom', :action => 'revisions', | 46 {:format => 'atom', :action => 'revisions', |
51 :id => @project, :page => nil, :key => User.current.rss_key})) %> | 47 :id => @project, :page => nil, :key => User.current.rss_key})) %> |
52 <% end %> | 48 <% end %> |
53 | 49 |
54 <% other_formats_links do |f| %> | 50 <% other_formats_links do |f| %> |
55 <%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :key => User.current.rss_key} %> | 51 <%= f.link_to 'Atom', |
56 <% end %> | 52 :url => {:action => 'revisions', :id => @project, |
57 <% end %> | 53 :repository_id => @repository.identifier_param, |
54 :key => User.current.rss_key} %> | |
55 <% end %> | |
56 <% end %> | |
57 <% end %> | |
58 | |
59 <% if @repositories.size > 1 %> | |
60 <% content_for :sidebar do %> | |
61 <h3><%= l(:label_repository_plural) %></h3> | |
62 <p> | |
63 <%= @repositories.sort.collect {|repo| | |
64 link_to h(repo.name), | |
65 {:controller => 'repositories', :action => 'show', | |
66 :id => @project, :repository_id => repo.identifier_param, :rev => nil, :path => nil}, | |
67 :class => 'repository' + (repo == @repository ? ' selected' : '') | |
68 }.join('<br />').html_safe %> | |
69 </p> | |
70 <% end %> | |
58 <% end %> | 71 <% end %> |
59 | 72 |
60 <% content_for :header_tags do %> | 73 <% content_for :header_tags do %> |
61 <%= stylesheet_link_tag "scm" %> | 74 <%= stylesheet_link_tag "scm" %> |
62 <% end %> | 75 <% end %> |
63 | 76 |
64 <% html_title(l(:label_repository)) -%> | 77 <% html_title(l(:label_repository)) -%> |