92 lines
3.7 KiB
HTML
92 lines
3.7 KiB
HTML
<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-{% firstof session.purpose.slug 'regular' %} {% 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="fa fa-comment-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 pull-right"></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="fa fa-user-o"></i> {% endif %}
|
|
</strong>
|
|
</div>
|
|
|
|
{% if session.group %}
|
|
<div>
|
|
{{ session.group.name }}
|
|
{% if session.group.parent %}
|
|
· <span class="session-parent">{{ session.group.parent.acronym }}</span>
|
|
{% endif %}
|
|
{% if not session.on_agenda %}· <i>off agenda</i>{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if session.requested_by_person %}
|
|
<div>
|
|
<i title="Requested by" class="fa fa-user-circle-o"></i> {{ session.requested_by_person.plain_name }} {% 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="fa fa-calendar"></i> Other session <span class="time" data-scheduled="scheduled: {time}" data-notscheduled="not yet scheduled"></span></div>
|
|
{% endfor %}
|
|
|
|
<a href="{% url 'ietf.meeting.views.edit_session' session_id=session.pk %}">Edit session</a>
|
|
</div>
|
|
</div>
|