Merged in [18270] from valery@smyslov.net:
Added display of verified errata in red, not verified in orange in document lists.
#2997
- Legacy-Id: 18280
Note: SVN reference [18270] has been migrated to Git commit 126d32b37f
This commit is contained in:
commit
f10255e0e2
|
@ -119,9 +119,11 @@ def fill_in_document_table_attributes(docs, have_telechat_date=False):
|
|||
# RFCs
|
||||
|
||||
# errata
|
||||
erratas = set(Document.objects.filter(tags="errata", name__in=list(rfc_aliases.keys())).distinct().values_list("name", flat=True))
|
||||
erratas = set(Document.objects.filter(tags="errata", id__in=list(rfc_aliases.keys())).distinct().values_list("name", flat=True))
|
||||
verified_erratas = set(Document.objects.filter(tags="verified-errata", id__in=list(rfc_aliases.keys())).distinct().values_list("name", flat=True))
|
||||
for d in docs:
|
||||
d.has_errata = d.name in erratas
|
||||
d.has_verified_errata = d.name in verified_erratas
|
||||
|
||||
# obsoleted/updated by
|
||||
for a in rfc_aliases:
|
||||
|
|
|
@ -50,8 +50,10 @@
|
|||
{% endif %}
|
||||
<br>
|
||||
<b>{{ doc.title }}</b>
|
||||
{% if doc.has_errata %}
|
||||
{% if doc.has_verified_errata %}
|
||||
<a class="label label-danger pull-right" href="https://www.rfc-editor.org/errata_search.php?rfc={{ doc.rfc_number }}">Errata</a>
|
||||
{% elif doc.has_errata %}
|
||||
<a class="label label-warning pull-right" href="https://www.rfc-editor.org/errata_search.php?rfc={{ doc.rfc_number }}">Errata</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue