From 3f076578bb07d73f535ac3c25a7aba0eb06f4a57 Mon Sep 17 00:00:00 2001 From: Micah Walter Date: Wed, 5 Jan 2022 12:31:07 -0500 Subject: [PATCH] Added link to admin home page on logo and title. #147 --- .../templates/admin/base_site.html | 20 ++++++++++--------- .../admin_interface/css/admin-interface.css | 4 ++++ 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/admin_interface/templates/admin/base_site.html b/admin_interface/templates/admin/base_site.html index 8fd27a0b..e02272d8 100644 --- a/admin_interface/templates/admin/base_site.html +++ b/admin_interface/templates/admin/base_site.html @@ -66,16 +66,18 @@ {% block branding %} {% get_admin_interface_theme as theme %}

- {% if theme.logo_visible %} - {% if theme.logo %} - - {% else %} - + + {% if theme.logo_visible %} + {% if theme.logo %} + + {% else %} + + {% endif %} {% endif %} - {% endif %} - {% if theme.title_visible %} - {% if theme.title %}{% trans theme.title %}{% else %}{{ site_header|default:_('Django administration') }}{% endif %} - {% endif %} + {% if theme.title_visible %} + {% if theme.title %}{% trans theme.title %}{% else %}{{ site_header|default:_('Django administration') }}{% endif %} + {% endif %} +

{% endblock %} diff --git a/admin_interface/templates/admin_interface/css/admin-interface.css b/admin_interface/templates/admin_interface/css/admin-interface.css index 2d48a7b4..43e845da 100644 --- a/admin_interface/templates/admin_interface/css/admin-interface.css +++ b/admin_interface/templates/admin_interface/css/admin-interface.css @@ -137,6 +137,10 @@ color: {{ theme.title_color }}; } +.admin-interface #branding h1 a { + color: inherit; +} + .admin-interface #branding h1 .logo.default { background-color: transparent; background-repeat: no-repeat;