From 9b01e935b834b9f12e843de5a332e410103ebec8 Mon Sep 17 00:00:00 2001 From: Anders Bruun Severinsen <202204885@post.au.dk> Date: Thu, 18 Jul 2024 20:12:57 +0200 Subject: [PATCH] Initial commit --- bartab/templates/bartab.html | 2 +- bartenders/templates/barplan.html | 12 +- bartenders/templates/index.html | 2 +- guides/templates/guides.html | 2 +- web/static/css/stylesheet.css | 599 ++++++++++++++++++----- web/static/images/facebook.png | Bin 1959 -> 711 bytes web/static/images/facebook_negative.png | Bin 750 -> 0 bytes web/static/images/github.png | Bin 1401 -> 788 bytes web/static/images/github_negative.png | Bin 1815 -> 0 bytes web/static/images/instagram.png | Bin 2314 -> 977 bytes web/static/images/instagram_negative.png | Bin 1045 -> 0 bytes web/static/images/logo.png | Bin 10842 -> 45088 bytes web/static/js/darkModeState.js | 54 ++ web/templates/about.html | 4 +- web/templates/base.html | 19 +- web/templates/plain_base.html | 3 + 16 files changed, 553 insertions(+), 144 deletions(-) delete mode 100644 web/static/images/facebook_negative.png delete mode 100644 web/static/images/github_negative.png delete mode 100644 web/static/images/instagram_negative.png create mode 100644 web/static/js/darkModeState.js diff --git a/bartab/templates/bartab.html b/bartab/templates/bartab.html index df47604..85a01ae 100644 --- a/bartab/templates/bartab.html +++ b/bartab/templates/bartab.html @@ -24,7 +24,7 @@

{% translate "Total forbrug" %}: {{ total_used }}

{% for entry in entries %} - 0 %} class="success"{% elif entry.balance <= credit_hold_limit %} class="danger"{% endif %}> + 0 %} class="success-"{% elif entry.balance <= credit_hold_limit %} class="danger-"{% endif %}> {{ entry.shift }} {{ entry.added }} {{ entry.used }} diff --git a/bartenders/templates/barplan.html b/bartenders/templates/barplan.html index 5accac2..12f57a4 100644 --- a/bartenders/templates/barplan.html +++ b/bartenders/templates/barplan.html @@ -26,16 +26,16 @@

{% translate "Barplan" %}

{% for shift in bartendershifts %} - - {{ shift.display_str }}{% if show_all %} {{ shift.start_datetime.year }}{% endif %} - {{ shift.responsible.name }} - + + {{ shift.display_str }} {% if show_all %} {{ shift.start_datetime.year }}{% endif %} + {{ shift.responsible.name }} + {% for bartender in shift.other_bartenders.all %} - {% if bartender.first_bartender_shift == shift %}{{ bartender.name }}{% else %}{{ bartender.name }}{% endif %}{% if not forloop.last %},{% endif %} + {% if bartender.first_bartender_shift == shift %}{{ bartender.name }}{% else %}{{ bartender.name }}{% endif %}{% if not forloop.last %},{% endif %} {% endfor %} {% if user.is_staff %} - {% translate "Edit" %} + {% translate "Edit" %} {% endif %} {% endfor %} diff --git a/bartenders/templates/index.html b/bartenders/templates/index.html index ba12456..af6299c 100644 --- a/bartenders/templates/index.html +++ b/bartenders/templates/index.html @@ -5,7 +5,7 @@ {% block content %} -{% translate "Velkommen til Fredagscaféens webside, her kan du finde information om åbningstider, sortiment, udlejning af fadølsanlæg og grill mm." %} +

{% translate "Velkommen til Fredagscaféens webside, her kan du finde information om åbningstider, sortiment, udlejning af fadølsanlæg og grill mm." %}

diff --git a/guides/templates/guides.html b/guides/templates/guides.html index a4497cd..fe97039 100644 --- a/guides/templates/guides.html +++ b/guides/templates/guides.html @@ -18,7 +18,7 @@

{% translate "Guides" %}

{% for category, guides in guides %}
-
{{ category }}
+
{{ category }}
-