Some minimalistic styling

This commit is contained in:
Frédéric Péters 2010-06-01 10:03:16 +02:00
parent 8ed0caf85b
commit 51f987e83d
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,27 @@
html, body {
margin: 0;
}
div#auth-header {
background: black;
color: #eee;
padding: 1px 5px 2px 5px;
border-bottom: 1px solid #888;
}
div#auth-header a {
color: white;
text-decoration: none;
}
div#auth-header a:hover {
text-decoration: underline;
}
div#content {
margin: 1em 1ex;
}
span#auth-user-actions {
float: right;
}

View File

@ -10,7 +10,8 @@
<body>
<div id="auth-header">
{% block auth_header %}
<a href="{% url index %}">{% trans "Home" %}</a> |
<a href="{% url index %}">{% trans "Home" %}</a>
<span id="auth-user-actions">
{% if user.is_authenticated %}
{% trans "Logged in" %}: {{ user.username }} |
(<a href="{% url auth_logout %}">{% trans "Log out" %}</a> |
@ -18,6 +19,7 @@
{% else %}
<a href="{% url auth_login %}">{% trans "Log in" %}</a>
{% endif %}
</span>
{% endblock %}
</div>