mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
missed a newline
This commit is contained in:
parent
2505d18aa9
commit
4a93b1b0bc
1 changed files with 2 additions and 1 deletions
|
@ -208,7 +208,8 @@ module Email
|
||||||
create_post(user, options)
|
create_post(user, options)
|
||||||
end
|
end
|
||||||
|
|
||||||
def attachment_markdown(upload)if FileHelper.is_image?(upload.original_filename)
|
def attachment_markdown(upload)
|
||||||
|
if FileHelper.is_image?(upload.original_filename)
|
||||||
"<img src='#{upload.url}' width='#{upload.width}' height='#{upload.height}'>"
|
"<img src='#{upload.url}' width='#{upload.width}' height='#{upload.height}'>"
|
||||||
else
|
else
|
||||||
"<a class='attachment' href='#{upload.url}'>#{upload.original_filename}</a> (#{number_to_human_size(upload.filesize)})"
|
"<a class='attachment' href='#{upload.url}'>#{upload.original_filename}</a> (#{number_to_human_size(upload.filesize)})"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue