2022-06-19 15:59:47 -07:00
|
|
|
- provide(:title, generate_title(t(".title", user: @user.screen_name)))
|
|
|
|
|
2023-12-10 12:53:44 -08:00
|
|
|
= render "header", user: @user
|
2022-06-23 12:57:41 -07:00
|
|
|
|
2023-12-10 12:55:46 -08:00
|
|
|
.container-lg.question-page
|
2022-09-07 15:44:00 -07:00
|
|
|
#entries
|
2023-12-10 12:55:46 -08:00
|
|
|
- if @inboxes.empty?
|
|
|
|
= render "shared/empty", icon: "fa fa-inbox", translation_key: ".moderation.inbox"
|
|
|
|
|
2022-09-07 15:44:00 -07:00
|
|
|
- @inboxes.each do |i|
|
|
|
|
= render "inbox/entry", i: i
|
2022-09-04 14:22:51 -07:00
|
|
|
|
2022-09-07 15:44:00 -07:00
|
|
|
- if @more_data_available
|
2022-10-25 12:52:58 -07:00
|
|
|
.d-flex.justify-content-center#paginator
|
2023-01-21 10:18:31 -08:00
|
|
|
= button_to t("voc.load"), mod_inbox_index_path(@user),
|
|
|
|
class: "btn btn-light",
|
|
|
|
method: :get,
|
|
|
|
params: { last_id: @inbox_last_id },
|
2023-03-19 06:42:01 -07:00
|
|
|
data: { controller: :hotkey, hotkey: "." },
|
2023-01-21 10:18:31 -08:00
|
|
|
form: { data: { turbo_stream: true } }
|