diff --git a/frontend.py b/frontend.py index f5445e5..1892ad5 100755 --- a/frontend.py +++ b/frontend.py @@ -80,7 +80,7 @@ def login_post(): @view('template/user-facing.tpl') def city_page(city): # :todo how can we transfer the city name to the wrapper template? - pass + return dict(title=city) @get('/settings') diff --git a/template/wrapper.tpl b/template/wrapper.tpl index d9a349a..43d8f7e 100644 --- a/template/wrapper.tpl +++ b/template/wrapper.tpl @@ -13,6 +13,7 @@ <body> <div id="content"> <a href="/"><img src="/static/img/ticketfrei_logo.png" alt="<h1>Ticketfrei</h1>" id="logo"></a> + {{get('title', '')}} % if defined('error'): <div class="ui-widget"> <div class="ui-state-error ui-corner-all" style="padding: 0.7em;">