Mercurial > hg > soundsoftware-site
comparison app/views/repositories/show.rhtml @ 441:cbce1fd3b1b7 redmine-1.2
Update to Redmine 1.2-stable branch (Redmine SVN rev 6000)
author | Chris Cannam |
---|---|
date | Mon, 06 Jun 2011 14:24:13 +0100 |
parents | 513646585e45 |
children | 496b3cfa2f36 |
comparison
equal
deleted
inserted
replaced
245:051f544170fe | 441:cbce1fd3b1b7 |
---|---|
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 }%> | |
21 <% end %> | |
22 <p> | |
23 <% | |
24 has_branches = (!@repository.branches.nil? && @repository.branches.length > 0) | |
25 sep = '' | |
26 %> | |
27 <% if @repository.supports_all_revisions? && @path.blank? %> | |
28 <%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %> | |
29 <% sep = '|' %> | |
30 <% end %> | |
31 <% | |
32 if @repository.supports_directory_revisions? && | |
33 ( has_branches || !@path.blank? || !@rev.blank? ) | |
34 %> | |
35 <%= sep %> | |
36 <%= | |
37 link_to l(:label_view_revisions), | |
38 :action => 'changes', | |
39 :path => to_path_param(@path), | |
40 :id => @project, | |
41 :rev => @rev | |
42 %> | |
43 <% end %> | |
44 </p> | |
18 | 45 |
19 <% if @path.blank? %> | 46 <% if true # @path.blank? %> |
20 <p><%= link_to l(:label_view_all_revisions), :action => 'revisions', :id => @project %></p> | 47 <% content_for :header_tags do %> |
21 <% else %> | 48 <%= auto_discovery_link_tag( |
22 <p><%= link_to l(:label_view_revisions), :action => 'changes', :path => to_path_param(@path), :id => @project %></p> | 49 :atom, params.merge( |
23 <% end %> | 50 {:format => 'atom', :action => 'revisions', |
51 :id => @project, :page => nil, :key => User.current.rss_key})) %> | |
52 <% end %> | |
24 | 53 |
25 <% content_for :header_tags do %> | 54 <% other_formats_links do |f| %> |
26 <%= auto_discovery_link_tag(:atom, params.merge({:format => 'atom', :action => 'revisions', :id => @project, :page => nil, :key => User.current.rss_key})) %> | 55 <%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :key => User.current.rss_key} %> |
27 <% end %> | 56 <% end %> |
28 | 57 <% end %> |
29 <% other_formats_links do |f| %> | |
30 <%= f.link_to 'Atom', :url => {:action => 'revisions', :id => @project, :key => User.current.rss_key} %> | |
31 <% end %> | |
32 <% end %> | 58 <% end %> |
33 | 59 |
34 <% content_for :header_tags do %> | 60 <% content_for :header_tags do %> |
35 <%= stylesheet_link_tag "scm" %> | 61 <%= stylesheet_link_tag "scm" %> |
36 <% end %> | 62 <% end %> |