Remove always-on auth header; links moved to the homepage

This commit is contained in:
Frédéric Péters 2010-06-01 16:30:10 +02:00
parent 6496f19adc
commit a71c7677db
3 changed files with 10 additions and 33 deletions

View File

@ -4,26 +4,6 @@ html, body {
color: black;
}
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;
}
span#auth-user-actions {
float: right;
}
div#content {
margin: 1em 1ex;
}

View File

@ -8,18 +8,8 @@
</head>
<body>
<div id="auth-header">
{% block auth_header %}
<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> |
<a href="{% url auth_password_change %}">{% trans "Change password" %}</a>)
{% else %}
<a href="{% url auth_login %}">{% trans "Log in" %}</a>
{% endif %}
</span>
<div id="header">
{% block header %}
{% endblock %}
</div>

View File

@ -2,5 +2,12 @@
{% load i18n %}
{% block content %}
Index page
<h2>{% trans "Account Management" %}</h2>
<ul>
<li><a href="{% url auth_password_change %}">{% trans "Change password" %}</a></li>
<li><a href="{% url auth_logout %}">{% trans "Log out" %}</a></li>
</ul>
{% endblock %}