datatracker/ietf/templates/ipr/search_doc_result.html

80 lines
2.5 KiB
HTML

{% extends "ipr/search_result.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}{% origin %}
{% load ietf_filters %}
{% block search_header %}Draft search results{% endblock %}
{% block search_result %}
<p class="alert alert-info">Total number of IPR disclosures found: <b>{{ iprs|length }}</b>.</p>
{% if iprs %}
<table class="table table-condensed table-striped">
<thead>
<tr>
<th>Date</th>
<th>ID</th>
<th>Statement</th>
</tr>
</thead>
<tbody>
{% for ipr in iprs %}
<tr>
<td class="text-nowrap">{{ ipr.time|date:"Y-m-d" }}</td>
<td>{{ ipr.id }}</td>
<td><a href="{% url "ietf.ipr.views.show" id=ipr.id %}">{{ ipr.title }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
<p class="alert alert-info">Total number of documents searched: <b>{{ docs|length}}</b>.</p>
<table class="table table-condensed table-striped">
<thead>
<tr>
<th>Date</th>
<th>ID</th>
<th>Statement</th>
</tr>
</thead>
<tbody>
{% for doc in docs %}
<tr>
<th class="warning" colspan="3">
Results for {{ doc.name|rfcspace|lstrip:"0"|rfcnospace }} ("{{ doc.document.title }}"){% if not forloop.first %}{% if doc.related %}, that was {{ doc.relation|lower }} {{ doc.related.source|rfcspace|lstrip:"0"|rfcnospace }} ("{{ doc.related.source.title }}"){% endif %}{% endif %}:
</th>
</tr>
{% with doc.iprdocrel_set.all as doc_iprs %}
{% if doc_iprs %}
{% for ipr in doc_iprs %}
{% if ipr.disclosure.state_id in states %}
<tr>
<td class="text-nowrap">{{ ipr.disclosure.time|date:"Y-m-d" }}</td>
<td>{{ ipr.disclosure.id }}</td>
<td><a href="{% url "ietf.ipr.views.show" id=ipr.disclosure.id %}">{{ ipr.disclosure.title }}</a></td>
</tr>
{% endif %}
{% endfor %}
{% else %}
<tr>
<td></td>
<td></td>
<td>
No IPR disclosures have been submitted directly on <i>{{ doc.name|rfcspace|lstrip:"0" }}</i>{% if iprs %},
but there are disclosures on {% if docs|length == 2 %}a related document{% else %}related documents{% endif %}, listed on this page{% endif %}.
</td>
</tr>
{% endif %}
{% endwith %}
{% endfor %}
</tbody>
</table>
{% endblock %}