From: Nenad Vujicic Date: Thu, 23 Jan 2025 15:18:36 +0000 (+0100) Subject: Replaces using description with note_description X-Git-Tag: live~198^2~2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/a16c1138e9c061f83accca1b433aeebaf882758f?ds=sidebyside;hp=--cc Replaces using description with note_description Replaces using note's description method with note_description helper routine. --- a16c1138e9c061f83accca1b433aeebaf882758f diff --git a/app/views/notes/index.html.erb b/app/views/notes/index.html.erb index f805a1040..0b39234a9 100644 --- a/app/views/notes/index.html.erb +++ b/app/views/notes/index.html.erb @@ -48,7 +48,7 @@ <%= link_to note.id, note %> <%= note_author(note.author) %> - <%= note.description.to_html %> + <%= note_description(note.author, note.description).to_html %> <%= friendly_date_ago(note.created_at) %> <%= friendly_date_ago(note.updated_at) %> diff --git a/app/views/notes/show.html.erb b/app/views/notes/show.html.erb index a32024048..3d9b4a9ba 100644 --- a/app/views/notes/show.html.erb +++ b/app/views/notes/show.html.erb @@ -5,7 +5,7 @@

<%= t(".description") %>

- <%= h(@note.description.to_html) %> + <%= h(note_description(@note.author, @note.description).to_html) %>