mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-19 00:30:12 +01:00
9 lines
265 B
Ruby
9 lines
265 B
Ruby
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
|