mysociety/alaveteli

View on GitHub
app/views/alaveteli_pro/info_request_batches/_authority_list.html.erb

Summary

Maintainability
Test Coverage
<%# This template should be identical to _authority_list.text.erb, except
    that the public body names aren't marked as html_safe, so that they get
    escaped by our translation helpers. %>
<% if public_bodies.size > 0 %>
<% example_body_names = public_bodies.take(2).map(&:name) %>
<%= n_('{{count}} recipient, {{first_public_body}}',
       '{{count}} recipients, including {{first_public_body}} and {{second_public_body}}',
       public_bodies.size,
       count: public_bodies.size,
       first_public_body: example_body_names.first,
       second_public_body: example_body_names.second) %>
<% else %>
<%= _("No bodies selected") %>
<% end %>