##// END OF EJS Templates
FIxed: inline images not displayed in atom feeds (#3391)....
Jean-Philippe Lang -
r2669:c082cfc90ef8
parent child
Show More
@@ -24,7 +24,7 xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
24 xml.email(author.mail) if author.is_a?(User) && !author.mail.blank? && !author.pref.hide_mail
24 xml.email(author.mail) if author.is_a?(User) && !author.mail.blank? && !author.pref.hide_mail
25 end if author
25 end if author
26 xml.content "type" => "html" do
26 xml.content "type" => "html" do
27 xml.text! textilizable(item.event_description, :only_path => false)
27 xml.text! textilizable(item, :event_description, :only_path => false)
28 end
28 end
29 end
29 end
30 end
30 end
@@ -23,7 +23,7 xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
23 xml.text! '<li>' + show_detail(detail, false) + '</li>'
23 xml.text! '<li>' + show_detail(detail, false) + '</li>'
24 end
24 end
25 xml.text! '</ul>'
25 xml.text! '</ul>'
26 xml.text! textilizable(change.notes) unless change.notes.blank?
26 xml.text! textilizable(change, :notes, :only_path => false) unless change.notes.blank?
27 end
27 end
28 end
28 end
29 end
29 end
@@ -109,4 +109,16 attachments_009:
109 filename: version_file.zip
109 filename: version_file.zip
110 author_id: 2
110 author_id: 2
111 content_type: application/octet-stream
111 content_type: application/octet-stream
112 attachments_010:
113 created_on: 2006-07-19 21:07:27 +02:00
114 container_type: Issue
115 container_id: 2
116 downloads: 0
117 disk_filename: 060719210727_picture.jpg
118 digest: b91e08d0cf966d5c6ff411bd8c4cc3a2
119 id: 10
120 filesize: 452
121 filename: picture.jpg
122 author_id: 2
123 content_type: image/jpeg
112 No newline at end of file
124
@@ -13,4 +13,11 journals_002:
13 journalized_type: Issue
13 journalized_type: Issue
14 user_id: 2
14 user_id: 2
15 journalized_id: 1
15 journalized_id: 1
16 journals_003:
17 created_on: <%= 1.days.ago.to_date.to_s(:db) %>
18 notes: "A comment with inline image: !picture.jpg!"
19 id: 3
20 journalized_type: Issue
21 user_id: 2
22 journalized_id: 2
16 No newline at end of file
23
@@ -369,6 +369,14 class IssuesControllerTest < Test::Unit::TestCase
369 :descendant => { :tag => 'a', :content => /#4$/ }
369 :descendant => { :tag => 'a', :content => /#4$/ }
370 end
370 end
371
371
372 def test_show_atom
373 get :show, :id => 2, :format => 'atom'
374 assert_response :success
375 assert_template 'changes.rxml'
376 # Inline image
377 assert @response.body.include?("&lt;img src=\"http://test.host/attachments/download/10\" alt=\"\" /&gt;")
378 end
379
372 def test_new_routing
380 def test_new_routing
373 assert_routing(
381 assert_routing(
374 {:method => :get, :path => '/projects/1/issues/new'},
382 {:method => :get, :path => '/projects/1/issues/new'},
General Comments 0
You need to be logged in to leave comments. Login now