Show dates in more readable way in webapp

This commit is contained in:
2022-07-31 18:23:35 +02:00
parent e749128b16
commit db44b051fb
3 changed files with 38 additions and 5 deletions

View File

@@ -2,16 +2,18 @@
<head>
<title>Fioul</title>
<link rel="stylesheet" href="/static/classless.css">
<link rel="stylesheet" href="/static/fioul.css">
<link rel="icon" type="image/png" href="/static/favicon.png" />
</head>
<body>
<h1>Prix du m³ de fioul pour Languidic</h1>
<table id="results" class="u-full-width">
% for x in results:
<tr>
<td>{{x.date}}</td>
<td>{{x.price}}</td>
</tr>
<tr class="{{day_classes[x.date.weekday()]}}">
<td>{{x.date.strftime('%A')}}</td>
<td>{{x.date.strftime('%d %b %Y')}}</td>
<td>{{x.price}}</td>
</tr>
% end
</table>
</body>