forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaterials.html
More file actions
84 lines (75 loc) · 2.63 KB
/
materials.html
File metadata and controls
84 lines (75 loc) · 2.63 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{% extends "group/group_base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}{% origin %}
{% load ietf_filters static %}
{% block pagehead %}
<link rel="stylesheet" href="{% static "jquery.tablesorter/css/theme.bootstrap.min.css" %}">
{% endblock %}
{% block group_subtitle %}Materials{% endblock %}
{% block group_content %}
{% origin %}
{% load ietf_filters %}
{% if doc_types %}
{% for doc_type, docs in doc_types %}
<h2>{{ doc_type.name }}</h2>
<table class="table table-condensed table-striped materials tablesorter">
<thead>
<tr>
<th>Title</th>
<th>Abstract</th>
<th>Curr. rev.</th>
<th>Date</th>
<th>Last presented</th>
<th>On agenda</th>
</tr>
</thead>
<tbody>
{% for d in docs %}
<tr>
<td><a class="title-link" href="{% url "ietf.doc.views_doc.document_main" name=d.name %}">{{ d.title }}</a></td>
<td class='snippable'>{{ d.abstract|format_snippet }} </td>
<td>{{ d.rev }}</td>
<td>{{ d.time|date:"Y-m-d" }}</td>
<td>{% regroup d.last_presented by session.meeting as past_pres_list %}
{% for p in past_pres_list %}
{{ p.grouper }}
{% if p.list|length > 1 %}
({{ p.list|length }} sessions)
{% else %}
{% for pr in p.list %}
{% if pr.rev != d.rev %}
(-{{ pr.rev }})
{% endif %}
{% endfor %}
{% endif %}
{% if not forloop.last %}, {% endif %}
{% endfor %}
</td>
<td>{% regroup d.future_presentations by session.meeting as meeting_pres_list %}
{% for p in meeting_pres_list %}
{{ p.grouper }}
{% if p.list|length > 1 %}
({{ p.list|length }} sessions)
{% else %}
{% for pr in p.list %}
{% if pr.rev != d.rev %}
(-{{ pr.rev }})
{% endif %}
{% endfor %}
{% endif %}
{% if not forloop.last %}, {% endif %}
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endfor %}
{% else %}
<h2>Materials</h2>
<p>No materials uploaded.</p>
{% endif %}
{% endblock %}
{% block js %}
<script src="{% static "jquery.tablesorter/js/jquery.tablesorter.combined.min.js" %}"></script>
{% endblock %}