<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%> <% content_for(:fixed_position_cta_hidden) {'hidden'} %> <%= content_for :stylesheets do %> <%= stylesheet_link_tag 'campaigns/index/page' %> <% end %> <%= content_for :javascripts do %> <%= IncludeAsset.js '/client/js/campaigns/index/page.js' %> <% end %> <%= render 'components/header', icon_class: 'icon-thermometer-medium', title: 'Campaigns', profile: @nonprofit, has_mosaic: true %>
<% if current_user %> New Campaign <% end %> <% if @active_campaigns.empty? %>

No active campaigns

<% else %>

Active Campaigns

<%= render 'campaigns/campaigns_table', campaigns: @active_campaigns %>
<% end %> <% if @past_campaigns.empty? %>

No past campaigns

<% else %>

Past Campaigns

<%= render 'campaigns/campaigns_table', campaigns: @past_campaigns %>
<% end %> <% if current_nonprofit_user? %> <% if @unpublished_campaigns.empty?%>

No unpublished campaigns

<% else %>

Unpublished Campaigns

Unpublished campaigns don't get listed on your nonprofit profile page or on this page for non campaign editors. However, you can still share the link to an unpublished campaign with anyone, which can be helpful for getting feedback when setting up your campaign.

<%= render 'campaigns/campaigns_table', campaigns: @unpublished_campaigns %>
<% end %> <% if @deleted_campaigns.empty?%>

No deleted campaigns

<% else %>

Deleted Campaigns

Deleted campaigns are only accessible to campaign editors.

<%= render 'campaigns/campaigns_table', campaigns: @deleted_campaigns %>
<% end %> <% end %>
<% if current_user %> <%= render 'campaigns/new_modal' %> <% end %>