<%- # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later # Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE -%> <% 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 %>

<%= t('campaigns.until_end_datetime', end_datetime: 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 %> <%= t('campaigns.total_count_of_supporters', supporters_count: metric['supporters_count'] ) %> <% end %> <% if campaign.show_total_raised %> <%= t('campaigns.total_amount_raised_html', total_raised: print_currency(metric['total_raised'], campaign.nonprofit.currency_symbol))%> <% end %>