forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpresentations-row.html
More file actions
41 lines (40 loc) · 2.21 KB
/
presentations-row.html
File metadata and controls
41 lines (40 loc) · 2.21 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
{% load origin %}
{% load ietf_filters session_filters %}
{% origin %}
<table class="table table-condensed table-striped">
<thead>
<tr>
<th class="col-md-1">Revision</th>
<th class="col-md-2">Meeting</th>
<th class="col-md-2">Session</th>
<th class="col-md-1">{% comment %}Agenda{% endcomment %}</th>
<th class="col-md-1">{% comment %}Minutes{% endcomment %}</th>
<th class="col-md-1">{% comment %}Materials{% endcomment %}</th>
<th class="col-md-4">{% comment %}Buttons{% endcomment %}</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 %}">Materials</a></td>
<td>
{% 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 %}default{% endif %} btn-xs" 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 %}default{% endif %} btn-xs" href="{% url 'ietf.doc.views_doc.edit_sessionpresentation' name=doc.name session_id=s.pk %}">Change revision</a>
{% endif %}
</td>
{% endfor %}
</tbody>
</table>