From 69a0791a6d398ecada901656c84e5c32c3f4c32b Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Sat, 18 Jun 2022 02:11:29 +0100 Subject: [PATCH] Bug fixes to main branch --- .../templates/admin/components/og-meta.html | 9 +- .../templates/quiz/components/og-meta.html | 9 +- ref-test/app/templates/404.html | 88 +++++++++++++++++-- .../app/templates/components/og-meta.html | 9 +- ref-test/main.py | 9 +- 5 files changed, 99 insertions(+), 25 deletions(-) diff --git a/ref-test/app/admin/templates/admin/components/og-meta.html b/ref-test/app/admin/templates/admin/components/og-meta.html index 5c63bca..45453e1 100644 --- a/ref-test/app/admin/templates/admin/components/og-meta.html +++ b/ref-test/app/admin/templates/admin/components/og-meta.html @@ -2,16 +2,17 @@ - + - + - + - \ No newline at end of file + + \ No newline at end of file diff --git a/ref-test/app/quiz/templates/quiz/components/og-meta.html b/ref-test/app/quiz/templates/quiz/components/og-meta.html index 5c63bca..45453e1 100644 --- a/ref-test/app/quiz/templates/quiz/components/og-meta.html +++ b/ref-test/app/quiz/templates/quiz/components/og-meta.html @@ -2,16 +2,17 @@ - + - + - + - \ No newline at end of file + + \ No newline at end of file diff --git a/ref-test/app/templates/404.html b/ref-test/app/templates/404.html index 77cf2ac..483d1b0 100644 --- a/ref-test/app/templates/404.html +++ b/ref-test/app/templates/404.html @@ -1,8 +1,82 @@ -{% extends "components/base.html" %} + + + + + + + + + + {% block style %} + {% endblock %} + {% block title %} SKA Referee Test Beta {% endblock %} + + -{% block content %} -

Page Not Found

-

- The page you were looking for does not exist. Try going back and navigating to the desired destination correctly. -

-{% endblock %} \ No newline at end of file + {% block navbar %} + {% include "components/navbar.html" %} + {% endblock %} + +
+ {% block top_alerts %} + {% include "components/server-alerts.html" %} + {% endblock %} + {% block content %} +

Page Not Found

+

+ The page you were looking for does not exist. Try going back and navigating to the desired destination correctly. +

+ {% endblock %} +
+ {% include "components/footer.html" %} +
+
+ + + + + + + + + + {% block script %} + {% endblock %} + + \ No newline at end of file diff --git a/ref-test/app/templates/components/og-meta.html b/ref-test/app/templates/components/og-meta.html index 5c63bca..ec7858a 100644 --- a/ref-test/app/templates/components/og-meta.html +++ b/ref-test/app/templates/components/og-meta.html @@ -2,16 +2,17 @@ - + - + - + - \ No newline at end of file + + \ No newline at end of file diff --git a/ref-test/main.py b/ref-test/main.py index b0ffffe..aa270a9 100644 --- a/ref-test/main.py +++ b/ref-test/main.py @@ -41,14 +41,11 @@ def create_app(): flash(f'Cookie Consent: This web site only stores minimal, functional cookies. It does not store any tracking information. By using this site, you consent to this use of cookies. For more information, see our privacy policy.', 'cookie_alert') @app.errorhandler(404) - def _404_handler(error): - return render_template('404.html') + def _404_handler(error): return render_template('404.html') @app.errorhandler(CSRFError) - def _csrf_handler(): - return jsonify({'error':'Could not validate a secure connection.'}), 403 + def _csrf_handler(): return jsonify({'error':'Could not validate a secure connection.'}), 403 @app.context_processor - def _now(): - return {'now': datetime.now()} + def _now(): return {'now': datetime.now()} from app.admin.views import admin from app.api.views import api