Add empty hints for moderation views

This commit is contained in:
Andreas Nedbal 2023-12-10 21:55:46 +01:00 committed by Andreas Nedbal
parent 21ac519120
commit 0ef69eac69
3 changed files with 10 additions and 1 deletions

View File

@ -2,8 +2,11 @@
= render "header", user: @user
.container-lg.container--main
.container-lg.question-page
#entries
- if @inboxes.empty?
= render "shared/empty", icon: "fa fa-inbox", translation_key: ".moderation.inbox"
- @inboxes.each do |i|
= render "inbox/entry", i: i

View File

@ -1,4 +1,7 @@
#reports
- if @reports.empty?
= render "shared/empty", icon: "fa-regular fa-smile-beam", translation_key: ".moderation.reports"
- @reports.each do |r|
= render "moderation/moderationbox", report: r

View File

@ -578,6 +578,9 @@ en:
questions: "This user hasn't asked any questions yet."
follower: "This user has no followers."
friend: "This user is not following anyone."
moderation:
reports: "There are no open reports right now!"
inbox: "This users inbox is empty."
formatting:
body_html: |
<p>%{app_name} uses <b>Markdown</b> for formatting</p>