reformat (w/ prettier?)

This commit is contained in:
Tomáš Mládek 2022-01-03 20:22:56 +01:00
parent 93e86fbe04
commit 4c4c9b654b

View file

@ -1,9 +1,9 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8" />
<title>ANABASIS CLIENTS</title> <title>ANABASIS CLIENTS</title>
<meta http-equiv="refresh" content="60"> <meta http-equiv="refresh" content="60" />
<style> <style>
body { body {
font-family: "Courier New", "Courier", monospace; font-family: "Courier New", "Courier", monospace;
@ -15,7 +15,8 @@
align-items: center; align-items: center;
} }
h1, h2 { h1,
h2 {
margin-bottom: 0 !important; margin-bottom: 0 !important;
} }
@ -23,7 +24,7 @@
font-size: 24pt; font-size: 24pt;
font-weight: bold; font-weight: bold;
border: 2px solid; border: 2px solid;
padding: .25rem .5rem; padding: 0.25rem 0.5rem;
} }
.status-container { .status-container {
@ -59,27 +60,29 @@
display: none; display: none;
} }
</style> </style>
<link rel="stylesheet" href="https://necolas.github.io/normalize.css/8.0.1/normalize.css" <link
integrity="sha384-M86HUGbBFILBBZ9ykMAbT3nVb0+2C7yZlF8X2CiKNpDOQjKroMJqIeGZ/Le8N2Qp" crossorigin="anonymous"> rel="stylesheet"
href="https://necolas.github.io/normalize.css/8.0.1/normalize.css"
integrity="sha384-M86HUGbBFILBBZ9ykMAbT3nVb0+2C7yZlF8X2CiKNpDOQjKroMJqIeGZ/Le8N2Qp"
crossorigin="anonymous"
/>
</head> </head>
<body> <body>
<h1>/|\ Anabasis Clients</h1> <h1>/|\ Anabasis Clients</h1>
<h2>STATUS</h2> <h2>STATUS</h2>
<div class="status-container"> <div class="status-container">
<div class="status status-{{'populated' if status.level > 0 else 'empty'}}"> <div
class="status status-{{'populated' if status.level > 0 else 'empty'}}"
>
{{status.description}} {{status.description}}
</div> </div>
<div class="status-explanation">{{status.text}}</div> <div class="status-explanation">{{status.text}}</div>
<div class="level">{{status.level}}</div> <div class="level">{{status.level}}</div>
</div> </div>
<div> <div>
Since: Since: {% if last_change %} {{last_change['ts'].strftime("%c")}} {% if
{% if last_change %} status.level == 0 %}({{last_change.leases | map(attribute='display') |
{{last_change['ts'].strftime("%c")}} join(', ')}}){% endif %} {% else %} forever? {% endif %}
{% if status.level == 0 %}({{last_change.leases | map(attribute='display') | join(', ')}}){% endif %}
{% else %}
forever?
{% endif %}
</div> </div>
<h2>Current clients</h2> <h2>Current clients</h2>
<div class="datetime">{{now.strftime("%c")}}</div> <div class="datetime">{{now.strftime("%c")}}</div>
@ -111,9 +114,7 @@
<span class="log-out">OUT</span> <span class="log-out">OUT</span>
{% endif %} {% endif %}
</td> </td>
<td> <td>{{entry.lease.display}}</td>
{{entry.lease.display}}
</td>
</tr> </tr>
{% endfor %} {% endfor %}
</table> </table>