From 773808fa59447e98a7c2290261936fd10489c036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20DURR?= Date: Wed, 8 Mar 2023 12:50:52 +0100 Subject: [PATCH] Disabled Galaxy button & Removed 404 exception display --- core/templates/core/404.jinja | 4 ++-- core/views/user.py | 2 +- sith/settings.py | 4 ++++ 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/core/templates/core/404.jinja b/core/templates/core/404.jinja index 3846ed70..cc46a70e 100644 --- a/core/templates/core/404.jinja +++ b/core/templates/core/404.jinja @@ -4,9 +4,9 @@

{% trans %}404, Not Found{% endtrans %}

-

+{% comment %}

{{ exception }} -

+

{% endcomment %}
{% endblock %} diff --git a/core/views/user.py b/core/views/user.py index f9e616fa..bcff5504 100644 --- a/core/views/user.py +++ b/core/views/user.py @@ -207,7 +207,7 @@ class UserTabsMixin(TabedViewMixin): "name": _("Pictures"), }, ] - if False and self.request.user.was_subscribed: + if settings.SITH_ENABLE_GALAXY and self.request.user.was_subscribed: tab_list.append( { "url": reverse("galaxy:user", kwargs={"user_id": user.id}), diff --git a/sith/settings.py b/sith/settings.py index 8cce1144..69ecddc4 100644 --- a/sith/settings.py +++ b/sith/settings.py @@ -291,6 +291,10 @@ SITH_URL = "my.url.git.an" SITH_NAME = "Sith website" SITH_TWITTER = "@ae_utbm" +# Enable experimental features +# Enable/Disable the galaxy button on user profile (urls stay activated) +SITH_ENABLE_GALAXY = False + # AE configuration # TODO: keep only that first setting, with the ID, and do the same for the other clubs SITH_MAIN_CLUB_ID = 1