From 5ec4d1aab07a9f24ccd314cc506766da54b669eb Mon Sep 17 00:00:00 2001 From: b3yond Date: Thu, 26 Apr 2018 23:48:26 +0200 Subject: [PATCH] displaying city or other titles on various pages. still ugly. --- frontend.py | 2 +- template/wrapper.tpl | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 @@
+ {{get('title', '')}} % if defined('error'):