16 Commits
Author SHA1 Message Date
alientim cfbec22590 Merge pull request 'srv/poe_manager/templates/index.html aktualisiert' (#5) from dev into main
Reviewed-on: #5
2025-10-12 17:53:28 +02:00
alientim 3eb78b46a7 srv/poe_manager/templates/index.html aktualisiert 2025-10-12 17:51:21 +02:00
alientim 609e116911 Merge pull request 'dev' (#4) from dev into main
Reviewed-on: #4
2025-10-12 17:45:58 +02:00
alientim 681888a36a DB 2025-10-12 17:45:24 +02:00
alientim e8df4f937b srv/poe_manager/templates/users.html aktualisiert 2025-10-12 17:43:58 +02:00
alientim 29823bb4ef srv/poe_manager/templates/switche.html aktualisiert 2025-10-12 17:43:46 +02:00
alientim a2920a98bd srv/poe_manager/templates/devices.html aktualisiert 2025-10-12 17:43:12 +02:00
alientim 579f3f70b9 revert 9344690a31
revert srv/poe_manager/templates/devices.html aktualisiert
2025-10-12 17:42:58 +02:00
alientim 9344690a31 srv/poe_manager/templates/devices.html aktualisiert 2025-10-12 17:41:09 +02:00
alientim 1b74609d1b Merge pull request 'dev' (#3) from dev into main
Reviewed-on: #3
2025-10-12 17:38:39 +02:00
alientim 7f0871fa64 srv/poe_manager/templates/index.html aktualisiert 2025-10-12 17:33:30 +02:00
alientim 5ae38a9e20 srv/poe_manager/app.py aktualisiert 2025-10-12 17:33:05 +02:00
alientim de23b132ed srv/poe_manager/templates/index.html aktualisiert 2025-10-12 17:31:41 +02:00
alientim 746972e321 srv/poe_manager/templates/index.html aktualisiert 2025-10-12 17:31:08 +02:00
alientim dfba8789a7 srv/poe_manager/app.py aktualisiert 2025-10-12 17:28:05 +02:00
alientim 194e3cfbf9 srv/poe_manager/templates/index.html aktualisiert 2025-10-12 17:22:31 +02:00
6 changed files with 12 additions and 9 deletions
+2 -3
View File
@@ -104,9 +104,8 @@ def get_last_seen(dev_name: str):
continue continue
if latest_time: if latest_time:
date_str = latest_time.strftime("Zuletzt Online am %d.%m.%Y") datetime_str = latest_time.strftime("Zuletzt Online am %d.%m.%Y um %H:%M Uhr")
time_str = latest_time.strftime("um %H:%M Uhr") return f"{datetime_str}"
return f"{date_str}\n{time_str}"
return None return None
Binary file not shown.
+1 -1
View File
@@ -8,7 +8,7 @@
<button class="btn btn-success mb-3" data-bs-toggle="modal" data-bs-target="#deviceModal" onclick="openDeviceModal()">Neues Gerät hinzufügen</button> <button class="btn btn-success mb-3" data-bs-toggle="modal" data-bs-target="#deviceModal" onclick="openDeviceModal()">Neues Gerät hinzufügen</button>
{% endif %} {% endif %}
<table class="table table-bordered"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th>Hostname</th> <th>Hostname</th>
+7 -3
View File
@@ -7,11 +7,15 @@
Nächste Prüfung in -- Sekunden Nächste Prüfung in -- Sekunden
</span> </span>
</h2> </h2>
<div class="row row-cols-1 row-cols-md-6 g-3"> <div class="row g-3">
{% for d in devices %} {% for d in devices %}
<div class="col"> <div class="col-6 col-md-4 col-lg-3 col-xl-2">
<div class="card text-center p-2" <div class="card text-center p-2"
{% if last_seen[d[0]] %} title="{{ last_seen[d[0]][0] }}&#10;{{ last_seen[d[0]][1] }}" {% elif status[d[0]] == 'offline' %} title="Noch nie online" {% endif %}> {% if last_seen.get(d[0]) %}
title="{{ last_seen[d[0]] }}"
{% elif status[d[0]] == 'offline' %}
title="Noch nie online"
{% endif %}>
<div class="card-header">{{ d[1] }}</div> <div class="card-header">{{ d[1] }}</div>
<div class="card-body"> <div class="card-body">
<span class="fw-bold" style="color: <span class="fw-bold" style="color:
+1 -1
View File
@@ -5,7 +5,7 @@
<!-- Button zum Hinzufügen --> <!-- Button zum Hinzufügen -->
<button class="btn btn-success mb-3" data-bs-toggle="modal" data-bs-target="#addSwitchModal">Neuen Switch hinzufügen</button> <button class="btn btn-success mb-3" data-bs-toggle="modal" data-bs-target="#addSwitchModal">Neuen Switch hinzufügen</button>
<table class="table table-bordered"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th>Hostname</th> <th>Hostname</th>
+1 -1
View File
@@ -8,7 +8,7 @@
<button class="btn btn-success mb-3" data-bs-toggle="modal" data-bs-target="#userModal" onclick="openUserModal()">Neuen Benutzer</button> <button class="btn btn-success mb-3" data-bs-toggle="modal" data-bs-target="#userModal" onclick="openUserModal()">Neuen Benutzer</button>
{% endif %} {% endif %}
<table class="table table-bordered"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th class="col-ip">Username</th> <th class="col-ip">Username</th>