From 0dfa5d30fea9c1882b9141fa51f32f670c4e09e8 Mon Sep 17 00:00:00 2001 From: pstruebi Date: Tue, 14 Jun 2022 13:00:16 +0200 Subject: [PATCH] add unattend button --- .gitignore | 3 ++- .vscode/launch.json | 17 +++++++++++++++++ templates/index.html | 10 +++++++++- 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.gitignore b/.gitignore index 6769e21..6f20822 100644 --- a/.gitignore +++ b/.gitignore @@ -157,4 +157,5 @@ cython_debug/ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. -#.idea/ \ No newline at end of file +#.idea/ +users.db diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..2fa8e7f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,17 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Python: Current File", + "type": "python", + "request": "launch", + "program": "${file}", + "console": "integratedTerminal", + "justMyCode": true, + "args": ["--show_events"] + } + ] +} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 61f55b2..f1bcf42 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,7 +1,7 @@ {% extends 'base.html' %} {% block content %} -

{% block title %} Hallo, {{user["username"]}} {% endblock %}

+

{% block title %} Hallo, {{user["username"]}} ({{user["email"]}}) {% endblock %}

{% set ns = namespace(last_date='...') %} {% for event in events %} @@ -12,6 +12,14 @@

{{event["weekday"] + " " + event["start"]["date"] }}

{% endif %}

{{ event['subject'] }}

+ + + Teilnehmen + + + Abmelden + + {{ event["start"]["time"] }} {{ event["duration"] }} {% for attendee in event["attendees"] %}