Просмотр исходного кода

Fix site name on login screen (#649)

Fixes #646 . Problem was due to variable scoping in django templates.
Vince Salvino 8 месяцев назад
Родитель
Сommit
08075762a9
1 измененных файлов с 3 добавлено и 1 удалено
  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 %}