<commit_before>{% extends "base.html" %}
{% load i18n rules react_follows thumbnail wagtailcore_tags meinberlin_project_tags offlineevent_tags contrib_tags ckeditor_tags %}

{% block title %}{{project.name}} &mdash; {{ block.super }}{% endblock %}

{% block extra_messages %}
    {{ block.super }}

    {% if project.is_draft %}
        <ul class="messages">
            <li class="alert alert--warning" role="alert">
                <div class="l-wrapper">
                    {% trans 'This project is in not published yet.' %}
                </div>
            </li>
        </ul>
    {% endif %}
{% endblock %}

{% block content %}
    <div class="project-header{% if project.image %} project-header--image{% endif %}" style="{% if view.project.image %}
                   background-image: url({{ project.image |thumbnail_url:'heroimage' }});
                   {% endif %}">
        <div class="l-wrapper">
            <div class="l-center-6">
                {% with container=project.containers.first %}
                    {% if container %}
                        <nav class="breadcrumbs u-spacer-bottom-double" aria-label="{% trans 'breadcrumbs' %}">
                            <ul>
                                <li>
                                    <a href="{{ container.get_absolute_url }}" data-embed-target="external">
                                        <i class="fa fa-arrow-left" aria-hidden="true"></i>
                                        {% blocktrans with name=container.name %}to project collection {{ name }}{% endblocktrans %}
                                    </a>
                                </li>
                            </ul>
                        </nav>
                    {% endif %}
                {% endwith %}
                <h1 class="project-header__title">{{ project.name }}</h1>
                <p class="project-header__description">{{ project.description }}</p>
            </div>
        </div>
        {% if project.image_copyright %}
            <div class="project-header__copyright copyright">© {{ project.image_copyright }}</div>
        {% endif %}
    </div>

    <div class="tablist tablist--left">
    <div class="l-wrapper">
        <div class="tablist__right">
            {% has_perm 'a4projects.change_project' request.user view.project as user_may_change %}
            {% if user_may_change %}
                <a href="{% url 'a4dashboard:project-edit' project_slug=project.slug %}" class="btn btn--light btn--small" data-embed-target="external">{% trans 'Edit' %}</a>
            {% endif %}
            {% if request.user.is_authenticated %}
                {% react_follows project %}
            {% endif %}
        </div>

            <nav class="nav" role="tablist">
                <a
                    id="tab-project-{{ project.pk }}-information"
                    class="tab"
                    data-toggle="tab"
                    href="#tabpanel-project-{{ project.pk }}-information"
                    role="tab"
                    aria-controls="tabpanel-project-{{ project.pk }}-information"
                    aria-expanded="false">
                    {% trans 'About the Project' %}
                </a>
                <a
                    id="tab-project-{{ project.pk }}-participation"
                    class="tab active"
                    data-toggle="tab"
                    href="#tabpanel-project-{{ project.pk }}-participation"
                    role="tab"
                    aria-controls="tabpanel-project-{{ project.pk }}-participation"
                    aria-expanded="true">
                    {% trans 'Participation' %}
                </a>
                <a
                    id="tab-project-{{ project.pk }}-result"
                    class="tab"
                    data-toggle="tab"
                    href="#tabpanel-project-{{ project.pk }}-result"
                    role="tab"
                    aria-controls="tabpanel-project-{{ project.pk }}-result"
                    aria-expanded="false">
                    {% trans 'Result' %}
                </a>
            </nav>
        </div>
    </div>

    <div
    class="tabpanel"
    id="tabpanel-project-{{ project.pk }}-information"
    role="tabpanel"
    aria-labelledby="tab-project-{{ project.pk }}-information"
    aria-expanded="false">
    <div class="l-wrapper">
        <div class="l-center-8">
            {{ project.information | transform_collapsibles | richtext }}
            {% if project.contact_name or project.contact_address_text or project.contact_email or project.contact_phone or project.contact_url or project.organisation.address or project.organisation.url %}
                <div class="l-tiles-2 u-top-divider">
                {% if project.contact_name or project.contact_address_text or project.contact_email or project.contact_phone or project.contact_url %}
                    <div>
                        <h3>{% trans 'Contact for questions' %}</h3>
                        {% if project.contact_name %}
                        <p>{{ project.contact_name }}</p>
                        {% endif %}
                        {% if project.contact_address_text %}
                        <p>{{ project.contact_address_text|linebreaks }}</p>
                        {% endif %}
                        {% if project.contact_phone %}
                        <p><strong>{% trans 'Telephone' %}: </strong>{{ project.contact_phone }}</p>
                        {% endif %}
                        {% if project.contact_email %}
                        <a class="btn btn--secondary" href="mailto:{{ project.contact_email }}">
                            {% trans 'Email' %}
                        </a>
                        {% endif %}
                        {% if project.contact_url %}
                        <a class="btn btn--secondary" target="_blank" href="{{ project.contact_url }}">
                            {% trans 'Website' %}
                        </a>
                        {% endif %}
                    </div>
                {% endif %}

                {% if project.organisation.address or project.organisation.url %}
                    <div>
                        <h3>{% trans 'Responsible body' %}</h3>
                        {% if project.organisation.address %}
                        <p>{{ project.organisation.name }}</p>
                        <p>{{ project.organisation.address|linebreaks }}</p>
                        {% endif %}
                        {% if project.organisation.url %}
                        <a class="btn btn--secondary" target="_blank" href="{{ project.organisation.url }}">
                            {% trans 'Website' %}
                        </a>
                        {% endif %}
                    </div>
                {% endif %}
                </div>
            {% endif %}
        </div>
    </div>
    </div>
    <div
    class="tabpanel active"
    id="tabpanel-project-{{ project.pk }}-participation"
    role="tabpanel"
    aria-labelledby="tab-project-{{ project.pk }}-participation"
    aria-expanded="true">

        <div class="l-wrapper timeline-carousel__wrapper">

            {% if view.display_timeline %}
                {% include "meinberlin_projects/includes/project_timeline-carousel.html" with dates=participation_dates %}
            {% endif %}
        {% if event %}
            <div class="l-center-6">
                <h2>{{ event.name }}</h2>
                <P>{{ event.description | safe}}</P>
            </div>
            {% elif view.is_project_view %}
            <div class="participation-tile__wrapper">
                <div class="participation-tile__list-container"><commit_msg>event picture: removing timeline wrapper div from wrapper entire page fixes #2380<commit_after>{% extends "base.html" %}
{% load i18n rules react_follows thumbnail wagtailcore_tags meinberlin_project_tags offlineevent_tags contrib_tags ckeditor_tags %}

{% block title %}{{project.name}} &mdash; {{ block.super }}{% endblock %}

{% block extra_messages %}
    {{ block.super }}

    {% if project.is_draft %}
        <ul class="messages">
            <li class="alert alert--warning" role="alert">
                <div class="l-wrapper">
                    {% trans 'This project is in not published yet.' %}
                </div>
            </li>
        </ul>
    {% endif %}
{% endblock %}

{% block content %}
    <div class="project-header{% if project.image %} project-header--image{% endif %}" style="{% if view.project.image %}
                   background-image: url({{ project.image |thumbnail_url:'heroimage' }});
                   {% endif %}">
        <div class="l-wrapper">
            <div class="l-center-6">
                {% with container=project.containers.first %}
                    {% if container %}
                        <nav class="breadcrumbs u-spacer-bottom-double" aria-label="{% trans 'breadcrumbs' %}">
                            <ul>
                                <li>
                                    <a href="{{ container.get_absolute_url }}" data-embed-target="external">
                                        <i class="fa fa-arrow-left" aria-hidden="true"></i>
                                        {% blocktrans with name=container.name %}to project collection {{ name }}{% endblocktrans %}
                                    </a>
                                </li>
                            </ul>
                        </nav>
                    {% endif %}
                {% endwith %}
                <h1 class="project-header__title">{{ project.name }}</h1>
                <p class="project-header__description">{{ project.description }}</p>
            </div>
        </div>
        {% if project.image_copyright %}
            <div class="project-header__copyright copyright">© {{ project.image_copyright }}</div>
        {% endif %}
    </div>

    <div class="tablist tablist--left">
    <div class="l-wrapper">
        <div class="tablist__right">
            {% has_perm 'a4projects.change_project' request.user view.project as user_may_change %}
            {% if user_may_change %}
                <a href="{% url 'a4dashboard:project-edit' project_slug=project.slug %}" class="btn btn--light btn--small" data-embed-target="external">{% trans 'Edit' %}</a>
            {% endif %}
            {% if request.user.is_authenticated %}
                {% react_follows project %}
            {% endif %}
        </div>

            <nav class="nav" role="tablist">
                <a
                    id="tab-project-{{ project.pk }}-information"
                    class="tab"
                    data-toggle="tab"
                    href="#tabpanel-project-{{ project.pk }}-information"
                    role="tab"
                    aria-controls="tabpanel-project-{{ project.pk }}-information"
                    aria-expanded="false">
                    {% trans 'About the Project' %}
                </a>
                <a
                    id="tab-project-{{ project.pk }}-participation"
                    class="tab active"
                    data-toggle="tab"
                    href="#tabpanel-project-{{ project.pk }}-participation"
                    role="tab"
                    aria-controls="tabpanel-project-{{ project.pk }}-participation"
                    aria-expanded="true">
                    {% trans 'Participation' %}
                </a>
                <a
                    id="tab-project-{{ project.pk }}-result"
                    class="tab"
                    data-toggle="tab"
                    href="#tabpanel-project-{{ project.pk }}-result"
                    role="tab"
                    aria-controls="tabpanel-project-{{ project.pk }}-result"
                    aria-expanded="false">
                    {% trans 'Result' %}
                </a>
            </nav>
        </div>
    </div>

    <div
    class="tabpanel"
    id="tabpanel-project-{{ project.pk }}-information"
    role="tabpanel"
    aria-labelledby="tab-project-{{ project.pk }}-information"
    aria-expanded="false">
    <div class="l-wrapper">
        <div class="l-center-8">
            {{ project.information | transform_collapsibles | richtext }}
            {% if project.contact_name or project.contact_address_text or project.contact_email or project.contact_phone or project.contact_url or project.organisation.address or project.organisation.url %}
                <div class="l-tiles-2 u-top-divider">
                {% if project.contact_name or project.contact_address_text or project.contact_email or project.contact_phone or project.contact_url %}
                    <div>
                        <h3>{% trans 'Contact for questions' %}</h3>
                        {% if project.contact_name %}
                        <p>{{ project.contact_name }}</p>
                        {% endif %}
                        {% if project.contact_address_text %}
                        <p>{{ project.contact_address_text|linebreaks }}</p>
                        {% endif %}
                        {% if project.contact_phone %}
                        <p><strong>{% trans 'Telephone' %}: </strong>{{ project.contact_phone }}</p>
                        {% endif %}
                        {% if project.contact_email %}
                        <a class="btn btn--secondary" href="mailto:{{ project.contact_email }}">
                            {% trans 'Email' %}
                        </a>
                        {% endif %}
                        {% if project.contact_url %}
                        <a class="btn btn--secondary" target="_blank" href="{{ project.contact_url }}">
                            {% trans 'Website' %}
                        </a>
                        {% endif %}
                    </div>
                {% endif %}

                {% if project.organisation.address or project.organisation.url %}
                    <div>
                        <h3>{% trans 'Responsible body' %}</h3>
                        {% if project.organisation.address %}
                        <p>{{ project.organisation.name }}</p>
                        <p>{{ project.organisation.address|linebreaks }}</p>
                        {% endif %}
                        {% if project.organisation.url %}
                        <a class="btn btn--secondary" target="_blank" href="{{ project.organisation.url }}">
                            {% trans 'Website' %}
                        </a>
                        {% endif %}
                    </div>
                {% endif %}
                </div>
            {% endif %}
        </div>
    </div>
    </div>
    <div
    class="tabpanel active"
    id="tabpanel-project-{{ project.pk }}-participation"
    role="tabpanel"
    aria-labelledby="tab-project-{{ project.pk }}-participation"
    aria-expanded="true">

        <div class="l-wrapper">
            <div class="timeline-carousel__wrapper">
            {% if view.display_timeline %}
                {% include "meinberlin_projects/includes/project_timeline-carousel.html" with dates=participation_dates %}
            {% endif %}
            </div>
        {% if event %}
            <div class="l-center-6">
                <h2>{{ event.name }}</h2>
                <P>{{ event.description | safe}}</P>
            </div>
            {% elif view.is_project_view %}
            <div class="participation-tile__wrapper">
                <div class="participation-tile__list-container">
{'fraction_non_alphanumeric': 0.13824057450628366, 'fraction_numerical': 0.0023082841754295974, 'mean_word_length': 1.351779252110977, 'pattern_counts': {'":': 0, '<': 181, '<?xml version=': 0, '>': 181, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '535477', 'n_tokens_mistral': 4297, 'n_tokens_neox': 3796, 'n_words': 782}