-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update error templates, use new base
- Loading branch information
1 parent
33e5a07
commit 34c8325
Showing
4 changed files
with
52 additions
and
53 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,24 +1,22 @@ | ||
{% extends "bases/base_secondary.html" %} | ||
{% load static %} | ||
{% extends "redesign/dashboard_organizer/base_simple.html" %} | ||
{% load static i18n %} | ||
|
||
{% block head_title %}Not Authorized - SocialPass{% endblock %} | ||
{% block head_title %}{% trans "Not authorized" %} - SocialPass{% endblock %} | ||
|
||
{% block sidebar_content %} | ||
<div class="ws-400 mw-100 d-flex align-items-center justify-content-center mx-auto p-10"> | ||
{% block content %} | ||
<div class="specific-w-400 mw-100 d-flex align-items-center justify-content-center mx-auto p-1"> | ||
<img src="{% static 'images/illustrations/something_went_wrong.svg' %}" alt="something_went_wrong" class="img-fluid"> | ||
</div> | ||
{% endblock sidebar_content %} | ||
|
||
{% block inner %} | ||
<h1 class="display-1 text-strong fw-700">403</h1> | ||
<p> | ||
<h1 class="text-center display-1">403</h1> | ||
<h2 class="text-center fs-4">{% trans "Not authorized" %}</h2> | ||
<p class="text-center"> | ||
{% if exception %} | ||
{{ exception }} | ||
{% else %} | ||
<strong>Not authorized.</strong> Sorry, but you do not have the proper permissions to access this page. | ||
{% trans "Sorry, but you do not have the proper permissions to access this page." %} | ||
{% endif %} | ||
</p> | ||
<p> | ||
<a href="{% url 'dashboard_organizer:dashboard_redirect' %}" class="fw-bold"><i class="fa-solid fa-arrow-left me-5"></i> Go back to dashboard</a> | ||
<p class="text-center"> | ||
<a href="https://calendly.com/siesta-markets-front-office/socialpass-catchup" target="_blank" rel="noreferrer">{% trans "Contact Us" %}</a> | ||
</p> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
{% extends "bases/base_secondary.html" %} | ||
{% load static %} | ||
{% extends "redesign/dashboard_organizer/base_simple.html" %} | ||
{% load static i18n %} | ||
|
||
{% block head_title %}Not Found - SocialPass{% endblock %} | ||
{% block head_title %}{% trans "Not found" %} - SocialPass{% endblock %} | ||
|
||
{% block sidebar_content %} | ||
<div class="ws-400 mw-100 d-flex align-items-center justify-content-center mx-auto p-10"> | ||
{% block content %} | ||
<div class="specific-w-400 mw-100 d-flex align-items-center justify-content-center mx-auto p-1"> | ||
<img src="{% static 'images/illustrations/something_went_wrong.svg' %}" alt="something_went_wrong" class="img-fluid"> | ||
</div> | ||
{% endblock sidebar_content %} | ||
|
||
{% block inner %} | ||
<h1 class="display-1 text-strong fw-700">404</h1> | ||
<p> | ||
<h1 class="text-center display-1">404</h1> | ||
<h2 class="text-center fs-4">{% trans "Page not found" %}</h2> | ||
<p class="text-center"> | ||
{% if exception %} | ||
{{ exception }} | ||
{% else %} | ||
<strong>Page not found.</strong> Sorry, but the page you're looking for could not be found. | ||
{% trans "Sorry, but the page you're looking for could not be found." %} | ||
{% endif %} | ||
</p> | ||
<p> | ||
<a href="{% url 'dashboard_organizer:dashboard_redirect' %}" class="fw-bold"><i class="fa-solid fa-arrow-left me-5"></i> Go back to dashboard</a> | ||
<p class="text-center"> | ||
<a href="https://calendly.com/siesta-markets-front-office/socialpass-catchup" target="_blank" rel="noreferrer">{% trans "Contact Us" %}</a> | ||
</p> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
{% extends "bases/base_secondary.html" %} | ||
{% load static %} | ||
{% extends "redesign/dashboard_organizer/base_simple.html" %} | ||
{% load static i18n %} | ||
|
||
{% block head_title %}Too Many Requests - SocialPass{% endblock %} | ||
{% block head_title %}{% trans "Too many requests" %} - SocialPass{% endblock %} | ||
|
||
{% block sidebar_content %} | ||
<div class="ws-400 mw-100 d-flex align-items-center justify-content-center mx-auto p-10"> | ||
{% block content %} | ||
<div class="specific-w-400 mw-100 d-flex align-items-center justify-content-center mx-auto p-1"> | ||
<img src="{% static 'images/illustrations/something_went_wrong.svg' %}" alt="something_went_wrong" class="img-fluid"> | ||
</div> | ||
{% endblock sidebar_content %} | ||
|
||
{% block inner %} | ||
<h1 class="display-1 text-strong fw-700">429</h1> | ||
<p> | ||
<strong>Too Many Requests</strong> | ||
Sorry, but too many requests have been sent from this client. Please try again later. | ||
<h1 class="text-center display-1">429</h1> | ||
<h2 class="text-center fs-4">{% trans "Too many requests" %}</h2> | ||
<p class="text-center"> | ||
{% if exception %} | ||
{{ exception }} | ||
{% else %} | ||
{% trans "Sorry, but too many requests have been sent from this client. Please try again later." %} | ||
{% endif %} | ||
</p> | ||
<p> | ||
<a href="{% url 'dashboard_organizer:dashboard_redirect' %}" class="fw-bold"><i class="fa-solid fa-arrow-left me-5"></i> Go back to dashboard</a> | ||
<p class="text-center"> | ||
<a href="https://calendly.com/siesta-markets-front-office/socialpass-catchup" target="_blank" rel="noreferrer">{% trans "Contact Us" %}</a> | ||
</p> | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
{% extends "bases/base_secondary.html" %} | ||
{% load static %} | ||
{% extends "redesign/dashboard_organizer/base_simple.html" %} | ||
{% load static i18n %} | ||
|
||
{% block head_title %}Server Error - SocialPass{% endblock %} | ||
{% block head_title %}{% trans "Server error" %} - SocialPass{% endblock %} | ||
|
||
{% block sidebar_content %} | ||
<div class="ws-400 mw-100 d-flex align-items-center justify-content-center mx-auto p-10"> | ||
{% block content %} | ||
<div class="specific-w-400 mw-100 d-flex align-items-center justify-content-center mx-auto p-1"> | ||
<img src="{% static 'images/illustrations/something_went_wrong.svg' %}" alt="something_went_wrong" class="img-fluid"> | ||
</div> | ||
{% endblock sidebar_content %} | ||
|
||
{% block inner %} | ||
<h1 class="display-1 text-strong fw-700">500</h1> | ||
<p> | ||
<strong>Looks like something went wrong!</strong> We track these errors automatically, so you can try refreshing the page after some time. | ||
<h1 class="text-center display-1">500</h1> | ||
<h2 class="text-center fs-4">{% trans "Server error" %}</h2> | ||
<p class="text-center"> | ||
{% if exception %} | ||
{{ exception }} | ||
{% else %} | ||
{% trans "We track these errors automatically, so you can try refreshing the page after some time." %} | ||
{% endif %} | ||
</p> | ||
<p> | ||
<a href="{% url 'dashboard_organizer:dashboard_redirect' %}" class="fw-bold"><i class="fa-solid fa-arrow-left me-5"></i> Go back to dashboard</a> | ||
<p class="text-center"> | ||
<a href="https://calendly.com/siesta-markets-front-office/socialpass-catchup" target="_blank" rel="noreferrer">{% trans "Contact Us" %}</a> | ||
</p> | ||
{% endblock %} |