diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2013-10-16 00:33:38 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2013-10-16 00:33:38 +0200 |
commit | d64e80b53fa82af41c6e49b9de08632348c3527a (patch) | |
tree | c68a946cb2d3ae1d8a3fdd844d49005bbf16f99e /templates | |
parent | 821ed2fd7fa725c7bd0353fd3f5a7e843198682d (diff) | |
download | kosten-d64e80b53fa82af41c6e49b9de08632348c3527a.tar.gz kosten-d64e80b53fa82af41c6e49b9de08632348c3527a.tar.bz2 kosten-d64e80b53fa82af41c6e49b9de08632348c3527a.zip |
Print username or description in title
Diffstat (limited to '')
-rw-r--r-- | templates/layout.jinja | 4 |
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"> |