diff --git a/.gitignore b/.gitignore index a2251b6..1b88862 100644 --- a/.gitignore +++ b/.gitignore @@ -31,6 +31,9 @@ __pycache__/ !/srv/poe_manager/*.* !/srv/poe_manager/templates/ !/srv/poe_manager/templates/*.* +!/srv/poe_manager/static/ +!/srv/poe_manager/static/css/ +!/srv/poe_manager/static/css/* # Optional: SQLite DB ignorieren (falls du nicht willst, dass Passwörter im Repo landen) # /srv/poe_manager/sqlite.db diff --git a/srv/poe_manager/static/css/style.css b/srv/poe_manager/static/css/style.css new file mode 100644 index 0000000..093201f --- /dev/null +++ b/srv/poe_manager/static/css/style.css @@ -0,0 +1,24 @@ +body { + padding: 20px; +} + +.table-dark { + background-color: #343a40 !important; + color: #fff !important; +} + +.badge { + font-size: 0.9rem; +} + +pre { + background-color: #f8f9fa; + padding: 10px; + border-radius: 5px; + max-height: 600px; + overflow-y: scroll; +} + +.mb-3 a.btn { + margin-right: 5px; +} diff --git a/srv/poe_manager/templates/devices.html b/srv/poe_manager/templates/devices.html index 73c1e2a..9a86985 100644 --- a/srv/poe_manager/templates/devices.html +++ b/srv/poe_manager/templates/devices.html @@ -2,7 +2,7 @@ Devices - + diff --git a/srv/poe_manager/templates/index.html b/srv/poe_manager/templates/index.html index 95fb29a..697b5ca 100644 --- a/srv/poe_manager/templates/index.html +++ b/srv/poe_manager/templates/index.html @@ -2,18 +2,7 @@ Device Dashboard - - + @@ -28,20 +17,28 @@

Prüfintervall: {{ interval }} Minuten

-
- {% for d in devices %} -
-
-
{{ d['name'] }}
+ + + + + + + + + {% for d in devices %} + + + + + {% endfor %} + +
Device-NameStatus
{{ d['name'] }} {% if status[d['name']] == 'online' %} - Online + Online {% else %} - Offline + Offline {% endif %} - - - {% endfor %} - +
diff --git a/srv/poe_manager/templates/login.html b/srv/poe_manager/templates/login.html index cd65a33..368c7e9 100644 --- a/srv/poe_manager/templates/login.html +++ b/srv/poe_manager/templates/login.html @@ -2,7 +2,7 @@ Login - +

Login

diff --git a/srv/poe_manager/templates/logs.html b/srv/poe_manager/templates/logs.html index 3b374d1..476b10f 100644 --- a/srv/poe_manager/templates/logs.html +++ b/srv/poe_manager/templates/logs.html @@ -2,12 +2,36 @@ Live Log - - + + - -

Live Log: {{ log_name }}

- Zurück zum Dashboard -
{{ log_content }}
+ + +

Live Log

+ + + + + + + + + + + + {% for line in log_lines %} + + {% set parts = line.split(' ', 1) %} + + + + {% endfor %} + +
TimestampLog
{{ parts[0] if parts|length > 0 else '' }}{{ parts[1] if parts|length > 1 else line }}
+ diff --git a/srv/poe_manager/templates/settings.html b/srv/poe_manager/templates/settings.html index ebc9910..b33c55e 100644 --- a/srv/poe_manager/templates/settings.html +++ b/srv/poe_manager/templates/settings.html @@ -2,7 +2,7 @@ Einstellungen - + diff --git a/srv/poe_manager/templates/switches.html b/srv/poe_manager/templates/switches.html index ed9cf61..3729cd2 100644 --- a/srv/poe_manager/templates/switches.html +++ b/srv/poe_manager/templates/switches.html @@ -2,7 +2,7 @@ Switches - +