forked from ietf-tools/datatracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathipr_table.html
More file actions
69 lines (69 loc) · 3.5 KB
/
ipr_table.html
File metadata and controls
69 lines (69 loc) · 3.5 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
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% origin %}
{% load ietf_filters %}
<table class="table table-sm table-striped tablesorter ipr-table">
<thead>
<tr>
<th scope="col" data-sort="date">Date</th>
<th scope="col" data-sort="num">ID</th>
<th scope="col" data-sort="title">Title</th>
{% if administrative_list == 'pending' %}
<th scope="col" data-sort="query">Query</th>
<th scope="col" data-sort="due">Response due</th>
{% endif %}
</tr>
</thead>
{% if iprs %}
<tbody>
{% for ipr in iprs %}
<tr>
<td class="text-end">{{ ipr.time|date:"Y-m-d" }}</td>
<td class="text-end">{{ ipr.id }}</td>
<td>
{% if ipr.state_id == 'posted' or administrative_list %}
<div>
<a href="{% url "ietf.ipr.views.show" ipr.id %}">{{ ipr.title }}</a>
</div>
{% for item in ipr.relatedipr_source_set.all %}
{% if item.target.state_id == 'posted' %}
<small>Updates ID
<a href="{% url "ietf.ipr.views.show" item.target.id %}">#{{ item.target.id }}</a>.
</small>
{% endif %}
{% endfor %}
{% for item in ipr.relatedipr_target_set.all %}
{% if item.source.state_id == "posted" %}
<small>Updated by ID
<a href="{% url "ietf.ipr.views.show" item.source.id %}">#{{ item.source.id }}</a>.
</small>
{% endif %}
{% endfor %}
{% elif ipr.state_id == 'removed' %}
<div>{{ ipr.title }}</div>
<small><i>This IPR disclosure was removed at the request of the submitter.</i></small>
{% elif ipr.state_id == 'removed_objfalse' %}
<div>{{ ipr.title }}</div>
<small><i>This IPR disclosure was removed as objectively false.</i></small>
{% endif %} {# Intentionally not emitting anything for any other states #}
</td>
{% if administrative_list == 'pending' %}
{% with ipr.get_latest_event_msgout as latest_msgout %}
<td>
{% if latest_msgout %}{{ latest_msgout.time|date:"Y-m-d" }}{% endif %}
</td>
<td>
{% if latest_msgout and latest_msgout.response_due %}
{{ latest_msgout.response_due|date:"Y-m-d" }}
{% if latest_msgout.response_past_due %}
<i class="bi bi-exclamation-circle" title="Response overdue"></i>
{% endif %}
{% endif %}
</td>
{% endwith %}
{% endif %}
</tr>
{% endfor %}
</tbody>
{% endif %}
</table>