From 2c19c2143ec51e507d19b41fb6c89454b3d83dfc Mon Sep 17 00:00:00 2001 From: Nenad Vujicic Date: Tue, 14 Jan 2025 13:32:22 +0100 Subject: [PATCH] Changed note's first comment body to description Replaced using note's first comment body with note's description. --- app/views/notes/index.html.erb | 2 +- app/views/notes/show.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/notes/index.html.erb b/app/views/notes/index.html.erb index c88312665..f805a1040 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.comments.first.body.to_html %> + <%= 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 d17612e29..a32024048 100644 --- a/app/views/notes/show.html.erb +++ b/app/views/notes/show.html.erb @@ -5,7 +5,7 @@

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

- <%= h(@note_comments.first.body.to_html) %> + <%= h(@note.description.to_html) %>
-- 2.39.5