Disabled Galaxy button & Removed 404 exception display

This commit is contained in:
Théo DURR 2023-03-08 12:50:52 +01:00
parent c1e59a0676
commit 773808fa59
No known key found for this signature in database
GPG Key ID: 708858E9F7281E30
3 changed files with 7 additions and 3 deletions

View File

@ -4,9 +4,9 @@
<div id="page">
<h3>{% trans %}404, Not Found{% endtrans %}</h3>
<p class="alert alert-red">
{% comment %} <p class="alert alert-red">
{{ exception }}
</p>
</p> {% endcomment %}
</div>
{% endblock %}

View File

@ -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}),

View File

@ -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