Add empty hint for questions
This commit is contained in:
parent
3c3b9a7719
commit
32456a0f30
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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."
|
||||||
|
|
Loading…
Reference in New Issue