2022-09-07 15:44:12 -07:00
|
|
|
%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
|
2022-07-20 09:27:33 -07:00
|
|
|
.card-body
|
2023-01-04 07:12:43 -08:00
|
|
|
.d-flex
|
2022-09-07 15:44:12 -07:00
|
|
|
= render "notifications/type/#{notification.target.class.name.downcase.split('::').last}", notification: notification
|
2020-04-25 08:51:00 -07:00
|
|
|
|
2022-09-07 15:44:12 -07:00
|
|
|
- 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")
|
2022-07-06 16:32:58 -07:00
|
|
|
|
|
|
|
- provide(:title, generate_title(t(".title")))
|