83 lines
4.2 KiB
HTML
83 lines
4.2 KiB
HTML
{# bs5ok #}
|
|
{% load person_filters %}
|
|
<div id="session{{ session.pk }}"
|
|
class="session {% if not session.group.parent.scheduling_color %}untoggleable-by-parent{% endif %} {% if session.parent_acronym %}parent-{{ session.parent_acronym }}{% endif %} purpose-{{ session.purpose.slug }} {% if session.readonly %}readonly{% endif %} {% if not session.on_agenda %}off-agenda{% endif %}"
|
|
style="width:{{ session.layout_width }}em;"
|
|
data-duration="{{ session.requested_duration.total_seconds }}"
|
|
{% if session.attendees != None %} data-attendees="{{ session.attendees }}"{% endif %}
|
|
data-type="{{ session.type.slug }}">
|
|
<div class="session-label {% if session.group and session.group.is_bof %}bof-session{% endif %}">
|
|
{{ session.scheduling_label }}
|
|
{% if session.group and session.group.is_bof %}<span class="bof-tag">BOF</span>{% endif %}
|
|
</div>
|
|
<div>
|
|
<span class="requested-duration">{{ session.requested_duration_in_hours|floatformat }}h</span>
|
|
{% if session.attendees != None %}<span class="attendees">· {{ session.attendees }}</span>{% endif %}
|
|
{% if session.comments %}<span class="comments"><i class="bi bi-chat-o"></i></span>{% endif %}
|
|
{% if session.constrained_sessions %}
|
|
<span class="constraints">
|
|
{% for label, sessions in session.constrained_sessions %}
|
|
<span data-sessions="{{ sessions|join:"," }}">{{ label }}</span>
|
|
{% endfor %}
|
|
</span>
|
|
{% endif %}
|
|
<div class="past-flag">Past</div>
|
|
</div>
|
|
{# the JS uses this to display session information in the bottom panel #}
|
|
<div class="session-info">
|
|
<div class="title">
|
|
<strong>
|
|
<span class="time float-end"></span>
|
|
{{ session.scheduling_label }} · {{ session.requested_duration_in_hours }}h
|
|
{% if session.purpose_label %}· {{ session.purpose_label }}{% endif %}
|
|
{% if session.attendees != None %}· {{ session.attendees }} <i class="bi bi-person"></i>{% endif %}
|
|
</strong>
|
|
</div>
|
|
{% if session.group %}
|
|
<div>
|
|
<a href="{{ session.group.about_url }}">{{ session.group.name }}</a>
|
|
{% if session.group.parent %}
|
|
·
|
|
<a class="session-parent" href="{{ session.group.parent.about_url }}">{{ session.group.parent.acronym }}</a>
|
|
{% endif %}
|
|
{% if not session.on_agenda %}· <i>off agenda</i>{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
{% if session.requested_by_person %}
|
|
<div>
|
|
<i title="Requested by" class="bi bi-person-circle"></i> {% person_link session.requested_by_person %}
|
|
{% if session.requested_time %}({{ session.requested_time|date:"Y-m-d" }}){% endif %}
|
|
</div>
|
|
{% endif %}
|
|
{% if session.resources.all %}
|
|
<div>
|
|
Resources:
|
|
{% for r in session.resources.all %}
|
|
{{ r.name }}
|
|
{% if not forloop.last %},{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% if session.comments %}<div class="comments">{{ session.comments|linebreaksbr }}</div>{% endif %}
|
|
{% if session.formatted_constraints %}
|
|
<div class="formatted-constraints">
|
|
{% for constraint_name, values in session.formatted_constraints.items %}
|
|
<div>
|
|
<span title="{{ constraint_name.name }}">{{ constraint_name.countless_formatted_editor_label }}</span>: {{ values|join:", " }}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% for s in session.other_sessions %}
|
|
<div class="other-session" data-othersessionid="{{ s.pk }}">
|
|
<i class="bi bi-calendar"></i> Other session <span class="time"
|
|
data-scheduled="scheduled: {time}"
|
|
data-notscheduled="not yet scheduled"></span>
|
|
</div>
|
|
{% endfor %}
|
|
<a class="btn btn-primary btn-sm mt-2"
|
|
href="{% url 'ietf.meeting.views.edit_session' session_id=session.pk %}">
|
|
Edit session
|
|
</a>
|
|
</div>
|
|
</div> |