summaryrefslogtreecommitdiff
path: root/templates/base.html
diff options
context:
space:
mode:
authorGuilherme Salgado <guilherme.salgado@linaro.org>2011-06-30 16:29:00 -0300
committerGuilherme Salgado <guilherme.salgado@linaro.org>2011-06-30 16:29:00 -0300
commit620745ec492b74eefa5041527f3ce962bf62ae1d (patch)
tree149550eb05fe3aae63db7d32b436c0d350aa3e88 /templates/base.html
parent85965bc62643d0e6b26c7376efb4a5f2030c53a1 (diff)
Make patches accesible on /<patch-id> and put a link to the user's dashboard in place of the login one at the top right corner so that users have a reason to login
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html15
1 files changed, 5 insertions, 10 deletions
diff --git a/templates/base.html b/templates/base.html
index 9f09b59..1dbbd6c 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -18,17 +18,12 @@
<img src="/images/linaro-logo.png" /></a>
{% block heading %}{% endblock %}</h1>
<div id="auth">
-{% if user.is_authenticated %}
- Logged in as
<a href="{% url patchwork.views.user.profile %}"
- ><strong>{{ user.username }}</strong></a>
- <br/>
- <a href="{% url auth_logout %}">logout</a>
-{% else %}
- <br/>
- <a href="{{ login_url }}">login</a>
- <br/>
-{% endif %}
+ ><strong>My dashboard</strong></a>
+ {% if user.is_authenticated %}
+ <br />({{ user.username }})
+ <br/><a href="{% url auth_logout %}">logout</a>
+ {% endif %}
</div>
<div style="clear: both;"></div>
</div>