Merge pull request 'dev' (#3) from dev into main
Reviewed-on: #3
This commit was merged in pull request #3.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,11 @@
|
|||||||
{% for d in devices %}
|
{% for d in devices %}
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<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] }} {{ 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:
|
||||||
|
|||||||
Reference in New Issue
Block a user