diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2017-02-12 12:33:53 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2017-02-12 12:33:53 +0100 |
commit | 79c40b18b6099cf65d854e0c902a4f8ed9e57c93 (patch) | |
tree | 1b6150523d9f4ae3fd96d4d84fe6b05bfa1fce91 /templates | |
parent | 9493851b758a2161941f5d0c6aac23d0500d8425 (diff) | |
download | kosten-79c40b18b6099cf65d854e0c902a4f8ed9e57c93.tar.gz kosten-79c40b18b6099cf65d854e0c902a4f8ed9e57c93.tar.bz2 kosten-79c40b18b6099cf65d854e0c902a4f8ed9e57c93.zip |
Incorporate API changes
Diffstat (limited to '')
-rw-r--r-- | templates/layout.jinja | 4 | ||||
-rw-r--r-- | templates/menu.jinja | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/layout.jinja b/templates/layout.jinja index e215c3c..af11523 100644 --- a/templates/layout.jinja +++ b/templates/layout.jinja @@ -15,7 +15,7 @@ <div id="logo"> <img src="{{ "images/currency.png" | static_url }}"> <h1><a href="{{ url_for("index") }}">Kosten</a></h1> - {% if current_user.is_authenticated() %} + {% if current_user.is_authenticated %} <h2>» {{ current_user.description | default('von ' ~ current_user.name, true) }}</h2> {% endif %} </div> @@ -28,7 +28,7 @@ {% for uri, page in menu %} <li class="menu-item"><a href="{{ url_for(uri) }}">{{page}}</a></li> {% endfor %} - {% if current_user.is_authenticated() %} + {% if current_user.is_authenticated %} <li class="search"> <img class="search" src="{{ "images/lupe.png" | static_url }}" alt="Search"> <form class="search" method="post" action="{{ url_for("expenses.search") }}"> diff --git a/templates/menu.jinja b/templates/menu.jinja index 0422612..df5b6a1 100644 --- a/templates/menu.jinja +++ b/templates/menu.jinja @@ -6,7 +6,7 @@ ("stats.show", "Statistiken") ] %} -{% if current_user.is_authenticated() %} +{% if current_user.is_authenticated %} {% set menu = menu + [ ("user.cpw", "Passwort ändern"), ("user.logout", "Logout")] |