Includes reason for not being able to participate in poll index
This commit is contained in:
@@ -28,10 +28,12 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="small-12 medium-6 column text-right">
|
<div class="small-12 medium-6 column text-right">
|
||||||
<%= link_to t("polls.index.button"),
|
<% if can? :answer, poll %>
|
||||||
poll,
|
<%= link_to t("polls.index.participate_button"), poll, class: "button" %>
|
||||||
class: "button",
|
<% else %>
|
||||||
title: t("polls.index.button") + ": " + (poll.name) %>
|
<%= render 'polls/reasons_for_not_answering', poll: poll %>
|
||||||
|
<%= link_to t("polls.index.view_button"), poll, class: "button info small" %>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -401,7 +401,8 @@ en:
|
|||||||
incoming: "Incoming"
|
incoming: "Incoming"
|
||||||
expired: "Expired"
|
expired: "Expired"
|
||||||
title: "Polls"
|
title: "Polls"
|
||||||
button: "Participate in this poll"
|
participate_button: "Participate in this poll"
|
||||||
|
view_button: "View details about this poll"
|
||||||
show:
|
show:
|
||||||
dates_title: "Participation dates"
|
dates_title: "Participation dates"
|
||||||
cant_answer_not_logged_in: "You must %{signin} or %{signup} to participate."
|
cant_answer_not_logged_in: "You must %{signin} or %{signup} to participate."
|
||||||
|
|||||||
@@ -401,7 +401,8 @@ es:
|
|||||||
incoming: "Próximamente"
|
incoming: "Próximamente"
|
||||||
expired: "Terminadas"
|
expired: "Terminadas"
|
||||||
title: "Votaciones"
|
title: "Votaciones"
|
||||||
button: "Participar en esta votación"
|
participate_button: "Participar en esta votación"
|
||||||
|
view_button: "Ver detalles de la votación"
|
||||||
show:
|
show:
|
||||||
dates_title: "Fechas de participación"
|
dates_title: "Fechas de participación"
|
||||||
cant_answer_not_logged_in: "Necesitas %{signin} o %{signup} para participar."
|
cant_answer_not_logged_in: "Necesitas %{signin} o %{signup} para participar."
|
||||||
|
|||||||
Reference in New Issue
Block a user