<%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%> <%= content_for(:title_prefix) {"#{@event.name} - #{@event.nonprofit.name}".html_safe} %> <%= content_for(:meta_description) {@event.summary.html_safe} %> <%= content_for(:stylesheets) {stylesheet_link_tag 'events/show/page'} %> <% content_for(:fixed_position_cta_hidden) {'hidden'} %> <% @brand_color = @nonprofit.brand_color ? @nonprofit.brand_color : nil %> <%= content_for :facebook_tags do %> " /> <% end %> <%= content_for :twitter_tags do %> " /> <% end %> <%= content_for :javascripts do %> <%= render 'common/froala' if current_event_editor? %> <%= render 'schema', event: @event, url: @url %> <%= javascript_pack_tag 'i18n', 'page__events__show' %> <% end %> <%= content_for :head do %> <% end %> <% if current_event_editor? %> <%= render 'admin_top_nav' %> <% end %> <%= render 'components/fundraising_pages/header', image_url: @event_background_image, is_editor: current_event_editor?, hide_title: @event.hide_title, header_content_partial: 'header_content', banner_image_url: nil %> <%= render 'components/preview_mode_notification' %>
<% if Time.now < @event.end_datetime %> <% end %> <%= render 'date_time' %> <%= render 'location' %> <%= render 'event_metrics' if (@event.show_total_raised || @event.show_total_count) %>
<%= render 'organizer' %> <% unless @event.hide_activity_feed %>
<%= render 'components/activity_feed' %>
<% end %>
<%= raw(@event.body) %>
<% unless @event.hide_activity_feed %>
<%= render 'components/activity_feed' %>
<% end %>
<% if current_event_editor? %> <%= render 'settings_modal' %> <%= render 'events/discounts/manage_modal' %> <%= render 'events/discounts/create_or_edit_modal' %> <%= render 'ticket_levels/manage_modal' %> <%= render 'ticket_levels/create_or_edit_modal' %> <%= render 'components/upload_background_image', end_point: nonprofit_event_path(@nonprofit, @event), image_url: @event_background_image, input_name: 'event[background_image]' %> <%= render 'components/custom_receipt_modal', title: 'Ticket Email Message', type: 'event', path: nonprofit_event_path(@nonprofit, @event), key: 'event[receipt_message]', text: @event.receipt_message %> <%= render 'components/duplicate_fundraiser_modal', type: 'event' %> <% end %> <%= render 'components/share_modal', name: @event.name, type: 'event' %> <%= render 'nonprofits/donate/modal' %> <%= render 'tickets/new_modal', profile: current_user ? current_user.profile : nil %> <%= render 'contact_organizer_modal' %> <%= render 'common/email_share_modal', fundraiser: @event.name, fundraiser_url: @url %>