Add 'tags' to event model. Add a dataimport system - currently for MaxMind zip files
This commit is contained in:
@@ -150,7 +150,13 @@
|
||||
</div>
|
||||
<div class="mt-1 text-sm text-gray-500">
|
||||
<%= policy.policy_type.humanize %> policy targeting
|
||||
<% if policy.targets.length > 3 %>
|
||||
<% if policy.country_policy? && policy.targets.any? %>
|
||||
<% if policy.targets.length > 3 %>
|
||||
<%= policy.targets.length %> countries
|
||||
<% else %>
|
||||
<%= policy.targets.map { |code| CountryHelper.display_with_flag(code) }.join(', ') %>
|
||||
<% end %>
|
||||
<% elsif policy.targets.length > 3 %>
|
||||
<%= policy.targets.length %> items
|
||||
<% else %>
|
||||
<%= policy.targets.join(', ') %>
|
||||
|
||||
Reference in New Issue
Block a user