forked from ietf-tools/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpresentations-row.html
More file actions
67 lines (67 loc) · 2.94 KB
/
presentations-row.html
File metadata and controls
67 lines (67 loc) · 2.94 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
65
66
67
{% load origin %}
{% load ietf_filters session_filters %}
{% origin %}
<table class="table table-sm table-striped tablesorter">
<thead>
<tr>
<th scope="col" data-sort="revision">Revision</th>
<th scope="col" data-sort="meeting">Meeting</th>
<th scope="col" data-sort="session">Session</th>
<th scope="col">{# Agenda #}</th>
<th scope="col">{# Minutes #}</th>
<th scope="col">{# Buttons #}</th>
</tr>
</thead>
<tbody>
{% for s in sessions %}
<tr>
<td>{{ s|presented_versions:doc }}</td>
<td>
{% ifchanged s.meeting %}
{% if s.meeting.type.slug == 'ietf' %}IETF{% endif %}
{{ s.meeting.number }}
{% endifchanged %}
</td>
<td>
{% if s.name %}
{{ s.name }}
<br>
{% else %}
{{ s.group.acronym }} -
{% endif %}
{% if s.current_status == "sched" %}
{% if s.meeting.type.slug == 'ietf' %}
{{ s.time|date:"D M d, Y Hi" }}
{% else %}
{{ s.time|date:"D M d, Y" }}
{% endif %}
{% else %}
{{ s.current_status_name }}
{% endif %}
</td>
<td>
{% if s.agenda %}<a href="{{ s.agenda.get_absolute_url }}">Agenda</a>{% endif %}
</td>
<td>
{% if s.minutes %}<a href="{{ s.minutes.get_absolute_url }}">Minutes</a>{% endif %}
</td>
<td>
<a href="{% url 'ietf.meeting.views.session_details' num=s.meeting.number acronym=s.group.acronym %}"
class="btn btn-sm btn-primary">
Materials
</a>
{% if user|has_role:"Secretariat" or s|can_manage_materials:user and not s.is_material_submission_cutoff %}
<a class="btn btn-{% if s.is_material_submission_cutoff %}warning{% else %}primary{% endif %} btn-sm"
href="{% url 'ietf.doc.views_doc.remove_sessionpresentation' name=doc.name session_id=s.pk %}">
Remove document from session
</a>
<a class="btn btn-{% if s.is_material_submission_cutoff %}warning{% else %}primary{% endif %} btn-sm"
href="{% url 'ietf.doc.views_doc.edit_sessionpresentation' name=doc.name session_id=s.pk %}">
Change revision
</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>