]> git.openstreetmap.org Git - rails.git/commitdiff
Replaces using description with note_description
authorNenad Vujicic <nenadus@gmail.com>
Thu, 23 Jan 2025 15:18:36 +0000 (16:18 +0100)
committerNenad Vujicic <nenadus@gmail.com>
Tue, 4 Feb 2025 00:23:48 +0000 (01:23 +0100)
Replaces using note's description method with note_description helper routine.

app/views/notes/index.html.erb
app/views/notes/show.html.erb

index f805a10402b413aa295875010a051b7ecbbef76f..0b39234a93e61f2eaf222b0e221906f48bf8c567 100644 (file)
@@ -48,7 +48,7 @@
       </td>
       <td><%= link_to note.id, note %></td>
       <td><%= note_author(note.author) %></td>
-      <td><%= note.description.to_html %></td>
+      <td><%= note_description(note.author, note.description).to_html %></td>
       <td><%= friendly_date_ago(note.created_at) %></td>
       <td><%= friendly_date_ago(note.updated_at) %></td>
     </tr>
index a320240488e716224a8908bbed5b612988e7907e..3d9b4a9bace5aafa7d1a378abc6da3ed1a0bf54e 100644 (file)
@@ -5,7 +5,7 @@
 <div>
   <h4><%= t(".description") %></h4>
   <div class="overflow-hidden ms-2">
-    <%= h(@note.description.to_html) %>
+    <%= h(note_description(@note.author, @note.description).to_html) %>
   </div>
 
   <div class="details" data-coordinates="<%= @note.lat %>,<%= @note.lon %>" data-status="<%= @note.status %>">