diff --git a/app/views/admin/poll/questions/answers/documents.html.erb b/app/views/admin/poll/questions/answers/documents.html.erb index 17c6f52a3..28b55a2a3 100644 --- a/app/views/admin/poll/questions/answers/documents.html.erb +++ b/app/views/admin/poll/questions/answers/documents.html.erb @@ -1,8 +1,9 @@ -
<%= link_to @question.poll.name, admin_poll_path(@question.poll) %> > <%= link_to @question.title, admin_question_path(@question) %> > <%= @answer.title %>
+| + | <%= t('admin.questions.show.valid_answers') %> <%= link_to t("admin.questions.show.add_answer"), new_admin_question_answer_path(@question), @@ -41,8 +41,9 @@ | |||||
|---|---|---|---|---|---|---|
| <%= t("admin.questions.show.answers.title") %> | -<%= t("admin.questions.show.answers.description") %> | -<%= t("admin.questions.show.answers.images") %> | +<%= t("admin.questions.show.answers.description") %> | +<%= t("admin.questions.show.answers.images") %> | +<%= t("admin.questions.show.answers.documents") %> | <%= answer.title %> | <%= answer.description %> |
- (<%= answer.images.count %>) + (<%= answer.images.count %>) + <%= link_to t("admin.questions.show.answers.images_list"), admin_answer_images_path(answer) %> |
+
+ (<%= answer.documents.count rescue 0 %>)
+ + <%= link_to t("admin.questions.show.answers.documents_list"), + admin_question_answer_documents_path(@question, answer) %> + |
<% end %>