From b2220cf38ba32b3fa53127c5d74a638394be5fc0 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 10 Dec 2023 21:56:23 +0100 Subject: [PATCH] Add empty hint for inbox --- app/views/inbox/show.html.haml | 2 +- config/locales/views.en.yml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/inbox/show.html.haml b/app/views/inbox/show.html.haml index 802127ee..8299b6ce 100644 --- a/app/views/inbox/show.html.haml +++ b/app/views/inbox/show.html.haml @@ -3,7 +3,7 @@ = render "inbox/entry", i: - if @inbox.empty? - %p.empty= t(".empty") + = render "shared/empty", type: "inbox" - if @more_data_available .d-flex.justify-content-center#paginator diff --git a/config/locales/views.en.yml b/config/locales/views.en.yml index 493483d0..09224e69 100644 --- a/config/locales/views.en.yml +++ b/config/locales/views.en.yml @@ -581,6 +581,9 @@ en: moderation: reports: "There are no open reports right now!" 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: body_html: |

%{app_name} uses Markdown for formatting