From 83e0f7a7119e9ae7692dfd69ae32d4302ea122b8 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Wed, 20 Jul 2022 17:00:15 +0200 Subject: [PATCH] Place notifications in individual cards --- app/views/notifications/index.haml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/app/views/notifications/index.haml b/app/views/notifications/index.haml index 75871f42..b999f05c 100644 --- a/app/views/notifications/index.haml +++ b/app/views/notifications/index.haml @@ -1,16 +1,16 @@ -.card - %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") - - else - - @notifications.each do |notification| +%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") + - else + - @notifications.each do |notification| + .card %li.list-group-item .media = render "notifications/type/#{notification.target.class.name.downcase.split('::').last}", notification: notification