From 1ac6475fb2d89f1ee6669c73dbff183ecac551c9 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Thu, 8 Sep 2022 00:44:12 +0200 Subject: [PATCH] Remove turbo-frame tag in notifications view --- app/views/notifications/index.haml | 41 +++++++++++++++--------------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/app/views/notifications/index.haml b/app/views/notifications/index.haml index a068b4b6..3ba9d82a 100644 --- a/app/views/notifications/index.haml +++ b/app/views/notifications/index.haml @@ -1,25 +1,24 @@ -= turbo_frame_tag "notification" do - %ul.list-unstyled#notifications - - if @notifications.count.zero? - %li.card.text-center +%ul.list-unstyled#notifications + - if @notifications.count.zero? + %li.card.text-center + .card-body + .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| + %li.card .card-body - .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| - %li.card - .card-body - .media - = render "notifications/type/#{notification.target.class.name.downcase.split('::').last}", notification: notification + .media + = render "notifications/type/#{notification.target.class.name.downcase.split('::').last}", notification: notification - - if @more_data_available - .d-flex.justify-content-center.justify-content-sm-start#paginator - = button_to notifications_path(last_id: @notifications_last_id, type: params[:type]), class: "btn btn-light" do - = t("voc.load") +- if @more_data_available + .d-flex.justify-content-center.justify-content-sm-start#paginator + = button_to notifications_path(last_id: @notifications_last_id, type: params[:type]), class: "btn btn-light" do + = t("voc.load") - provide(:title, generate_title(t(".title")))