Compare commits
2 commits
ea997b3d36
...
cc941860c8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cc941860c8 | ||
|
|
23eb7eef89 |
2 changed files with 4 additions and 4 deletions
|
|
@ -17,7 +17,7 @@
|
||||||
{% for row in list %}
|
{% for row in list %}
|
||||||
<article class="card">
|
<article class="card">
|
||||||
<div class="contents">
|
<div class="contents">
|
||||||
<header>@ {{row['timestamp']}}</header>
|
<header>@ {{row['timestamp']|format_datetime}}</header>
|
||||||
<div>
|
<div>
|
||||||
CO2: <b>{{row['co2']}}</b>
|
CO2: <b>{{row['co2']}}</b>
|
||||||
TVOC: <b>{{row['tvoc']}}</b>
|
TVOC: <b>{{row['tvoc']}}</b>
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
{% for row in list %}
|
{% for row in list %}
|
||||||
<article class="card">
|
<article class="card">
|
||||||
<div class="contents">
|
<div class="contents">
|
||||||
<header>@ {{row['timestamp']}}</header>
|
<header>@ {{row['timestamp']|format_datetime}}</header>
|
||||||
CO2: {{row['co2']}}
|
CO2: {{row['co2']}}
|
||||||
TVOC: {{row['tvoc']}}
|
TVOC: {{row['tvoc']}}
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -21,10 +21,10 @@
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
{% if page > 1 %}
|
{% if page > 1 %}
|
||||||
<a href="/measurements?page={{page+1}}" hx-get="/measurements?page={{page+1}}&htmx" hx-target="main" class="btn btn-link">Previous page</a>
|
<a href="/measurements?page={{page-1}}" hx-get="/measurements?page={{page-1}}&htmx" hx-target="main" class="btn btn-link">Previous page</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if has_next_page %}
|
{% if has_next_page %}
|
||||||
<a href="/measurements?page={{page-1}}" hx-get="/measurements?page={{page-1}}&htmx" hx-target="main" class="btn btn-link">Next page</a>
|
<a href="/measurements?page={{page+1}}" hx-get="/measurements?page={{page+1}}&htmx" hx-target="main" class="btn btn-link">Next page</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<a href="/" class="btn btn-link">View statistics</a>
|
<a href="/" class="btn btn-link">View statistics</a>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue