datatracker/ietf/templates/idtracker/search_result_row.html
Bill Fenner 49ee9f8cd7 * Implement replaces and replaced_by in search_result_row and idinternal_detail. (This is almost repeating myself, except for slightly different formatting and different links.)
* Implement displayname_with_link() to go with filename_with_link().
* Implement idtracker backwards linkage in RFC model.
* Don't use unformat_textarea to display Note: - it hasn't been implemented, and seems to want to de-HTML stuff but we're displaying HTML
 - Legacy-Id: 320
2007-06-11 20:27:14 +00:00

34 lines
1.7 KiB
HTML

<tr bgcolor="#{% if match.primary_flag %}{% cycle F8D6F8,E2AFE2 as ballotcolor %}{% else %}{{ ballotcolor }}{% endif %}">
<!-- this form element technically belongs inside the <td>
but that actually changes the visible spacing in most
browsers, so we let layout concerns make us write
invalid HTML. -->
<form method="GET" action="{% url ietf.idtracker.views.view_id match.document.filename %}"><td><input type="submit" value="DETAIL"></td></form>
{# todo: conditionalize doclink properly #}
<td>{% if match.primary_flag %}<li>{% else %}<dd>{% endif %}{{ match.document.filename_with_link }} ({{ match.document.intended_status }})
{% ifequal match.document.status.status "Replaced" %}
<br>&nbsp;&nbsp;&nbsp;&nbsp;Replaced by
{% if match.document.replaced_by.idinternal %}
<a href="{% url ietf.idtracker.views.search %}?search_filename={{ match.document.replaced_by.filename }}">
{% endif %}
{{ match.document.replaced_by.filename }}
{% if match.document.replaced_by.idinternal %}
</a>
{% endif %}
{% endifequal %}
{% if match.document.replaces_set.count %}
<br>&nbsp;&nbsp;&nbsp;&nbsp;Replaces
{% for replaces in match.document.replaces_set.all %}
{% if replaces.idinternal %}
<a href="{% url ietf.idtracker.views.search %}?search_filename={{ replaces.filename }}">
{% endif %}
{{ replaces.filename }}{% if replaces.idinternal %}</a>{% endif %}{% if not forloop.last %},{% endif %}
{% endfor %}
{% endif %}
</td>
<td>{{ match.document.revision }}</td>
<td>{{ match.job_owner }}</td>
<td>{% firstof match.status_date "" %}</td>
<td>{{ match.event_date }}</td>
</tr>