{% load signal_extras %} {% load event_extras %} {% load guardian_tags %} {% load utils %} {% load static %} {% load i18n %} {% load humanize %} {% if request.user|can_do_disposition_for:shift %} {% url "core:shift_disposition" shift.pk as disposition_url %} {% endif %} {# the popover html needs to stay with the shift box, #} {# as it might be rendered outside of the event detail view #}
{% translate "participants needed" %}
{% translate "enough participants" %}
{% translate "full" %}
{% translate "unit optional" %}
{% setvar request|participation_from_request:shift as participation %} {% include "core/fragments/shift_header.html" with shift=shift participation=participation %}
{% if shift.label %} {{ shift.label }} {% endif %} {% with stats=shift.get_signup_stats %} {{ stats.confirmed_count }}{% if stats.full_count %}/{{ stats.full_count }}{% endif %} {% if not stats.has_free %} {% elif not stats.missing %} {% else %} {% endif %} {% endwith %}
{% include shift.structure with own_participation=participation %}
{% collect_insert_html_signal "shift_info" shift=shift %}