process notes w/ rdiscount

This commit is contained in:
Nihad Abbasov 2011-10-28 00:57:10 +05:00
parent e92669fb2d
commit 6c7706eb17

View file

@ -2,7 +2,7 @@
%div.note_author %div.note_author
= image_tag gravatar_icon(note.author.email), :class => "left", :width => 40, :style => "padding-right:5px;" = image_tag gravatar_icon(note.author.email), :class => "left", :width => 40, :style => "padding-right:5px;"
%div.note_content.left %div.note_content.left
= simple_format(html_escape(note.note)) = raw RDiscount.new(note.note, :smart, :filter_html).to_html
- if note.attachment.url - if note.attachment.url
Attachment: Attachment:
= link_to note.attachment_identifier, note.attachment.url, :target => "_blank" = link_to note.attachment_identifier, note.attachment.url, :target => "_blank"