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