@@ -29,6 +29,14 module RoutesHelper | |||
|
29 | 29 | end |
|
30 | 30 | end |
|
31 | 31 | |
|
32 | def _project_news_path(project, *args) | |
|
33 | if project | |
|
34 | project_news_index_path(project, *args) | |
|
35 | else | |
|
36 | news_index_path(*args) | |
|
37 | end | |
|
38 | end | |
|
39 | ||
|
32 | 40 | def _new_project_issue_path(project, *args) |
|
33 | 41 | if project |
|
34 | 42 | new_project_issue_path(project, *args) |
@@ -42,7 +42,7 | |||
|
42 | 42 | <% end %> |
|
43 | 43 | |
|
44 | 44 | <% content_for :header_tags do %> |
|
45 |
<%= auto_discovery_link_tag(:atom, params.merge(:f |
|
|
45 | <%= auto_discovery_link_tag(:atom, :params => request.query_parameters.merge(:from => nil, :key => User.current.rss_key), :format => 'atom') %> | |
|
46 | 46 | <% end %> |
|
47 | 47 | |
|
48 | 48 | <% content_for :sidebar do %> |
@@ -1,8 +1,8 | |||
|
1 | 1 | xml.instruct! |
|
2 | 2 | xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do |
|
3 | 3 | xml.title truncate_single_line_raw(@title, 100) |
|
4 |
xml.link "rel" => "self", "href" => url_for(params |
|
|
5 |
xml.link "rel" => "alternate", "href" => url_for(params |
|
|
4 | xml.link "rel" => "self", "href" => url_for(:params => request.query_parameters, :only_path => false, :format => 'atom') | |
|
5 | xml.link "rel" => "alternate", "href" => url_for(:params => request.query_parameters.merge(:format => nil, :key => nil), :only_path => false) | |
|
6 | 6 | xml.id home_url |
|
7 | 7 | xml.icon favicon_url |
|
8 | 8 | xml.updated((@items.first ? @items.first.event_datetime : Time.now).xmlschema) |
@@ -44,7 +44,7 | |||
|
44 | 44 | <% end %> |
|
45 | 45 | |
|
46 | 46 | <% content_for :header_tags do %> |
|
47 |
<%= auto_discovery_link_tag(:atom, |
|
|
47 | <%= auto_discovery_link_tag(:atom, _project_news_path(@project, :key => User.current.rss_key, :format => 'atom')) %> | |
|
48 | 48 | <%= stylesheet_link_tag 'scm' %> |
|
49 | 49 | <% end %> |
|
50 | 50 |
@@ -9,7 +9,11 | |||
|
9 | 9 | <%= render :partial => 'link_to_functions' %> |
|
10 | 10 | |
|
11 | 11 | <% if Redmine::MimeType.is_type?('image', @path) %> |
|
12 |
<%= render :partial => 'common/image', :locals => {:path => url_for( |
|
|
12 | <%= render :partial => 'common/image', :locals => {:path => url_for(:action => 'raw', | |
|
13 | :id => @project, | |
|
14 | :repository_id => @repository.identifier_param, | |
|
15 | :path => @path, | |
|
16 | :rev => @rev), :alt => @path} %> | |
|
13 | 17 | <% elsif @content %> |
|
14 | 18 | <%= render :partial => 'common/file', :locals => {:filename => @path, :content => @content} %> |
|
15 | 19 | <% else %> |
@@ -23,8 +23,8 | |||
|
23 | 23 | <%= stylesheet_link_tag "scm" %> |
|
24 | 24 | <%= auto_discovery_link_tag( |
|
25 | 25 | :atom, |
|
26 | params.merge( | |
|
27 | {:format => 'atom', :page => nil, :key => User.current.rss_key})) %> | |
|
26 | :params => request.query_parameters.merge(:page => nil, :key => User.current.rss_key), | |
|
27 | :format => 'atom') %> | |
|
28 | 28 | <% end %> |
|
29 | 29 | |
|
30 | 30 | <% other_formats_links do |f| %> |
@@ -42,9 +42,10 | |||
|
42 | 42 | <% if @repository.supports_all_revisions? %> |
|
43 | 43 | <% content_for :header_tags do %> |
|
44 | 44 | <%= auto_discovery_link_tag( |
|
45 |
:atom, |
|
|
46 |
|
|
|
47 | :id => @project, :page => nil, :key => User.current.rss_key})) %> | |
|
45 | :atom, | |
|
46 | :action => 'revisions', :id => @project, | |
|
47 | :repository_id => @repository.identifier_param, | |
|
48 | :key => User.current.rss_key) %> | |
|
48 | 49 | <% end %> |
|
49 | 50 | |
|
50 | 51 | <% other_formats_links do |f| %> |
General Comments 0
You need to be logged in to leave comments.
Login now