mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
Render notes using RedCloth without formatize
Removes the outdated bluecloth dependency
This commit is contained in:
parent
053e3fc8d6
commit
dc311221f1
10 changed files with 16 additions and 21 deletions
|
|
@ -1,10 +1,10 @@
|
|||
module NotesHelper
|
||||
def truncated_note(note, characters = 50)
|
||||
sanitize(textilize_without_paragraph(truncate(note.body, :length => characters, :omission => "...")))
|
||||
Tracks::Utils.render_text(truncate(note.body, :length => characters, :omission => "..."))
|
||||
end
|
||||
|
||||
def rendered_note(note)
|
||||
sanitize(textilize_without_paragraph(note.body))
|
||||
Tracks::Utils.render_text(note.body)
|
||||
end
|
||||
|
||||
def link_to_delete_note(note, descriptor = sanitize(note.id.to_s))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue