adds answer most voted text for screen readers
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user