diff --git a/templates/base.html b/templates/base.html
index be0262c..192c094 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -1,72 +1,210 @@
-
-
- {% block title %}Getränkeliste{% endblock %}
-
-
-
-
-
- {% block content %}{% endblock %}
- {% if user %}
- {% if 'Fachschaft' in user.groups %}
- Du bist Teil der Fachschaft Informatik.
+
+
+ {% block title %}Getränkeliste{% endblock %}
+
+
+
+
+
+ Getränkeliste
+ {% if user %}
+
+ Angemeldet als {{ user.preferred_username }}{% if 'Fachschaft
+ Admins' in user.groups %} (Admin){% endif %} –
+ Logout
+
{% endif %}
- {% if 'Fachschaft Admins' in user.groups %}
- Admin Interface
- Ausgleichszahlung:
- Der eingegebene Betrag wird vom aktuell eingeloggten Nutzer abgezogen und dem eingetragenem Nutzer gutgeschrieben.
-
- Users in database:
-
-
-
- | Username |
- Role |
- Money (€) |
-
-
-
- {% for db_user in users %}
-
- | {{ db_user.username }} |
- {{ db_user.role }} |
- {{ db_user.money / 100 }} |
+
+
+ {% block content %}{% endblock %} {% if user %} {% if 'Fachschaft'
+ in user.groups %}
+ Du bist Teil der Fachschaft Informatik.
+ {% endif %} {% if 'Fachschaft Admins' in user.groups %}
+ Admin Interface
+ Ausgleichszahlung:
+
+ Der eingegebene Betrag wird vom aktuell eingeloggten Nutzer
+ abgezogen und dem eingetragenem Nutzer gutgeschrieben.
+
+
+ Users in database:
+
+
+
+ | Username |
+ Role |
+ Money (€) |
- {% endfor %}
-
-
- Set user money:
-
- {% endif %}
- {% endif %}
-
-
+
+
+ {% for db_user in users %}
+
+ |
+ {{ db_user.username }}
+ |
+ {{ db_user.role }} |
+
+ {{ db_user.money / 100 }}
+ |
+
+ {% endfor %}
+
+
+ Set user money:
+
+ {% endif %} {% endif %}
+
+
diff --git a/templates/index.html b/templates/index.html
index b8c7222..965d149 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,39 +1,75 @@
-{% extends "base.html" %}
-{% block title %}Startseite{% endblock %}
-{% block content %}
+{% extends "base.html" %} {% block title %}Startseite{% endblock %} {% block
+content %}
Willkommen, {{ user.name }}!
Dies ist eine einfache geschützte Seite.
Aktueller Kontostand:
{% if db_user.money > -5000 %}
-
- {{ db_user.money / 100 }} Euro
-
+
+ {{ db_user.money / 100 }} Euro
+
{% else %}
-
- {{ db_user.money / 100 }} Euro
-
-
- Bitte begleiche deinen offenen Betrag!
-
-
-{% endif %}
-{% if 'Fachschaft' in user.groups %}
- {% if db_user.money > -5000 %}
-
-
+
+{% endif %} {% endif %} {% endblock %}
diff --git a/templates/login.html b/templates/login.html
index 6730f2e..378a25d 100644
--- a/templates/login.html
+++ b/templates/login.html
@@ -1,21 +1,39 @@
-{% extends "base.html" %}
-{% block title %}Login{% endblock %}
-{% block content %}
+{% extends "base.html" %} {% block title %}Login{% endblock %} {% block content
+%}
Login
-
+
-
-
{% endblock %}