Merge branch 'taiste' into tinople/css-rewrite-taiste

This commit is contained in:
Julien Constant
2023-03-14 12:27:41 +01:00
committed by GitHub
15 changed files with 602 additions and 255 deletions

View File

@ -2,7 +2,9 @@
{% block content %}
<h3>{% trans %}404, Not Found{% endtrans %}</h3>
<div id="page">
<h3>{% trans %}404, Not Found{% endtrans %}</h3>
</div>
{% endblock %}

View File

@ -72,7 +72,9 @@ def forbidden(request, exception):
def not_found(request, exception):
return HttpResponseNotFound(render(request, "core/404.jinja"))
return HttpResponseNotFound(
render(request, "core/404.jinja", context={"exception": exception})
)
def internal_servor_error(request):

View File

@ -207,7 +207,7 @@ class UserTabsMixin(TabedViewMixin):
"name": _("Pictures"),
},
]
if 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}),