diff --git a/.DS_Store b/.DS_Store index e912288..438f052 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/app.py b/app.py index a9adb64..3254053 100644 --- a/app.py +++ b/app.py @@ -292,6 +292,7 @@ def admin_logs(date=None): date = datetime.now().strftime('%d') today = datetime.now().strftime('%Y-%m') # ← Hier definieren! + current_month = datetime.now().strftime('%Y-%m') log_dir = os.path.join(LOG_DIR, today) @@ -322,7 +323,7 @@ def admin_logs(date=None): logs=log_content, date=date, dates=dates, - today=today) # ← Hier mit übergeben! + today=current_month) @app.route('/configs/') diff --git a/configs/Schottische_Museumsbahn.webp b/configs/Schottische_Museumsbahn.webp new file mode 100644 index 0000000..80aff74 Binary files /dev/null and b/configs/Schottische_Museumsbahn.webp differ diff --git a/sounds/ Dampflok mit Waggons schnauft heran und rollt vorüber.mp3 b/sounds/ Dampflok mit Waggons schnauft heran und rollt vorüber.mp3 new file mode 100644 index 0000000..4d7dd9c Binary files /dev/null and b/sounds/ Dampflok mit Waggons schnauft heran und rollt vorüber.mp3 differ diff --git a/sounds/1-4-10014.mp3 b/sounds/1-4-10014.mp3 new file mode 100644 index 0000000..44a2930 Binary files /dev/null and b/sounds/1-4-10014.mp3 differ diff --git a/sounds/1-4-10025.mp3 b/sounds/1-4-10025.mp3 new file mode 100644 index 0000000..b6e4251 Binary files /dev/null and b/sounds/1-4-10025.mp3 differ diff --git a/sounds/1-4-10026.mp3 b/sounds/1-4-10026.mp3 new file mode 100644 index 0000000..d77584f Binary files /dev/null and b/sounds/1-4-10026.mp3 differ diff --git a/sounds/2-2-10017.mp3 b/sounds/2-2-10017.mp3 new file mode 100644 index 0000000..7b46bd3 Binary files /dev/null and b/sounds/2-2-10017.mp3 differ diff --git a/sounds/2-4-10058.mp3 b/sounds/2-4-10058.mp3 new file mode 100644 index 0000000..d0e8eae Binary files /dev/null and b/sounds/2-4-10058.mp3 differ diff --git a/sounds/2-4-10060.mp3 b/sounds/2-4-10060.mp3 new file mode 100644 index 0000000..e76139b Binary files /dev/null and b/sounds/2-4-10060.mp3 differ diff --git a/sounds/2-4-10094.mp3 b/sounds/2-4-10094.mp3 new file mode 100644 index 0000000..62e83b5 Binary files /dev/null and b/sounds/2-4-10094.mp3 differ diff --git a/sounds/Dampfende Lokomotive, rhythmisch und kraftvoll.mp3 b/sounds/Dampfende Lokomotive, rhythmisch und kraftvoll.mp3 new file mode 100644 index 0000000..9db3ab3 Binary files /dev/null and b/sounds/Dampfende Lokomotive, rhythmisch und kraftvoll.mp3 differ diff --git a/sounds/salamisound-3180602-dampflokpfeife-1-mal-lange.mp3 b/sounds/salamisound-3180602-dampflokpfeife-1-mal-lange.mp3 new file mode 100644 index 0000000..fb7761d Binary files /dev/null and b/sounds/salamisound-3180602-dampflokpfeife-1-mal-lange.mp3 differ diff --git a/sounds/salamisound-6633853-dampflokpfeife-3-mal-kurz.mp3 b/sounds/salamisound-6633853-dampflokpfeife-3-mal-kurz.mp3 new file mode 100644 index 0000000..727c515 Binary files /dev/null and b/sounds/salamisound-6633853-dampflokpfeife-3-mal-kurz.mp3 differ diff --git a/sounds/salamisound-8089794-dampflokpfeife-2-mal.mp3 b/sounds/salamisound-8089794-dampflokpfeife-2-mal.mp3 new file mode 100644 index 0000000..3e168ae Binary files /dev/null and b/sounds/salamisound-8089794-dampflokpfeife-2-mal.mp3 differ diff --git a/static/css/custom.css b/static/css/custom.css index 6d3efc4..2f4f99d 100644 --- a/static/css/custom.css +++ b/static/css/custom.css @@ -15,4 +15,26 @@ body { .card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,0.15) !important; -} \ No newline at end of file +} + +/* Syntax-Highlighting */ +pre code.hljs { + background: #1e1e1e; + color: #d4d4d4; + padding: 1rem; + border-radius: 0.5rem; + display: block; + overflow-x: auto; + white-space: pre-wrap; + word-wrap: break-word; +} + +.hljs-comment, .hljs-quote { color: #6a9955; } +.hljs-keyword, .hljs-selector-tag { color: #569cd6; } +.hljs-string, .hljs-regexp { color: #ce9178; } +.hljs-number { color: #b5cea8; } +.hljs-title { color: #dcdcaa; } +.hljs-function { color: #dcdcaa; } +.hljs-built_in { color: #4ec9b0; } +.hljs-symbol { color: #d16969; } +.hljs-literal { color: #d16969; } \ No newline at end of file diff --git a/templates/admin_logs.html b/templates/admin_logs.html index 7921399..ae92e4a 100644 --- a/templates/admin_logs.html +++ b/templates/admin_logs.html @@ -4,7 +4,8 @@ {% block content %}
-

Logs – {{ date }}. {{ today[:4] }}-{{ today[5:] }}

+ +

Logs – {{ date }}. {{ today }}

@@ -15,8 +16,10 @@
-
-{{ logs | safe }}
+  
+    
+      {{ logs | safe }}
+    
   
Zurück zum Admin diff --git a/templates/base.html b/templates/base.html index 2817be1..123fdd3 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,14 +5,19 @@ {% block title %}Mould King Control{% endblock %} - - + + - - + + + + + + + {% block head_extra %}{% endblock %}