detect logged in users on the home page (mostly debugging social auth)

This commit is contained in:
Jonas Obrist 2012-08-18 17:23:15 +02:00
parent 28c6241553
commit 603c29c8b4
2 changed files with 5 additions and 1 deletions

View file

@ -15,8 +15,12 @@
<div class="row">
<div class="span8 offset2">
<div class="hero-unit">
{% if request.user.is_authenticated %}
<p>Welcome back, {{ request.user.username }}</p>
{% else %}
<a class="btn btn-large btn-primary" href="{% url login %}">Login with
GitHub</a>
{% endif %}
</div>
</div>
</div>