projects
/
matthijs
/
projects
/
dorestad-bookings.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9751416
)
tickets: Show the currently logged in user on every page.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Tue, 19 Oct 2010 17:41:39 +0000
(19:41 +0200)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Tue, 19 Oct 2010 17:41:39 +0000
(19:41 +0200)
tickets/templates/tickets/base.html
patch
|
blob
|
history
diff --git
a/tickets/templates/tickets/base.html
b/tickets/templates/tickets/base.html
index f1a07b8b99c1bd6d2d1fbf674a9f2f6e0a5f32c8..6c43fc93c81265bfca2d0244f5eab4c5853f7e56 100644
(file)
--- a/
tickets/templates/tickets/base.html
+++ b/
tickets/templates/tickets/base.html
@@
-43,6
+43,10
@@
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 }} — <a href="{% url logout %}">Uitloggen</a></p>
+{% endif %}
</body>
</html>