{% extends '@BidcozFrontend/organization.html.twig' %}
{% set campaignParams = {orgSlug: organization.slug, campaignSlug: campaign.slug} %}
{% block title %}CausePilot - {{ campaign.name }} - {{ organization.name }}{% endblock %}
{% block beforeContent %}
{{ parent() }}
<div class="breadcrumbs">
<a href="{{ path('campaign_home', campaignParams) }}" class="d-flex align-items-center">
{% include '@BidcozCore/Components/icon.html.twig' with { icon: 'arrow-left', class: 'icon-md' } %}
Back
</a>
</div>
{% endblock %}
{% block sidebar '' %}
{% block sponsorships %}
{# If the have sponsorships enabled. #}
{% if campaign.hasSponsorship and is_granted('SPONSORSHIP', organization) %}
{% set sponsorships = campaign_sponsorships(campaign) %}
{# If the have any actual sponsorships. #}
{% if sponsorships|length %}
<div class="d-flex align-items-center mb-4">
<h4 class="my-0 flex-grow-1 d-block">Featured Sponsors</h4>
<a href="{{ path('all_sponsors', campaignParams) }}" class="flex-shrink-0 d-flex align-items-center">
<strong>View All Sponsors</strong>
<i class="fas fa-arrow-right ml-1"></i>
</a>
</div>
{% include '@BidcozCore/Layout/Blocks/sponsorship/main.html.twig' with { sponsorships: sponsorships } %}
{% endif %}
{% endif %}
{% endblock %}
{% block shareButtons %}
<script defer src="https://static.addtoany.com/menu/page.js"></script>
{% endblock %}
{% block stylesheets %}
{{ parent() }}
{% if organization is defined or campaign is defined %}
<link rel="stylesheet" href="/css/manage.css?v={{ asset_version('') }}">
{% endif %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src="/components/font-awesome/js/all.js"></script>
<script src="/js/clipboard.min.js"></script>
{% endblock %}