This way we remove a bit of duplication. These changes also affect the way geozones are rendered in a couple of minor ways, making them more consistent: * No empty list of geozones is rendered when there are no geozones (before these changes, an empty list was rendered in the index action but not in the show action) * The text clarifying the geozone restriction is always shown (before these changes, it was shown in the index action but not in the show action) We've added tests for these cases.
10 lines
186 B
Plaintext
10 lines
186 B
Plaintext
<p>
|
|
<small><%= t("polls.index.geozone_info") %></small>
|
|
</p>
|
|
|
|
<ul class="tags">
|
|
<% poll.geozones.each do |geozone| %>
|
|
<li><span><%= geozone.name %></span></li>
|
|
<% end %>
|
|
</ul>
|