forked from adamlaska/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpast_documents.html
More file actions
101 lines (90 loc) · 3.12 KB
/
past_documents.html
File metadata and controls
101 lines (90 loc) · 3.12 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin static %}
{% load ballot_icon %}
{% load ietf_filters %}
{% block pagehead %}
<link rel="stylesheet" href="{% static "jquery.tablesorter/css/theme.bootstrap.min.css" %}">
{% endblock %}
{% block title %}Documents on recent agendas{% endblock %}
{% block content %}
{% origin %}
<h1>Documents on recent agendas <small>in states {% for state in states %}{{state.name}}{% if not forloop.last %}, {% endif %} {% endfor %}</small></h1>
<ul class="nav nav-tabs" role="tablist">
<li class=" "><a href="{% url 'ietf.iesg.views.agenda' %}">IESG Agenda</a></li>
<li class=" "><a href="{% url 'ietf.iesg.views.agenda_documents' %}">Documents on future agendas</a></li>
<li class=" "><a href="{% url 'ietf.iesg.views.discusses' %}">DISCUSS positions</a></li>
<li class="active"><a href="{% url 'ietf.iesg.views.past_documents' %}">Documents on recent agendas</a></li>
<li class=" "><a href="{% url 'ietf.iesg.views.photos' %}">IESG Photos</a></li>
</ul>
<!--
{% if user|has_role:"Area Director" %}
<p class="btn-group" data-toggle="buttons">
<label class="btn btn-default active discuss">
<input type="radio" value="all">All
</label>
<label class="btn btn-default discuss">
<input type="radio" value="byme">By me
</label>
<label class="btn btn-default discuss">
<input type="radio" value="forme">For me
</label>
</p>
{% endif %}
-->
<table class="table table-condensed table-striped tablesorter">
<thead>
<tr>
<th class="col-md-4">Document</th>
<th>Telechat Date</th>
<th>Status</th>
<th>Responsible AD</th>
<th>Discusses</th>
</tr>
</thead>
<tbody>
{% for doc in docs %}
<tr class="{% if doc.by_me %}byme{% endif %} {% if doc.for_me %}forme{% endif %}">
<td>
{{ doc.displayname_with_link }}
<br>
{{ doc.title }}
</td>
<td>
{{ doc.telechat }}
</td>
{% include "doc/search/status_columns.html" %}
<td>{{ doc.ad|default:"" }}</td>
<td>
{% for p in doc.blocking_positions %}
{% if p.is_old_pos %}
<span class="text-muted">
{% endif %}
{{ p.balloter }}
({% if p.discuss_time %}{{ p.discuss_time|timesince_days }}{% endif %}
days ago{% if doc.get_state_url != "rfc" and p.rev != doc.rev %}
for -{{ p.rev }}{% endif %})<br>
{% if p.is_old_pos %}
</span>
{% endif %}
{% endfor %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}
{% block js %}
<script src="{% static "jquery.tablesorter/js/jquery.tablesorter.combined.min.js" %}"></script>
<script>
$(".discuss").click(function () {
var x = $(this).find("input").val();
if (x === "all") {
$("tbody tr").removeClass("hidden");
} else {
$("tbody tr." + x).removeClass("hidden");
$("tbody tr:not(." + x + ")").addClass("hidden");
}
});
</script>
{% endblock %}