We now have user authentication via the web interface. @whee.

This commit is contained in:
Greg Taylor 2007-08-02 19:37:16 +00:00
parent be4e0069a6
commit 2e397df4d5
4 changed files with 56 additions and 5 deletions

View file

@ -18,7 +18,7 @@
{% block header_ext %}
{% endblock %}
<title>{{game_name}} - {% if flatpage %}{{flatpage.title}}{% else %}{{page_title}}{% endif %}</title>
<title>{{game_name}} - {% if flatpage %}{{flatpage.title}}{% else %}{% block titleblock %}{{page_title}}{% endblock %}{% endif %}</title>
</head>
<body>
@ -45,9 +45,15 @@
<div class="headerLinks">
<span class="doNotDisplay">Tools:</span>
<a href="/tbi">Log In &laquo;</a>
<span class="doNotDisplay">|</span>
<a href="/tbi">Register &laquo;</a>
{% if user.is_authenticated %}
<a href="/accounts/logout/">Log Out &laquo;</a>
<span class="doNotDisplay">|</span>
Logged in as {{user.username}} &laquo;
{% else %}
<a href="/accounts/login/">Log In &laquo;</a>
<span class="doNotDisplay">|</span>
<a href="/tbi">Register &laquo;</a>
{% endif %}
</div>
</div>