Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added a link in admin branding block to admin index.

Refs #13749 and #21220.
  • Loading branch information...
commit 259a6ea82cfb8bf242449666e4b643a19e54a423 1 parent 698dd82
@ryangallen ryangallen authored timgraham committed
View
7 django/contrib/admin/static/admin/css/base.css
@@ -790,6 +790,9 @@ table#change-history tbody th {
font-size: 18px;
margin: 8px 0;
font-weight: normal;
+}
+
+#branding h1, #branding h1 a:link, #branding h1 a:visited {
color: #f4f379;
}
@@ -801,6 +804,10 @@ table#change-history tbody th {
color: #ffc;
}
+#branding a:hover {
+ text-decoration: none;
+}
+
#user-tools {
position: absolute;
top: 0;
View
2  django/contrib/admin/templates/admin/base_site.html
@@ -3,7 +3,7 @@
{% block title %}{{ title }} | {{ site_title }}{% endblock %}
{% block branding %}
-<h1 id="site-name">{{ site_header }}</h1>
+<h1 id="site-name"><a href="{% url 'admin:index' %}">{{ site_header }}</a></h1>
{% endblock %}
{% block nav-global %}{% endblock %}

0 comments on commit 259a6ea

Please sign in to comment.
Something went wrong with that request. Please try again.