datatracker/ietf/templates/ipr/search_doctitle_result.html
2020-06-27 13:51:19 +00:00

64 lines
2.4 KiB
HTML

{% extends "ipr/search_result.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 search_header %}Search result on {{ q }}{% endblock %}
{% block search_result %}
{% if not docs %}
<p class="alert alert-info">No IPR disclosures related to a document with the words <i>{{ q }}</i> in the title have been submitted.</p>
{% else %}
<p class="alert alert-info">Total number of IPR disclosures found: <b>{{ iprs|length }}</b>.</p>
<table class="table table-condensed table-striped tablesorter">
<thead><th>Date</th><th>ID</th><th>Statement</th></thead>
{% for alias in docs %}
<tbody>
<tr>
<th class="warning" colspan="3">
IPR that is related to <i>{{ alias.name|rfcspace|lstrip:"0"|rfcnospace }} ("{{ alias.document.title }}"){% if alias.related %}</i> that was <i>{{ alias.relation|lower }} {{ alias.related.source.name|rfcspace|lstrip:"0"|rfcnospace }} ("{{ alias.related.source.title }}"){% endif %}
</i>
</th>
</tr>
</tbody>
<tbody>
{% if alias.document.ipr %}
{% for ipr in alias.document.ipr %}
<tr>
<td class="text-nowrap">{{ ipr.disclosure.time|date:"Y-m-d" }}</td>
<td>{{ ipr.disclosure.id }}</td>
<td>
{% for item in ipr.disclosure.updated_by.all %}
{% if item.source.state_id == "posted" %}
IPR disclosure #{{ item.source.id }}: <a href="{% url "ietf.ipr.views.show" item.source.id %}">{{ item.source.title }}</a><br>Updates:
{% endif %}
{% endfor %}
<a href="{% url "ietf.ipr.views.show" ipr.disclosure.id %}">{{ ipr.disclosure.title }}</a>
</td>
</tr>
{% endfor %}
{% else %}
<tr>
<td></td>
<td></td>
<td>No IPR disclosures related to <i>{{ alias.name|rfcspace|lstrip:"0" }}</i> have been submitted.</td>
</tr>
{% endif %}
</tbody>
{% endfor %}
</table>
{% endif %}
{% endblock %}
{% block js %}
<script src="{% static "jquery.tablesorter/js/jquery.tablesorter.combined.min.js" %}"></script>
{% endblock %}