-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use custom error layout for shop offline
- Loading branch information
Showing
2 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
src/pretix/presale/templates/pretixpresale/event/offline.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters