adds answer most voted text for screen readers

This commit is contained in:
decabeza
2017-10-20 18:35:03 +02:00
parent c13268718a
commit 5ebd630b27
3 changed files with 10 additions and 1 deletions

View File

@@ -22,7 +22,12 @@
<thead>
<tr>
<%- question.question_answers.each do |answer| %>
<th scope="col" <%= answer.most_voted? ? "class=win" : "" %>><%= answer.title %></th>
<th scope="col" <%= answer.most_voted? ? "class=win" : "" %>>
<% if answer.most_voted %>
<span class="show-for-sr"><%= t ("polls.show.results.most_voted_answer") %></span>
<% end %>
<%= answer.title %>
</th>
<% end %>
</tr>
</thead>

View File

@@ -513,6 +513,8 @@ en:
valid: "Valid"
white: "White votes"
null_votes: "Invalid"
results:
most_voted_answer: "Most voted answer: "
poll_questions:
create_question: "Create question"
show:

View File

@@ -513,6 +513,8 @@ es:
valid: "Válidos"
white: "En blanco"
null_votes: "Nulos"
results:
most_voted_answer: "Respuesta más votada: "
poll_questions:
create_question: "Crear pregunta para votación"
show: