2022-09-05 12:40:26 -07:00
|
|
|
= turbo_stream.append "notifications" do
|
|
|
|
- @notifications.each do |notification|
|
|
|
|
%li.card
|
|
|
|
.card-body
|
2023-01-04 07:12:43 -08:00
|
|
|
.d-flex
|
2022-09-05 12:40:26 -07:00
|
|
|
= render "notifications/type/#{notification.target.class.name.downcase.split('::').last}", notification: notification
|
|
|
|
|
|
|
|
= turbo_stream.update "paginator" do
|
|
|
|
- if @more_data_available
|
|
|
|
= button_to notifications_path(last_id: @notifications_last_id, type: params[:type]), class: "btn btn-light" do
|
|
|
|
= t("voc.load")
|
|
|
|
|