<%= back_link_to %> <%= link_to t('admin.questions.show.edit_question'), edit_admin_question_path(@question), class: "button hollow float-right" %>

<%= t("admin.questions.show.question") %>
<%= @question.title %>

<%= t("admin.questions.show.author") %>
<%= link_to @question.author.name, user_path(@question.author) %>

<% if @question.proposal.present? %>

<%= t("admin.questions.show.proposal") %>
<%= link_to @question.proposal.title, proposal_path(@question.proposal) %>

<% end %>
<%= link_to t("admin.questions.show.add_answer"), new_admin_question_answer_path(@question), class: "button float-right" %>
<% @question.question_answers.each do |answer| %> <% end %>
<%= t('admin.questions.show.valid_answers') %>
<%= t("admin.questions.show.answers.title") %> <%= t("admin.questions.show.answers.description") %> <%= t("admin.questions.show.answers.images") %> <%= t("admin.questions.show.answers.documents") %> <%= t("admin.questions.show.answers.videos") %>
<%= link_to answer.title, admin_answer_path(answer) %> <%= answer.description %> (<%= 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_answer_documents_path(answer) %>
(<%= answer.videos.count %>)
<%= link_to t("admin.questions.show.answers.video_list"), admin_answer_videos_path(answer) %>
<% if @question.video_url.present? %>

<%= t("admin.questions.show.video_url") %>
<%= @question.video_url %>

<% end %>