feat: Make the "report a bug" links more visible (#3883)

* feat: Make the "report a bug" links more visible

Also rework the page footer somewhat, while we're here.

* Revert empty change

Co-authored-by: Nicolas Giard <github@ngpixel.com>
This commit is contained in:
Lars Eggert 2022-04-26 20:30:21 +03:00 committed by GitHub
parent 9db1d48258
commit 53a2b61bbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 23 deletions

View file

@ -122,33 +122,35 @@
<a href="https://www.rfc-editor.org/" class="p-3">RFC&nbsp;Editor</a> <a href="https://www.rfc-editor.org/" class="p-3">RFC&nbsp;Editor</a>
<a href="https://www.iana.org/" class="p-3">IANA</a> <a href="https://www.iana.org/" class="p-3">IANA</a>
<a href="https://www.ietf.org/privacy-statement/" class="p-3">Privacy&nbsp;Statement</a> <a href="https://www.ietf.org/privacy-statement/" class="p-3">Privacy&nbsp;Statement</a>
<div class="small text-muted p-3"> <div class="small text-muted py-3">
{% if version_num %} {% if version_num %}
<a href="/release/about">About</a> <a class="mx-2" href="/release/about">About IETF Datatracker</a>
<a href="https://github.com/ietf-tools/datatracker/">IETF Datatracker</a> <span class="mx-2">
{% if server_mode and server_mode == "production" %} {% if server_mode and server_mode == "production" %}
<a href="https://github.com/ietf-tools/datatracker/releases/tag/{{version_num}}">Version {{ version_num }}{% if patch %}{{patch}}{% endif %}</a> <a href="https://github.com/ietf-tools/datatracker/releases/tag/{{version_num}}">
{% else %} {% endif %}
Version {{ version_num }}{% if patch %}{{patch}}{% endif %} Version {{ version_num }}{% if patch %}{{patch}}{% endif %}
{% endif %} {% if branch %}({{ branch }} - {{ git_hash|slice:":7" }}){% endif %}
{% if branch %}({{ branch }} - {{ git_hash|slice:":7" }}){% endif %} {% if server_mode and server_mode == "production" %}
</a>
{% endif %}
</span>
{% endif %} {% endif %}
Report a bug: <span class="mx-2 text-danger">
<a href="https://github.com/ietf-tools/datatracker/issues/new/choose">
GitHub
<i class="bi bi-bug"></i> <i class="bi bi-bug"></i>
</a> Report a bug:
{% if bugreport_email %} <a class="text-reset" href="https://github.com/ietf-tools/datatracker/issues/new/choose">GitHub</a>
<a href="mailto:{{ bugreport_email }}"> {% if bugreport_email %}
Email <a class="text-reset" href="mailto:{{ bugreport_email }}">Email</a>
<i class="bi bi-envelope"></i> {% endif %}
</a> </span>
{% if server_mode and server_mode != "production" %}
<br>
{% if python_version %}Python {{ python_version }}{% endif %}
{% if django_version %}Django {{ django_version }}{% endif %}
<br>
{% include "debug.html" %}
{% endif %} {% endif %}
<br>
{% if python_version %}Python {{ python_version }}{% endif %}
{% if django_version %}Django {{ django_version }}{% endif %}
<br>
{% include "debug.html" %}
</div> </div>
</footer> </footer>
{% endblock %} {% endblock %}

View file

@ -407,7 +407,7 @@
</li> </li>
{% endif %} {% endif %}
<li> <li>
<a class="dropdown-item {% if flavor != 'top' %}text-wrap link-primary{% endif %}" <a class="dropdown-item text-danger {% if flavor != 'top' %}text-wrap link-primary{% endif %}"
href="https://github.com/ietf-tools/datatracker/issues/new/choose"> href="https://github.com/ietf-tools/datatracker/issues/new/choose">
<i class="bi bi-bug"> <i class="bi bi-bug">
</i> </i>