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