mirror of
https://github.com/pretix/pretix.git
synced 2026-05-10 16:04:02 +00:00
Use custom error layout for shop offline
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
{% extends "error.html" %}
|
||||
{% load i18n %}
|
||||
{% load static %}
|
||||
{% block title %}{% trans "Shop offline" %}{% endblock %}
|
||||
{% block content %}
|
||||
<i class="fa fa-fw fa-power-off big-icon"></i>
|
||||
<div class="error-details">
|
||||
<h1>{% trans "Shop offline" %}</h1>
|
||||
<p>{% trans "This ticket shop is currently turned off." %}</p>
|
||||
<p>{% trans "It is only accessible to authenticated team members." %}</p>
|
||||
<p>{% trans "Please try again later." %}</p>
|
||||
<p class="links">
|
||||
<a id='goback' href='#'>{% trans "Take a step back" %}</a>
|
||||
· <a id='reload' href='#'>{% trans "Try again" %}</a>
|
||||
</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 %}
|
||||
Reference in New Issue
Block a user