Skip to content

Commit 22b6085

Browse files
committed
Shows the shepherd (when there is one) on search results, documents for this ad, and wg document lists.
Fixes bug ietf-tools#972 - Legacy-Id: 5572
1 parent 63cad71 commit 22b6085

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

ietf/idrfc/views_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ def search_results(request):
525525
{'htitle': 'Date', 'htype':'date'},
526526
{'htitle': 'Status', 'htype':'status', 'colspan':'2'},
527527
{'htitle': 'IPR', 'htype':'ipr'},
528-
{'htitle': 'Ad', 'htype':'ad'}]
528+
{'htitle': 'Ad/Shepherd', 'htype':'ad'}]
529529

530530
# Make sure we know which one is selected (for visibility later)
531531
if sort_by:

ietf/templates/idrfc/by_ad.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h1>Internet-Drafts and RFCs for {{ ad_name }}</h1>
4141
{% regroup docs by view_sort_group_byad as grouped_docs %}
4242

4343
<table class="ietf-table ietf-doctable">
44-
<tr><th class="doc">Document</th><th class="title">Title</th><th class="date">Date</th><th class="status" colspan="2">Status</th><th class="ipr">ipr</th><th class="ad">Area Director</th></tr>
44+
<tr><th class="doc">Document</th><th class="title">Title</th><th class="date">Date</th><th class="status" colspan="2">Status</th><th class="ipr">ipr</th><th class="ad">AD / Shepherd</th></tr>
4545
{% for doc_group in grouped_docs %}
4646
<tr class="header"><td colspan="7">{{doc_group.grouper}}s</td></tr>
4747

ietf/templates/idrfc/search_result_row.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,7 @@
5555
{% include "idrfc/status_columns.html" %}
5656
{% include "idrfc/ipr_column.html" %}
5757
{# <td class="ad">{% if doc.ad_name %}{{ doc.ad_name }}{% else %}&nbsp;{% endif %}</td> #}
58-
<td class="ad">{{ doc.ad_name|default:"" }}</td>
58+
<td class="ad">{{ doc.ad_name|default:"" }}
59+
{% if doc.id.underlying_document.shepherd %}<br/>{{ doc.id.underlying_document.shepherd.plain_name|default:""}}{% endif %}
60+
</td>
5961
</tr>

ietf/templates/wginfo/wg_documents.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<table class="ietf-table ietf-doctable" style="margin-top:16px;">
4242
<tr>
4343
{% if user.is_authenticated %}<th></th>{% endif %}
44-
<th class="doc">Document</th><th class="title">Title</th><th class="date">Date</th><th class="status" colspan="2">Status</th><th class="ipr">ipr</th><th class="ad">Area Director</th>
44+
<th class="doc">Document</th><th class="title">Title</th><th class="date">Date</th><th class="status" colspan="2">Status</th><th class="ipr">ipr</th><th class="ad">AD / Shepherd</th>
4545
</tr>
4646
{% for doc_group in grouped_docs %}
4747
<tr class="header"><td colspan="7">{{doc_group.grouper}}s</td></tr>
@@ -60,7 +60,7 @@
6060
<table class="ietf-table ietf-doctable" style="margin-top:16px;">
6161
<tr>
6262
{% if user.is_authenticated %}<th></th>{% endif %}
63-
<th class="doc">Related Documents</th><th class="title">Title</th><th class="date">Date</th><th class="status" colspan="2">Status</th><th class="ipr">ipr</th><th class="ad">Area Director</th>
63+
<th class="doc">Related Documents</th><th class="title">Title</th><th class="date">Date</th><th class="status" colspan="2">Status</th><th class="ipr">ipr</th><th class="ad">AD / Shepherd</th>
6464
</tr>
6565
{% for doc_group in grouped_docs_related %}
6666
<tr class="header"><td colspan="7">{{doc_group.grouper}}s</td></tr>

0 commit comments

Comments
 (0)