Add empty hints for moderation views
This commit is contained in:
parent
21ac519120
commit
0ef69eac69
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue