Initial commit.
This commit is contained in:
commit
7a72df1bc3
9 changed files with 660 additions and 0 deletions
90
templates/index.html
Normal file
90
templates/index.html
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Agenda</title>
|
||||
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div class="container mt-2">
|
||||
<h1>Agenda</h1>
|
||||
|
||||
<ul>
|
||||
<li>Today is {{now.strftime("%A, %-d %b %Y")}}</li>
|
||||
<li>GBPUSD: {{"{:,.3f}".format(gbpusd)}}</li>
|
||||
{# <li>lock down:
|
||||
{{"{:.1f}".format(lockdown_days)}} days
|
||||
({{"{:.2f}".format(lockdown_days / 7)}} weeks) so far</li> #}
|
||||
<li>The Economist: {{days(next_economist)}} (Thursday)</li>
|
||||
<li>UK bank holiday:
|
||||
{{days(bank_holiday["date"])}}
|
||||
{{bank_holiday["date"].strftime("%a, %d %b")}}
|
||||
{{bank_holiday["title"]}}</li>
|
||||
|
||||
<li>US holiday:
|
||||
{{days(us_holiday["date"])}}
|
||||
{{us_holiday["date"].strftime("%a, %d %b")}}
|
||||
{{us_holiday["title"]}}</li>
|
||||
|
||||
<li>UK clock change:
|
||||
{{days(uk_clock_change.date())}}
|
||||
{{uk_clock_change.strftime("%a, %d, %b %Y")}}</li>
|
||||
|
||||
<li>US clock change:
|
||||
{{days(us_clock_change.date())}}
|
||||
{{us_clock_change.strftime("%a, %d, %b %Y")}}</li>
|
||||
|
||||
{#
|
||||
<li>general election:
|
||||
{{days(next_uk_general_election)}}
|
||||
{{next_uk_general_election.strftime("%a, %d %b %Y")}}</li> #}
|
||||
<li>US pres. election:
|
||||
{{days(next_us_presidential_election)}}
|
||||
{{next_us_presidential_election.strftime("%a, %d %b %Y")}}</li>
|
||||
</ul>
|
||||
|
||||
<h3>Stock markets</h3>
|
||||
{% for market in stock_markets %}
|
||||
<p>{{ market }}</p>
|
||||
{% endfor %}
|
||||
|
||||
{#
|
||||
<h3>SpaceX launches</h3>
|
||||
<table class="table table-hover">
|
||||
{% for launch in spacex %}
|
||||
<tr>
|
||||
{% if launch["date_precision"] == "day" %}
|
||||
<td>
|
||||
{{ days(launch["when"].date()) }}
|
||||
</td>
|
||||
<td class="text-end">
|
||||
{{ launch["when"].strftime("%a, %d %b") }}
|
||||
</td>
|
||||
<td>
|
||||
</td>
|
||||
{% else %}
|
||||
<td>
|
||||
{{ days_hours(launch["when"]) }}
|
||||
</td>
|
||||
<td class="text-end">
|
||||
{{ launch["when"].strftime("%a, %d %b") }}
|
||||
</td>
|
||||
<td>
|
||||
{{ launch["when"].strftime("%H:%M") }}
|
||||
</td>
|
||||
{% endif %}
|
||||
<td>{{ launch["name"] }}</td>
|
||||
<td>{{ launch["rocket"] }}</td>
|
||||
<td>{{ launch["payloads"] | join(" + ") }}</td>
|
||||
<td>{{ launch["date_precision"] }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</table>
|
||||
#}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue