Revision 13813
Added by Jean-Philippe Lang over 10 years ago
trunk/app/helpers/attachments_helper.rb | ||
---|---|---|
57 | 57 |
if attachment.thumbnailable? |
58 | 58 |
api.thumbnail_url thumbnail_url(attachment) |
59 | 59 |
end |
60 |
api.content_url download_named_attachment_url(attachment, attachment.filename) |
|
61 | 60 |
api.author(:id => attachment.author.id, :name => attachment.author.name) if attachment.author |
62 | 61 |
api.created_on attachment.created_on |
63 | 62 |
end |
Also available in: Unified diff
Fixed duplicate content_url tag introduced in r13806 (#18707).