Merge pull request #1391 from consul/polls-gezone-message

adds message before geozone tags on poll index
This commit is contained in:
Juanjo Bazán
2017-02-02 19:43:41 +01:00
committed by GitHub
3 changed files with 8 additions and 1 deletions

View File

@@ -9,7 +9,12 @@
<li><%= link_to question.title, question_path(question) %></li>
<% end %>
</ul>
<ul class="no-bullet margin-top tags">
<% if poll.geozones.any? %>
<p class="inline-block">
<small><%= t("polls.index.geozone_info") %></small>
</p>
<% end %>
<ul class="no-bullet tags inline-block">
<% poll.geozones.each do |g| %>
<li class="inline-block"><span><%= g.name %></span></li>
<% end %>

View File

@@ -405,6 +405,7 @@ en:
participate_button: "Participate in this poll"
no_geozone_restricted: "All city"
geozone_restricted: "Districts"
geozone_info: "Only can participate people in the Census of: "
show:
dates_title: "Participation dates"
cant_answer_not_logged_in: "You must %{signin} or %{signup} to participate."

View File

@@ -405,6 +405,7 @@ es:
participate_button: "Participar en esta votación"
no_geozone_restricted: "Toda la ciudad"
geozone_restricted: "Distritos"
geozone_info: "Solo pueden participar las personas empadronadas en: "
show:
dates_title: "Fechas de participación"
cant_answer_not_logged_in: "Necesitas %{signin} o %{signup} para participar."