From 43947c05fe2e913e203f6d110844e0cd2d393d24 Mon Sep 17 00:00:00 2001 From: Jan Tuomi Date: Fri, 1 Mar 2024 10:17:30 +0200 Subject: Add an about text to landing page --- app.py | 3 ++- templates/index.html.j2 | 13 ++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index f9e3b03..5e885a7 100644 --- a/app.py +++ b/app.py @@ -46,7 +46,8 @@ def index(): created_polls = db.get_polls_by_codes(created_poll_codes) if len(created_poll_codes) > 0 else [] return render_template('index.html.j2', - created_polls=created_polls) + created_polls=created_polls, + now=datetime.datetime.now()) @app.post("/poll/create") def create(): diff --git a/templates/index.html.j2 b/templates/index.html.j2 index db458da..546a684 100644 --- a/templates/index.html.j2 +++ b/templates/index.html.j2 @@ -5,7 +5,7 @@
{% include "poll_info_table.html.j2" %} -

You can add options after submitting.

+

You can add time options as well as modify all settings after submitting.

@@ -18,4 +18,15 @@ {% endif %} +
+
+
+

About diddle

+

diddle is a minimalist, mobile friendly, fast and self-hosted scheduling tool, + licensed under Apache 2.0. +

+

+ Find diddle on GitHub. © {{ now.year }} Jan Tuomi. All rights reserved. +

+
{% endblock %} -- cgit v1.3