From afc59cd7c9e5bc78795b3fef8c74bd7b18a3d0ef Mon Sep 17 00:00:00 2001 From: Alexander Zaytsev Date: Wed, 10 Dec 2025 20:25:58 +0100 Subject: [PATCH] Hide Previously Seen section when empty --- .../index/_read_notifications.html.erb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/app/views/notifications/index/_read_notifications.html.erb b/app/views/notifications/index/_read_notifications.html.erb index c5e282237..04c2e3c48 100644 --- a/app/views/notifications/index/_read_notifications.html.erb +++ b/app/views/notifications/index/_read_notifications.html.erb @@ -1,7 +1,9 @@ -
-

Previously seen

+<% if page.records.any? %> +
+

Previously seen

-
- <%= render partial: "notifications/index/notification", collection: page.records, cached: true %> -
-
+
+ <%= render partial: "notifications/index/notification", collection: page.records, cached: true %> +
+
+<% end %>