use helper to markdown text

This commit is contained in:
Nihad Abbasov 2011-10-30 17:41:57 +04:00
parent 6c7706eb17
commit 1f3323f908
3 changed files with 6 additions and 2 deletions

View file

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