Add empty hint for questions

This commit is contained in:
Andreas Nedbal 2023-12-10 21:57:05 +01:00 committed by Andreas Nedbal
parent 3c3b9a7719
commit 32456a0f30
2 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,9 @@
#answers{ data: { controller: "navigation" } } #answers{ data: { controller: "navigation" } }
%button.d-none{ data: { hotkey: "j", action: "navigation#down" } } %button.d-none{ data: { hotkey: "j", action: "navigation#down" } }
%button.d-none{ data: { hotkey: "k", action: "navigation#up" } } %button.d-none{ data: { hotkey: "k", action: "navigation#up" } }
- if @answers.empty?
= render "shared/empty", icon: "fa-regular fa-comments", translation_key: ".question"
- @answers.each do |a| - @answers.each do |a|
= render "answerbox", a:, show_question: false = render "answerbox", a:, show_question: false

View File

@ -581,6 +581,7 @@ 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."
question: "No one answered this question yet."
timeline: timeline:
heading: "Your feed is empty!" heading: "Your feed is empty!"
text: "Start answering questions or follow some people to fill your feed with answers." text: "Start answering questions or follow some people to fill your feed with answers."