mirror of
https://github.com/pretix/pretix.git
synced 2026-04-28 00:02:37 +00:00
I've kept it for 400/403/500/csrffail for now, because they also have a "try again" link. Yes, both things have browser buttons, but they make it a *little* clearer to technical users what one could to next, and especially on csrffail, "step back" is always possible and possibly actually helpful.
24 lines
995 B
HTML
24 lines
995 B
HTML
{% extends "error.html" %}
|
|
{% load i18n %}
|
|
{% load static %}
|
|
{% block title %}{% trans "Not found" %}{% endblock %}
|
|
{% block content %}
|
|
<i class="fa fa-meh-o fa-fw big-icon"></i>
|
|
<div class="error-details">
|
|
<h1>{% trans "Not found" %}</h1>
|
|
<p>{% trans "I'm afraid we could not find the the resource you requested." %}</p>
|
|
<p>{{ exception }}</p>
|
|
{% if request.user.is_staff and not staff_session %}
|
|
<form action="{% url 'control:user.sudo' %}?next={{ request.path|add:"?"|add:request.GET.urlencode|urlencode }}" method="post">
|
|
<p>
|
|
{% csrf_token %}
|
|
<button type="submit" class="btn btn-default" id="button-sudo">
|
|
<i class="fa fa-id-card"></i> {% trans "Admin mode" %}
|
|
</button>
|
|
</p>
|
|
</form>
|
|
{% endif %}
|
|
<img src="{% static "pretixbase/img/pretix-logo.svg" %}" class="logo"/>
|
|
</div>
|
|
{% endblock %}
|