datatracker/ietf/templates/iesg/past_documents.html
Lars Eggert a8764f225f Track CSS class name changes in bs5.
- Legacy-Id: 19663
2021-11-15 16:49:09 +00:00

101 lines
3.7 KiB
HTML

{% 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 "ietf/css/datatables.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">
<li class="nav-item "><a class="nav-link" href="{% url 'ietf.iesg.views.agenda' %}">IESG Agenda</a></li>
<li class="nav-item "><a class="nav-link" href="{% url 'ietf.iesg.views.agenda_documents' %}">Documents on future agendas</a></li>
<li class="nav-item "><a class="nav-link" href="{% url 'ietf.iesg.views.discusses' %}">DISCUSS positions</a></li>
<li class="nav-item"><a class="nav-link active" href="{% url 'ietf.iesg.views.past_documents' %}">Documents on recent agendas</a></li>
<li class="nav-item "><a class="nav-link" href="{% url 'ietf.iesg.views.photos' %}">IESG Photos</a></li>
</ul>
<!--
{% if user|has_role:"Area Director" %}
<p class="btn-group" data-bs-toggle="buttons">
<label class="btn btn-primary active discuss">
<input type="radio" value="all">All
</label>
<label class="btn btn-primary discuss">
<input type="radio" value="byme">By me
</label>
<label class="btn btn-primary discuss">
<input type="radio" value="forme">For me
</label>
</p>
{% endif %}
-->
<table class="table table-sm 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 "ietf/js/datatables.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 %}