<%= content_for(:title_prefix) { "#{@campaign.name} - #{@campaign.nonprofit.name} | ".html_safe } %> <% content_for(:fixed_position_cta_hidden) {'hidden'} %> <%= content_for(:meta_description) {raw @campaign.summary} %> <% @brand_color = @nonprofit.brand_color ? @nonprofit.brand_color : nil %> <%= content_for :javascripts do %> <%= render 'schema', campaign: @campaign, url: @url %> <%= render 'common/froala' if current_campaign_editor? %> <%= IncludeAsset.js '/client/js/campaigns/show/page.js' %> <% end %> <%= content_for :stylesheets do %> <%= stylesheet_link_tag 'campaigns/show/page' %> <%= stylesheet_link_tag 'campaigns/edit/page' %> <% end %> <% content_for :head do %> <% end %> <%= content_for :facebook_tags do %> <% end %> <%= content_for :twitter_tags do %> <% end %> <% if current_campaign_editor? %> <%= render 'admin_top_nav' %> <% end %> <%= render '/components/trial_bar' if QueryBillingSubscriptions.currently_in_trial?(@nonprofit.id) %> <%= render 'components/fundraising_pages/header', image_url: @campaign_background_image, is_editor: current_campaign_editor?, hide_title: @campaign.hide_title && @campaign_background_image, header_content_partial: 'header_content' %> <%= render 'components/preview_mode_notification' %>
<%= render 'campaign_media' %>
<% if current_campaign_editor? %> <% end %>
<% unless current_campaign_editor? %> <% end %>
<%= raw @campaign.body %>
<% unless @campaign.hide_activity_feed %>
<%= render 'components/activity_feed' %>
<% end %>
<% if current_campaign_editor? %> <%= render 'settings_modal' %> <%= render 'video_modal' %> <%= render 'donations/campaign_new_offline_modal' %> <%= render 'campaign_gift_options/manage_modal'%> <%= render 'campaign_gift_options/form_modal'%> <%= render 'components/upload_background_image', end_point: "/nonprofits/#{@nonprofit.id}/campaigns/#{@campaign.id}", image_url: @campaign_background_image, input_name: 'campaign[background_image]' %> <%= render 'components/custom_receipt_modal', title: 'Campaign Receipt Message', type: 'campaign', path: nonprofit_campaign_path(@nonprofit, @campaign), key: 'campaign[receipt_message]', text: @campaign.receipt_message %> <%= render 'components/duplicate_fundraiser_modal', type: 'campaign' %> <% end %> <%= render 'components/share_modal', name: @campaign.name, type: 'campaign' %> <%= render 'common/email_share_modal', fundraiser: @campaign.name, fundraiser_url: @url %>