elixir/templates/error.html
Franciszek Stachura 531529a182 web: Make "Go to home page" link to current version
If project and version is valid. Otherwise, redirect to latest or /.
2025-02-14 12:49:16 +01:00

32 lines
910 B
HTML

{% extends "layout.html" %}
{% block title %}
Elixir error - Bootlin
{% endblock %}
{% block main %}
<div class="lxrerror">
<h2>{{ error_title }}</h2>
<div id="error-details">
{{ error_details|default('') }}
</div>
<span>You might want to:</span>
<ul>
{% if referer is not none -%}
<li><a class="link" href="{{ referer }}">Go back</a></li>
{%- endif %}
<li><a class="link" href="{{ home_page_link }}">Go to home page</a></li>
{% if bug_report_link is not none -%}
<li><a class="link" href="{{ bug_report_link }}">Report a bug</a></li>
{%- endif %}
</ul>
{% if report_error_details is not none -%}
<details>
<summary id="report-error-details-header">Error details for a bug report</summary>
<pre>{{ report_error_details }}</pre>
</details>
{% endif -%}
</div>
{% endblock %}