<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%> <% campaigns.each do |campaign|%> <% metric = QueryCampaignMetrics.on_donations(campaign.id) %> <% end %>
<% if campaign.main_image.attached?%> <%= image_tag campaign.main_image_by_size(:normal) %> <% end %> <% if campaign.end_datetime %>

Until: <%= Format::Date.full(campaign.end_datetime, campaign.nonprofit.timezone) %>

<% end %>
<%= campaign.name %>

<%= campaign.summary ? strip_tags(campaign.summary) : strip_tags(campaign.tagline) %>

<% if campaign.show_total_count %> <%= metric['supporters_count'] %> supporters <% end %> <% if campaign.show_total_raised %> <%= print_currency metric['total_raised'], campaign.nonprofit.currency_symbol %> raised <% end %>