Changeset View
Changeset View
Standalone View
Standalone View
swh/web/templates/includes/http-error.html
{% comment %} | {% comment %} | ||||
Copyright (C) 2018 The Software Heritage developers | Copyright (C) 2018-2021 The Software Heritage developers | ||||
See the AUTHORS file at the top-level directory of this distribution | See the AUTHORS file at the top-level directory of this distribution | ||||
License: GNU Affero General Public License version 3, or any later version | License: GNU Affero General Public License version 3, or any later version | ||||
See top-level LICENSE file for more information | See top-level LICENSE file for more information | ||||
{% endcomment %} | {% endcomment %} | ||||
{% load static %} | {% load static %} | ||||
<div class="swh-http-error"> | <div class="swh-http-error"> | ||||
<div class="swh-http-error-head">Error</div> | <div class="swh-http-error-head">Error</div> | ||||
<div class="swh-http-error-code"> | <div class="swh-http-error-code"> | ||||
<img class="hidden-xs swh-image-error" src="{% static 'img/swh-logo.svg' %}"> | <img class="hidden-xs swh-image-error" src="{% static 'img/swh-logo.svg' %}"> | ||||
{{ error_code }} | {{ error_code }} | ||||
<img class="hidden-xs swh-image-error" src="{% static 'img/swh-logo.svg' %}"> | <img class="hidden-xs swh-image-error" src="{% static 'img/swh-logo.svg' %}"> | ||||
</div> | </div> | ||||
<h3>{{ error_message }}</h3> | <h3>{{ error_message }}</h3> | ||||
<div class="swh-http-error-desc"> | <div class="swh-http-error-desc"> | ||||
<pre>{{ error_description }}</pre> | <pre>{{ error_description }}</pre> | ||||
{% if not iframe_mode %} | |||||
<div> | <div> | ||||
<a class="btn" onclick="window.history.back();"> | <a class="btn" onclick="window.history.back();"> | ||||
<i class="mdi mdi-arrow-left" aria-hidden="true"></i> | <i class="mdi mdi-arrow-left" aria-hidden="true"></i> | ||||
Go back to previous page | Go back to previous page | ||||
</a> | </a> | ||||
or | or | ||||
<a class="btn" href="{% url 'swh-web-homepage' %}"> | <a class="btn" href="{% url 'swh-web-homepage' %}"> | ||||
<i class="mdi mdi-arrow-left" aria-hidden="true"></i> | <i class="mdi mdi-arrow-left" aria-hidden="true"></i> | ||||
Go back to homepage | Go back to homepage | ||||
</a> | </a> | ||||
</div> | </div> | ||||
{% endif %} | |||||
</div> | </div> | ||||
</div> | </div> | ||||
No newline at end of file | No newline at end of file |