From ae607ac8407a06f6a163f8457be301febb91d691 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Wed, 7 Sep 2022 23:29:29 +0200 Subject: [PATCH] Don't duplicate pagination on paging --- app/views/notifications/index.haml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/notifications/index.haml b/app/views/notifications/index.haml index 6369aab3..a068b4b6 100644 --- a/app/views/notifications/index.haml +++ b/app/views/notifications/index.haml @@ -17,9 +17,9 @@ .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")))