Add empty hint for home timelines

This commit is contained in:
Andreas Nedbal 2023-12-10 21:56:48 +01:00 committed by Andreas Nedbal
parent b2220cf38b
commit 3c3b9a7719
2 changed files with 9 additions and 0 deletions

View File

@ -1,6 +1,9 @@
#timeline{ data: { controller: "navigation" } }
%button.d-none{ data: { hotkey: "j", action: "navigation#down" } }
%button.d-none{ data: { hotkey: "k", action: "navigation#up" } }
- if @timeline.empty?
= render "shared/empty", type: "timeline"
- @timeline.each do |answer|
= render "answerbox", a: answer

View File

@ -581,6 +581,12 @@ en:
moderation:
reports: "There are no open reports right now!"
inbox: "This users inbox is empty."
timeline:
heading: "Your feed is empty!"
text: "Start answering questions or follow some people to fill your feed with answers."
actions:
inbox: "Go to your inbox"
public: "Go to the public timeline"
inbox:
heading: "Your inbox is empty!"
text: "To start answering, generate a question or share your profile on other sites to get questions."