Add empty hint for inbox

This commit is contained in:
Andreas Nedbal 2023-12-10 21:56:23 +01:00 committed by Andreas Nedbal
parent 0ef69eac69
commit b2220cf38b
2 changed files with 4 additions and 1 deletions

View File

@ -3,7 +3,7 @@
= render "inbox/entry", i: = render "inbox/entry", i:
- if @inbox.empty? - if @inbox.empty?
%p.empty= t(".empty") = render "shared/empty", type: "inbox"
- if @more_data_available - if @more_data_available
.d-flex.justify-content-center#paginator .d-flex.justify-content-center#paginator

View File

@ -581,6 +581,9 @@ en:
moderation: moderation:
reports: "There are no open reports right now!" reports: "There are no open reports right now!"
inbox: "This users inbox is empty." inbox: "This users inbox is empty."
inbox:
heading: "Your inbox is empty!"
text: "To start answering, generate a question or share your profile on other sites to get questions."
formatting: formatting:
body_html: | body_html: |
<p>%{app_name} uses <b>Markdown</b> for formatting</p> <p>%{app_name} uses <b>Markdown</b> for formatting</p>