Put log in / log out in its place!

This commit is contained in:
Jef van Schendel 2011-05-26 00:15:26 +02:00
parent 207219b561
commit 38aa4a4026
2 changed files with 6 additions and 1 deletions

View File

@ -52,6 +52,10 @@ label {
margin-right: auto;
}
.mediagoblin_header_right {
float:right;
}
.button_red, .button_green {
font-family: 'Carter One', arial, serif;
height: 28px;

View File

@ -32,7 +32,7 @@
{% block mediagoblin_logo %}
<a href="{{ request.urlgen('index') }}"><img src="{{ request.staticdirect('/images/icon.png') }}" class="icon" /></a>
{% endblock %}{% block mediagoblin_header_title %}MediaGoblin Home{% endblock %}
<div class="mediagoblin_header_right">
{% if request.user %}
Welcome {{ request.user['username'] }}! --
<a href="{{ request.urlgen('mediagoblin.auth.logout') }}">
@ -41,6 +41,7 @@
<a href="{{ request.urlgen('mediagoblin.auth.login') }}">
Login</a>
{% endif %}
</div>
</div>
</div>
{% endblock %}