From 0dd5593cdd5be54232a951b2cb9ff27964643914 Mon Sep 17 00:00:00 2001
From: Anders Bruun Severinsen <202204885@post.au.dk>
Date: Thu, 18 Jul 2024 23:27:56 +0200
Subject: [PATCH] Added DarkMode
---
bartab/templates/bartab.html | 2 +-
bartenders/templates/barplan.html | 12 +-
bartenders/templates/bartender_info.html | 7 +-
bartenders/templates/board.html | 3 +-
guides/templates/guides.html | 2 +-
locale/da/LC_MESSAGES/django.mo | Bin 670 -> 1759 bytes
locale/da/LC_MESSAGES/django.po | 191 +++++++++++++++++----
locale/en/LC_MESSAGES/django.mo | Bin 19078 -> 21075 bytes
locale/en/LC_MESSAGES/django.po | 202 ++++++++++++++++++-----
web/static/css/stylesheet.css | 57 ++++---
web/static/js/darkModeState.js | 56 +++++++
web/static/js/timesheet-black.min.css | 2 +
web/templates/base.html | 3 +-
web/templates/plain_base.html | 6 +-
14 files changed, 439 insertions(+), 104 deletions(-)
mode change 100644 => 100755 web/static/css/stylesheet.css
create mode 100644 web/static/js/timesheet-black.min.css
diff --git a/bartab/templates/bartab.html b/bartab/templates/bartab.html
index 85a01ae..df47604 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 12f57a4..22300ca 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/bartender_info.html b/bartenders/templates/bartender_info.html
index 427e64a..35e3aa8 100644
--- a/bartenders/templates/bartender_info.html
+++ b/bartenders/templates/bartender_info.html
@@ -6,8 +6,13 @@
{% block extrahead %}
+