summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRamiro Morales <cramm0@gmail.com>2014-05-07 23:12:58 -0300
committerRamiro Morales <cramm0@gmail.com>2014-05-07 23:32:36 -0300
commitbc82c0dbac33ced1a4d6953e8626236ae05af956 (patch)
treea44a4add9bfb30d44bedaa8330e324c119a34fc2
parent7f63ac5a9f0ed76d2e372a8c0fda95cce67e7170 (diff)
[1.7.x] Restored site header text in password reset view.
It's the one shown when the optional integration described in https://docs.djangoproject.com/en/dev/ref/contrib/admin/#adding-a-password-reset-feature is used. Follow-up to commits 6f470650d0 and 1d42a86ec7, together they fix different small UI regressions after a962286b74. Refs #21293. 5ea34f3f86 from master.
-rw-r--r--django/contrib/admin/templates/admin/base_site.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/admin/templates/admin/base_site.html b/django/contrib/admin/templates/admin/base_site.html
index bbef2c73dd..cae0a691e3 100644
--- a/django/contrib/admin/templates/admin/base_site.html
+++ b/django/contrib/admin/templates/admin/base_site.html
@@ -1,9 +1,9 @@
{% extends "admin/base.html" %}
-{% block title %}{{ title }} | {{ site_title }}{% endblock %}
+{% block title %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %}
{% block branding %}
-<h1 id="site-name"><a href="{% url 'admin:index' %}">{{ site_header }}</a></h1>
+<h1 id="site-name"><a href="{% url 'admin:index' %}">{{ site_header|default:_('Django administration') }}</a></h1>
{% endblock %}
{% block nav-global %}{% endblock %}