forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit_meeting_schedule_session.html
More file actions
64 lines (56 loc) · 2.41 KB
/
Copy pathedit_meeting_schedule_session.html
File metadata and controls
64 lines (56 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<div id="session{{ session.pk }}" class="session {% if not session.group.parent.scheduling_color %}untoggleable{% endif %} {% if session.parent_acronym %}parent-{{ session.parent_acronym }}{% endif %}" style="width:{{ session.layout_width }}em;" data-duration="{{ session.requested_duration.total_seconds }}" {% if session.attendees != None %}data-attendees="{{ session.attendees }}"{% endif %}>
<div class="session-label">
{{ session.scheduling_label }}
</div>
<div>
{% 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 explanation, sessions in session.constrained_sessions %}
<span data-sessions="{{ sessions|join:"," }}">{{ explanation }}</span>
{% endfor %}
</span>
{% endif %}
</div>
{# this is shown elsewhere on the page with JS - we just include it here for convenience #}
<div class="session-info">
<label>
{{ session.scheduling_label }}
· {{ session.requested_duration_in_hours }} h
{% if session.group %}· {% if session.group.is_bof %}BoF{% else %}{{ session.group.type.name }}{% endif %}{% endif %}
{% if session.attendees != None %}· {{ session.attendees }} <i class="fa fa-user-o"></i>{% endif %}
</label>
{% if session.group %}
<div>
{{ session.group.name }}
{% if session.group.parent %}
· <span class="session-parent">{{ session.group.parent.acronym }}</span>
{% if session.historic_group_ad_name %} ({{ session.historic_group_ad_name }}){% endif %}
{% endif %}
</div>
{% endif %}
{% if session.requested_by_person %}
<div>
<i 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 %}
</div>
</div>