@@ -39,7 +39,7 module AttachmentsHelper | |||
|
39 | 39 | api.filesize attachment.filesize |
|
40 | 40 | api.content_type attachment.content_type |
|
41 | 41 | api.description attachment.description |
|
42 | api.content_url url_for(:controller => 'attachments', :action => 'download', :id => attachment, :filename => attachment.filename, :only_path => false) | |
|
42 | api.content_url download_named_attachment_url(attachment, attachment.filename) | |
|
43 | 43 | api.author(:id => attachment.author.id, :name => attachment.author.name) if attachment.author |
|
44 | 44 | api.created_on attachment.created_on |
|
45 | 45 | end |
@@ -3,7 +3,7 xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do | |||
|
3 | 3 | xml.title truncate_single_line_raw(@title, 100) |
|
4 | 4 | xml.link "rel" => "self", "href" => url_for(params.merge(:only_path => false)) |
|
5 | 5 | xml.link "rel" => "alternate", "href" => url_for(params.merge(:only_path => false, :format => nil, :key => nil)) |
|
6 | xml.id url_for(:controller => 'welcome', :only_path => false) | |
|
6 | xml.id home_url | |
|
7 | 7 | xml.icon favicon_url |
|
8 | 8 | xml.updated((@items.first ? @items.first.event_datetime : Time.now).xmlschema) |
|
9 | 9 | xml.author { xml.name "#{Setting.app_title}" } |
@@ -2,8 +2,8 xml.instruct! | |||
|
2 | 2 | xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do |
|
3 | 3 | xml.title @title |
|
4 | 4 | xml.link "rel" => "self", "href" => url_for(:format => 'atom', :key => User.current.rss_key, :only_path => false) |
|
5 |
xml.link "rel" => "alternate", "href" => home_url |
|
|
6 | xml.id url_for(:controller => 'welcome', :only_path => false) | |
|
5 | xml.link "rel" => "alternate", "href" => home_url | |
|
6 | xml.id home_url | |
|
7 | 7 | xml.icon favicon_url |
|
8 | 8 | xml.updated((@journals.first ? @journals.first.event_datetime : Time.now).xmlschema) |
|
9 | 9 | xml.author { xml.name "#{Setting.app_title}" } |
@@ -11,8 +11,8 xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do | |||
|
11 | 11 | issue = change.issue |
|
12 | 12 | xml.entry do |
|
13 | 13 | xml.title "#{issue.project.name} - #{issue.tracker.name} ##{issue.id}: #{issue.subject}" |
|
14 |
xml.link "rel" => "alternate", "href" => |
|
|
15 | xml.id url_for(:controller => 'issues' , :action => 'show', :id => issue, :journal_id => change, :only_path => false) | |
|
14 | xml.link "rel" => "alternate", "href" => issue_url(issue) | |
|
15 | xml.id issue_url(issue, :journal_id => change) | |
|
16 | 16 | xml.updated change.created_on.xmlschema |
|
17 | 17 | xml.author do |
|
18 | 18 | xml.name change.user.name |
@@ -2,7 +2,7 | |||
|
2 | 2 | |
|
3 | 3 | <ul> |
|
4 | 4 | <% @issues.each do |issue| -%> |
|
5 | <li><%=h issue.project %> - <%=link_to(h("#{issue.tracker} ##{issue.id}"), :controller => 'issues', :action => 'show', :id => issue, :only_path => false)%>: <%=h issue.subject %></li> | |
|
5 | <li><%= link_to_issue(issue, :project => true, :only_path => false) %></li> | |
|
6 | 6 | <% end -%> |
|
7 | 7 | </ul> |
|
8 | 8 |
General Comments 0
You need to be logged in to leave comments.
Login now