Quellcode durchsuchen

Fix site name on login screen (#649)

Fixes #646 . Problem was due to variable scoping in django templates.
Vince Salvino vor 8 Monaten
Ursprung
Commit
08075762a9
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. 3 1
      coderedcms/templates/wagtailadmin/login.html

+ 3 - 1
coderedcms/templates/wagtailadmin/login.html

@@ -1,4 +1,6 @@
 {% extends "wagtailadmin/login.html" %}
 {% load coderedcms_tags i18n %}
+{% block branding_login %}
 {% django_setting "WAGTAIL_SITE_NAME" as wagtail_site_name %}
-{% block branding_login %}{% trans 'Sign in to' %} {{ wagtail_site_name }}{% endblock %}
+{% trans 'Sign in to' %} {{ wagtail_site_name }}
+{% endblock %}