of the same API as IDInternal to allow the template to render it. When fetching lists of document IDs, use values() to fetch only the ID to reduce database overhead (and model object creation overhead) - Legacy-Id: 373
37 lines
1.7 KiB
HTML
37 lines
1.7 KiB
HTML
<tr bgcolor="#{% if match.primary_flag %}{% cycle F8D6F8,E2AFE2 as ballotcolor %}{% else %}{{ ballotcolor }}{% endif %}">
|
|
{% if match.synthetic %}
|
|
<td> </td>
|
|
{% else %}
|
|
<!-- 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>
|
|
{% endif %}
|
|
<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> 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> 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>{% firstof match.job_owner "Not Assigned Yet" %}</td>
|
|
<td>{% firstof match.status_date "" %}</td>
|
|
<td>{{ match.event_date }}</td>
|
|
</tr>
|