From 5977e82edf855021e0da6665aa7e7a66b57e4826 Mon Sep 17 00:00:00 2001 From: jakobsn Date: Mon, 2 Dec 2019 12:23:44 +0100 Subject: [PATCH] polish --- src/app/static/stylesheet.css | 4 +++- src/app/templates/register.html | 1 + src/app/views/app.py | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/static/stylesheet.css b/src/app/static/stylesheet.css index 9bb8a68..5fb7ea8 100644 --- a/src/app/static/stylesheet.css +++ b/src/app/static/stylesheet.css @@ -1,8 +1,9 @@ body { background-color: lightblue; - display: flex; /* or inline-flex */ + display: inline-flex; /* or inline-flex */ flex-direction: column; margin: 0; + width: 100%; } .title { @@ -44,6 +45,7 @@ img { } nav { + display: ; margin-bottom: 10px; } diff --git a/src/app/templates/register.html b/src/app/templates/register.html index 31acc0e..11d27c8 100644 --- a/src/app/templates/register.html +++ b/src/app/templates/register.html @@ -13,6 +13,7 @@ $def with (nav, register_form, message) $:nav

Register user!

+
$:register_form.render()
diff --git a/src/app/views/app.py b/src/app/views/app.py index 1261bd9..f5028a7 100644 --- a/src/app/views/app.py +++ b/src/app/views/app.py @@ -37,6 +37,9 @@ if web.config.get('_session') is None: else: session = web.config._session +# Set session timeout +web.config.session_parameters['timeout'] = 12345678910 + # Add session to global variables render._add_global(session, 'session')