Retrospring/app/views/notifications/index.html.haml

29 lines
958 B
Plaintext

%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
.card-body
.d-flex
= 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 t("voc.load"), notifications_path(type: params[:type]),
class: "btn btn-light",
method: :get,
params: { last_id: @notifications_last_id },
data: { controller: :hotkey, hotkey: "." },
form: { data: { turbo_stream: true } }
- provide(:title, generate_title(t(".title")))