From 7c966271068d4600bab2b3e4a55489f2f91d24e5 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Wed, 20 Jul 2022 17:14:16 +0200 Subject: [PATCH] Add card to empty notifications list --- app/views/notifications/index.haml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/app/views/notifications/index.haml b/app/views/notifications/index.haml index b999f05c..ea592faf 100644 --- a/app/views/notifications/index.haml +++ b/app/views/notifications/index.haml @@ -1,13 +1,14 @@ %ul.list-group#notifications - if @notifications.count.zero? - %li.list-group-item.text-center - .notifications--none - %i.fa.fa-bell-o.notification__bell-icon - %p - - if params[:type] == 'all' - = t(".none_filtered") - - else - = t(".none") + .card + %li.list-group-item.text-center + .notifications--none + %i.fa.fa-bell-o.notification__bell-icon + %p + - if params[:type] == 'all' + = t(".none_filtered") + - else + = t(".none") - else - @notifications.each do |notification| .card