diff --git a/app.py b/app.py index bc5b2cd..fc1013b 100644 --- a/app.py +++ b/app.py @@ -135,10 +135,15 @@ def index(): for habit_list in habit_lists: habit_list.habits = sorted(habit_list.get_habits(), key=lambda habit: (not habit.checked, habit.slot)) + days = {"Monday": "Montag", "Tuesday": "Dienstag", "Wednesday": "Mittwoch", "Thursday": "Donnerstag", + "Friday": "Freitag", "Saturday": "Samstag", "Sunday": "Sonntag"} + + date = datetime.datetime.now().strftime("%d.%m.%Y %H:%M ") + days[datetime.datetime.now().strftime("%A")] + return render_template( 'index.html', title=name, - utc_dt=datetime.datetime.now().strftime("%d.%m.%Y %H:%M %A"), + utc_dt=date, habit_lists=habit_lists, heatmap_values=heatmap_values, errors={}, diff --git a/templates/components/habit_lists.html b/templates/components/habit_lists.html index 892535c..832e9ea 100644 --- a/templates/components/habit_lists.html +++ b/templates/components/habit_lists.html @@ -121,7 +121,7 @@ -
{{ habit.note }}
@@ -129,7 +129,7 @@
{% if not habit.streak == 0 %} - {{ habit.streak }} 🔥 + {{ habit.streak }}20 🔥 {% endif %}
@@ -140,7 +140,7 @@ - + diff --git a/templates/habit-list.html b/templates/habit-list.html index ed0a590..bd3c2c4 100644 --- a/templates/habit-list.html +++ b/templates/habit-list.html @@ -2,7 +2,7 @@ {% block content %}
-

Habitliste erstellen📋

+

Gewohnheitsliste erstellen📋

diff --git a/templates/habit.html b/templates/habit.html index 0d116c1..f1bc573 100644 --- a/templates/habit.html +++ b/templates/habit.html @@ -2,7 +2,7 @@ {% block content %}
-

Habit erstellen📋

+

Gewohnheit erstellen📋

diff --git a/templates/users.html b/templates/users.html index e306157..e17ee21 100644 --- a/templates/users.html +++ b/templates/users.html @@ -1,23 +1,25 @@ {% extends 'layouts/main.html' %} {% block content %} +
+

{{ habit_list.name }}: {{ title }}

+

Lade Nutzer per ihrer E-Mail-Adresse ein

-

{{ habit_list.name }}: {{ title }}

-

Lade Nutzer per ihrer E-Mail-Adresse ein

- - -
- - -
- {{ errors.get('email', '') }} + +
+ + +
+ {{ errors.get('email', '') }} +
-
- - - - - + + + + +
{% endblock %}