From 683c757c54bd6c5f35f43c5737b766a2c1885742 Mon Sep 17 00:00:00 2001 From: Wilson Miner Date: Mon, 23 Jan 2006 22:53:50 +0000 Subject: [PATCH] Removed example.com from default admin templates. One less thing to change in setup. git-svn-id: http://code.djangoproject.com/svn/django/trunk@2117 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/admin/media/css/global.css | 17 ++++++++--------- django/contrib/admin/templates/admin/base.html | 3 +-- .../admin/templates/admin/base_site.html | 1 - 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/django/contrib/admin/media/css/global.css b/django/contrib/admin/media/css/global.css index 4f90cb1b6e..b7df183547 100644 --- a/django/contrib/admin/media/css/global.css +++ b/django/contrib/admin/media/css/global.css @@ -40,7 +40,7 @@ div.system-message p.system-message-title { padding:4px 5px 4px 25px; margin:0; /* PAGE STRUCTURE */ #container { position:relative; width:100%; min-width:720px; } -#header { text-align:left; min-height:55px; _height:55px; } +#header { text-align:left; } #content { margin:10px 15px; } #content-main { float:left; } #content-related { float:right; } @@ -57,7 +57,7 @@ div.system-message p.system-message-title { padding:4px 5px 4px 25px; margin:0; .popup .flex #content-main, .popup .colM #content-main { width:100% !important; } .subcol { float:left; width:46%; margin-right:15px; } -/* WIDTHS */ +/* WIDTHS - DEPRECATED */ .x50 { width:50px; } .x75 { width:75px; } .x100 { width:100px; } @@ -69,14 +69,13 @@ div.system-message p.system-message-title { padding:4px 5px 4px 25px; margin:0; .x500 { width:500px; } /* HEADER */ -#header { background:#417690; color:#ffc; } -#header a:link, #header a:visited { color:white; } +#header { background:#417690; color:#ffc; min-height:2.5em; _height:2.5em; } +#header a:link, #header a:visited { color:white; } #header a:hover { text-decoration:underline; } -#branding { float:left; width:480px; } -#branding h1 /* client name */ { padding:8px 0 0 10px; margin:0; font-size:18px; font-weight:normal; color:#f4f379; } -#branding h2 /* site name */ { font-size:14px; padding:0 0 8px 10px; margin:0; font-weight:normal; color:#ffc; } -#user-tools { font-size:11px; padding:8px 8px 0 5px; text-align:right; } - +#branding { float:left; width:18em; } +#branding h1 { padding:0.5em 10px 0 10px; font-size:18px; margin:0; font-weight:normal; color:#f4f379; } +#branding h2 { padding:0 10px 0.5em 10px; font-size:14px; margin:0; font-weight:normal; color:#ffc; } +#user-tools { padding:1.2em 10px; font-size:11px; text-align:right; } /* SIDEBAR */ #content-related h3 { font-size:12px; color:#666; margin-bottom:3px; } diff --git a/django/contrib/admin/templates/admin/base.html b/django/contrib/admin/templates/admin/base.html index ef657528a1..912a620010 100644 --- a/django/contrib/admin/templates/admin/base.html +++ b/django/contrib/admin/templates/admin/base.html @@ -20,10 +20,9 @@ {% block branding %}{% endblock %} {% if not user.is_anonymous %} -
{% trans 'Welcome,' %} {% if user.first_name %}{{ user.first_name }}{% else %}{{ user.username }}{% endif %}.
{% block userlinks %}{% trans 'Documentation' %} / {% trans 'Change password' %} / {% trans 'Log out' %}{% endblock %}
+
{% trans 'Welcome,' %} {% if user.first_name %}{{ user.first_name }}{% else %}{{ user.username }}{% endif %}. {% block userlinks %}{% trans 'Documentation' %} / {% trans 'Change password' %} / {% trans 'Log out' %}{% endblock %}
{% endif %} {% block nav-global %}{% endblock %} -
{% block breadcrumbs %}{% endblock %} diff --git a/django/contrib/admin/templates/admin/base_site.html b/django/contrib/admin/templates/admin/base_site.html index cb2ea43254..b4d285b779 100644 --- a/django/contrib/admin/templates/admin/base_site.html +++ b/django/contrib/admin/templates/admin/base_site.html @@ -5,7 +5,6 @@ {% block branding %}

{% trans 'Django administration' %}

-

example.com

{% endblock %} {% block nav-global %}{% endblock %}