%- # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -%> <% content_for(:title_prefix) {"#{@nonprofit.name} - #{@nonprofit.city}, #{@nonprofit.state_code} | ".html_safe} %> <% content_for(:fixed_position_cta_hidden) {'hidden'} %> <% content_for(:meta_description) {@nonprofit.summary} %> <% @brand_color = @nonprofit.brand_color ? @nonprofit.brand_color : nil %> <%= content_for :facebook_tags do %> <% end %> <%= content_for :twitter_tags do %> <% end %> <%= content_for :stylesheets do %> <%= stylesheet_link_tag 'nonprofits/show/page' %> <% end %> <%= content_for :javascripts do %> <%= render 'schema', npo: @nonprofit %> <%= render 'common/froala' if current_nonprofit_user? %> <%= IncludeAsset.js '/client/js/nonprofits/show/page.js' %> <%= IncludeAsset.js '/client/js/nonprofits/edit/page.js' %> <% # needs to be after the page load because that's when I18n is included %> <% end %> <% content_for :head do %> <% end %> <% if current_nonprofit_user? %> <%= render 'admin_top_nav' %> <% end %> <%= render '/components/trial_bar' if nonprofit_in_trial?(@nonprofit.id) %> <%= render 'components/fundraising_pages/header', image_url: @nonprofit_background_image, is_editor: current_nonprofit_user?, header_content_partial: 'header_content', banner_image_url: nil %> <%= render 'components/preview_mode_notification' %> <%= render 'actions' %> <%= render 'overview_media' %> <%= render 'services_and_impact' %> <%= render 'components/todos', title: 'profile' if current_nonprofit_user? %> <%= render 'actions' %> <%= render 'achievements' %> <%= render 'contact' %> <%= t("organization_page.promote") %> <%= render 'common/social_buttons' %> <%= render 'listings' %> <% if current_role?(:super_admin) %> <%= render 'admin_sidebar' %> <%= render 'roles/new_modal' %> <%= render 'components/admin_button' %> <% end %> <%= render 'components/share_modal', name: @nonprofit.name, type: 'nonprofit' %> <%= render 'nonprofits/donate/modal' %> <%= render 'common/email_share_modal', fundraiser: @nonprofit.name, fundraiser_url: @url %> <%= render 'settings_modals' if current_nonprofit_user? %> <% if current_user %> <%= render 'campaigns/new_modal' %> <%= render 'events/new_modal' %> <% end %>