Skip to content

Commit d0341e7

Browse files
committed
Merged in [8841] from rcross@amsl.com:\n Fixes ietf-tools#1569. Fixes link to IPR search from doc page.
- Legacy-Id: 8874 Note: SVN reference [8841] has been migrated to Git commit 8130d24
2 parents 0db48f3 + 8130d24 commit d0341e7

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

ietf/ipr/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,8 @@ def search(request):
737737
"iprs": iprs,
738738
"docs": docs,
739739
"doc": doc,
740-
"form":form},
740+
"form":form,
741+
"states":states},
741742
context_instance=RequestContext(request)
742743
)
743744

ietf/templates/doc/document_draft.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@
231231

232232
<div class="links">
233233
<a href="mailto:{{ doc.name }}@tools.ietf.org?subject=Mail%20regarding%20{{ doc.name }}" rel="nofollow">Email Authors</a>
234-
| <a href="{% url "ipr_search" %}?option=document_search&amp;id={{ doc.name }}" rel="nofollow">IPR Disclosures{% if doc.related_ipr %} ({{doc.related_ipr|length}}){% endif %}</a>
234+
| <a href="{% url "ipr_search" %}?submit=draft&amp;id={{ doc.name }}" rel="nofollow">IPR Disclosures{% if doc.related_ipr %} ({{doc.related_ipr|length}}){% endif %}</a>
235235
| <a href="{% url 'doc_references' doc.canonical_name %}" rel="nofollow">References</a>
236236
| <a href="{% url 'doc_referenced_by' doc.canonical_name %}" rel="nofollow">Referenced By</a>
237237
| <a href="http://www.ietf.org/tools/idnits?url=http://www.ietf.org/archive/id/{{ doc.filename_with_rev }}" rel="nofollow" target="_blank">Check nits</a>

ietf/templates/ipr/search_doc_result.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@
2323
</tr>
2424
{% if doc.iprdocrel_set.all %}
2525
{% for ipr in doc.iprdocrel_set.all %}
26+
{% if ipr.disclosure.state.slug in states %}
2627
<tr valign="top">
2728
<td width="100">{{ ipr.disclosure.time|date:"Y-m-d" }}</td>
2829
<td width="90"><li>ID # {{ ipr.disclosure.id }}</li></td>
2930
<td><a href="{% url "ietf.ipr.views.show" id=ipr.id %}">"{{ ipr.disclosure.title }}"</a></td>
3031
</tr>
32+
{% endif %}
3133
{% endfor %}
3234
{% else %}
3335
<tr>

0 commit comments

Comments
 (0)