summaryrefslogtreecommitdiff
path: root/templates/layout.jinja
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--templates/layout.jinja4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/layout.jinja b/templates/layout.jinja
index 0c70689..b3f821d 100644
--- a/templates/layout.jinja
+++ b/templates/layout.jinja
@@ -14,7 +14,9 @@
<div id="logo">
<img src="{{ "images/currency.png" | static_url }}">
<h1><a href="{{ url_for("index") }}">Kosten</a></h1>
- <h2>»   vom Nec</h2>
+ {% if current_user.is_authenticated() %}
+ <h2>»   {{ current_user.description | default('von ' ~ current_user.name, true) }}</h2>
+ {% endif %}
</div>
<div id="header">