diff --git a/SciPost_v1/settings/local_jorran.py b/SciPost_v1/settings/local_jorran.py index 1d47922efff81ddbc6b2157ce74b9fee93f697a6..a599c9c414be49d05555d31cf7d16502ce4d573b 100644 --- a/SciPost_v1/settings/local_jorran.py +++ b/SciPost_v1/settings/local_jorran.py @@ -1,7 +1,7 @@ from .base import * # THE MAIN THING HERE -DEBUG = True +DEBUG = False # Debug toolbar settings INSTALLED_APPS += ( diff --git a/templates/403.html b/templates/403.html index 126e125793cd0d12a7b7e554b74dd0ad3d3dc3f5..7275c78062b6f5f21b136921d8c3dc722568aad9 100644 --- a/templates/403.html +++ b/templates/403.html @@ -2,18 +2,21 @@ {% block pagetitle %}: 403{% endblock pagetitle %} -{% block headsup %} +{% block content %} -{% endblock headsup %} +<div class="row"> + <div class="col-12"> + <div style="text-align: center;"> + <img src="//scipost.org/static/scipost/images/logo_scipost_RGB_HTML_groot.png" alt="SciPost logo" width="240" style="margin-top: 20px; margin-bottom: 20px" /> + <h1>You are not authorized to view the requested page.</h1> + <h2>403</h2> + {% if request.user.is_anonymous %} + <p style="margin-top: 20px;">Please <a href="{% url 'scipost:login' %}">login</a> first, and try again.</p> + {% else %} + <p style="margin-top: 20px;">Continue to your <a href="{% url 'scipost:personal_page' %}">personal page</a>.</p> + {% endif %} + </div> + </div> +</div> -{% block bodysup %} - - -<section> - <h1>You are not authorized to view the requested page.</h1> - {% if exception %} - <p>Exception: {{ exception }}</p> - {% endif %} -</section> - -{% endblock bodysup %} +{% endblock %} diff --git a/templates/404.html b/templates/404.html index 3402bd83cf69e4f2509229cd0de4eed68c25cfdd..aa58a2b1843fd80b62b275156850071484aae13d 100644 --- a/templates/404.html +++ b/templates/404.html @@ -1,19 +1,19 @@ {% extends 'scipost/base.html' %} -{% block pagetitle %}: 403{% endblock pagetitle %} +{% block pagetitle %}: 404{% endblock pagetitle %} -{% block headsup %} -{% endblock headsup %} +{% block content %} -{% block bodysup %} +<div class="row"> + <div class="col-12"> + <div style="text-align: center;"> + <img src="//scipost.org/static/scipost/images/logo_scipost_RGB_HTML_groot.png" alt="SciPost logo" width="240" style="margin-top: 20px; margin-bottom: 20px" /> + <h1>The page you requested could not be found.</h1> + <h2>404</h2> + <p style="margin-top: 20px;">Continue to the <a href="{% url 'submissions:submissions' %}">submissions</a>, <a href="{% url 'commentaries:commentaries' %}">commentaries</a> or <a href="{% url 'theses:theses' %}">theses</a> page.</p> + </div> + </div> +</div> - -<section> - <h1>The page you requested could not be found.</h1> - {% if exception %} - <p>Exception: {{ exception }}</p> - {% endif %} -</section> - -{% endblock bodysup %} +{% endblock %} diff --git a/templates/500.html b/templates/500.html index 4ab810c9de5deb84e891bad2ec21f1eb8efb8ee2..91403510f7c56414f89d263243fe1c4bbebce003 100644 --- a/templates/500.html +++ b/templates/500.html @@ -1,16 +1,15 @@ {% extends 'scipost/base.html' %} -{% block pagetitle %}: 403{% endblock pagetitle %} +{% block pagetitle %}: 500{% endblock pagetitle %} -{% block headsup %} +{% block content %} -{% endblock headsup %} +<div style="text-align: center;"> + <img src="//scipost.org/static/scipost/images/logo_scipost_RGB_HTML_groot.png" alt="SciPost logo" width="240" style="margin-top: 20px; margin-bottom: 20px" /> + <h1>The server responded with an error.</h1> + <h2>500</h2> + <h3>We are sorry, something went wrong. The SciPost administrators have been informed.</h3> + <p style="margin-top: 20px;">Go back to <a href="//scipost.org">the homepage</a>.</p> +</div> -{% block bodysup %} - - -<section> - <h1>The server responded with an error.</h1> -</section> - -{% endblock bodysup %} +{% endblock %}