diff --git a/app/views/question/show.html.haml b/app/views/question/show.html.haml index cb24fbd1..542b7726 100644 --- a/app/views/question/show.html.haml +++ b/app/views/question/show.html.haml @@ -7,6 +7,9 @@ #answers{ data: { controller: "navigation" } } %button.d-none{ data: { hotkey: "j", action: "navigation#down" } } %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| = render "answerbox", a:, show_question: false diff --git a/config/locales/views.en.yml b/config/locales/views.en.yml index e8668906..d9afbd66 100644 --- a/config/locales/views.en.yml +++ b/config/locales/views.en.yml @@ -581,6 +581,7 @@ en: moderation: reports: "There are no open reports right now!" inbox: "This users inbox is empty." + question: "No one answered this question yet." timeline: heading: "Your feed is empty!" text: "Start answering questions or follow some people to fill your feed with answers."