Much smarter project note truncation

Fixes #780
This commit is contained in:
Eric Allen 2010-04-02 09:14:25 -04:00
parent 3146fa6bd1
commit 205c4e7ed4
5 changed files with 90 additions and 2 deletions

View file

@ -2,4 +2,8 @@ module NotesHelper
def truncated_note(note, characters = 50)
sanitize(textilize_without_paragraph(truncate(note.body, :length => characters, :omission => "...")))
end
def rendered_note(note)
sanitize(textilize_without_paragraph(note.body))
end
end