Skip to content

Commit

Permalink
Update error templates, use new base
Browse files Browse the repository at this point in the history
  • Loading branch information
halfmoonui authored and crypto-rizzo committed Jan 3, 2024
1 parent 33e5a07 commit 34c8325
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 53 deletions.
24 changes: 11 additions & 13 deletions backend/templates/403.html
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 %}
24 changes: 11 additions & 13 deletions backend/templates/404.html
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 %}
29 changes: 15 additions & 14 deletions backend/templates/429.html
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 %}
28 changes: 15 additions & 13 deletions backend/templates/500.html
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 %}

0 comments on commit 34c8325

Please sign in to comment.