Skip to content

Commit

Permalink
feat: Add a "report errata button" (#5193)
Browse files Browse the repository at this point in the history
And also rename "report a bug" to "report a datatracker bug", in the hopes of
reducing GitHub tickets that are not datatracker-related.
  • Loading branch information
larseggert authored Feb 24, 2023
1 parent 75d8532 commit 02f8bf2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ietf/templates/doc/document_html.html
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
<a class="btn btn-sm btn-warning mb-3"
target="_blank"
href="https://github.com/ietf-tools/datatracker/issues/new/choose">
Report a bug
Report a datatracker bug
<i class="bi bi-bug"></i>
</a>
</div>
Expand Down
12 changes: 10 additions & 2 deletions ietf/templates/doc/document_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,17 @@
{% endif %}
{% if document_html %}<br>{% endif %}
{% if has_verified_errata or has_errata %}
<a class="{% if document_html %}btn btn-danger btn-sm my-1{% else %}badge rounded-pill bg-danger text-decoration-none text-light{% endif %}"
<a class="{% if document_html %}btn btn-primary btn-sm my-1{% else %}badge rounded-pill bg-danger text-decoration-none text-light{% endif %}"
href="https://www.rfc-editor.org/errata_search.php?rfc={{ doc.rfc_number }}" title="Click to view errata." rel="nofollow">
Errata
{% if document_html %}View errata{% else %}Errata{% endif %}
</a>
{% endif %}
{% if document_html and doc.get_state_slug == "rfc" and not snapshot %}
<a class="btn btn-sm btn-warning"
title="Click to report an error in the document."
href="https://www.rfc-editor.org/errata.php#reportnew"
target="_blank">
Report errata
</a>
{% endif %}
{% if doc.related_ipr %}
Expand Down

0 comments on commit 02f8bf2

Please sign in to comment.