From 78ed5a8bfc6003e8d67d9c065d30c2c64f739442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Tue, 13 Sep 2022 20:47:13 +0200 Subject: [PATCH] Use caption instead of tr to label the answers table We might change the style of this caption or remove it completely in the future. In the meantime, we use the right HTML tag for the task to give information regarding what the table is about, and that tag is ``. --- app/views/admin/poll/questions/show.html.erb | 23 +++++++++----------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/app/views/admin/poll/questions/show.html.erb b/app/views/admin/poll/questions/show.html.erb index 0c45f0234..33992f421 100644 --- a/app/views/admin/poll/questions/show.html.erb +++ b/app/views/admin/poll/questions/show.html.erb @@ -35,19 +35,16 @@ - - - - - - - - - - - + + + + + + + + + + <% @question.question_answers.each do |answer| %>
- <%= 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") %>
<%= 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") %>