tickets: Show the currently logged in user on every page.
authorMatthijs Kooijman <matthijs@stdin.nl>
Tue, 19 Oct 2010 17:41:39 +0000 (19:41 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Tue, 19 Oct 2010 17:41:39 +0000 (19:41 +0200)
tickets/templates/tickets/base.html

index f1a07b8b99c1bd6d2d1fbf674a9f2f6e0a5f32c8..6c43fc93c81265bfca2d0244f5eab4c5853f7e56 100644 (file)
           didn't work with margin-right for some reason */
        padding-right: 15px;
     }
+    .username {
+       /* Center the username display */
+       text-align: center;
+    }
 </style>
 </head>
 <body>
@@ -50,5 +54,8 @@
        {% block content %}
        {% endblock %}
     </div>
+{% if user.is_authenticated %}
+<p class="username">Ingelogd als {{ user.username }} &mdash; <a href="{% url logout %}">Uitloggen</a></p>
+{% endif %}
 </body>
 </html>