mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-12 12:43:36 +01:00
12 lines
461 B
Text
12 lines
461 B
Text
= turbo_stream.append "notifications" do
|
|
- @notifications.each do |notification|
|
|
%li.card
|
|
.card-body
|
|
.media
|
|
= 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")
|
|
|