2022-07-20 08:00:15 -07:00
|
|
|
%ul.list-group#notifications
|
|
|
|
- if @notifications.count.zero?
|
2022-07-20 08:14:16 -07:00
|
|
|
.card
|
|
|
|
%li.list-group-item.text-center
|
|
|
|
.notifications--none
|
|
|
|
%i.fa.fa-bell-o.notification__bell-icon
|
|
|
|
%p
|
|
|
|
- if params[:type] == 'all'
|
|
|
|
= t(".none_filtered")
|
|
|
|
- else
|
|
|
|
= t(".none")
|
2022-07-20 08:00:15 -07:00
|
|
|
- else
|
|
|
|
- @notifications.each do |notification|
|
|
|
|
.card
|
2020-04-26 06:26:55 -07:00
|
|
|
%li.list-group-item
|
|
|
|
.media
|
2022-07-08 15:07:57 -07:00
|
|
|
= render "notifications/type/#{notification.target.class.name.downcase.split('::').last}", notification: notification
|
2020-04-25 08:51:00 -07:00
|
|
|
|
2020-05-08 19:39:09 -07:00
|
|
|
- unless @notifications.count.zero?
|
|
|
|
= render 'shared/cursored_pagination_dummy', more_data_available: @more_data_available, last_id: @notifications_last_id, permitted_params: %i[type]
|
2020-04-25 08:51:00 -07:00
|
|
|
|
2020-05-08 19:39:09 -07:00
|
|
|
- if @more_data_available
|
2020-05-29 14:00:25 -07:00
|
|
|
.d-flex.justify-content-center.justify-content-sm-start
|
2020-05-29 11:37:47 -07:00
|
|
|
%button.btn.btn-light#load-more-btn{ type: :button, data: { last_id: @notifications_last_id } }
|
2022-07-06 16:15:03 -07:00
|
|
|
= t("voc.load")
|
2022-07-06 16:32:58 -07:00
|
|
|
|
|
|
|
- provide(:title, generate_title(t(".title")))
|