agenda/templates/index.html

104 lines
3 KiB
HTML
Raw Normal View History

2023-10-02 20:35:30 +01:00
<!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>Mothers' day:
{{days(mothers_day)}}
{{mothers_day.strftime("%a, %d %b %Y")}}</li>
<li>Fathers' day:
{{days(fathers_day)}}
{{fathers_day.strftime("%a, %d %b %Y")}}</li>
<li>End of financial year:
{{days(uk_financial_year_end)}}
{{uk_financial_year_end.strftime("%a, %d %b %Y")}}</li>
2023-10-02 20:35:30 +01:00
<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>
<li>Christmas last posting 2nd class:
{{days(xmas_last_posting_dates["second"])}}
{{xmas_last_posting_dates["second"].strftime("%a, %d %b %Y")}}</li>
<li>Christmas last posting 1st class:
{{days(xmas_last_posting_dates["first"])}}
{{xmas_last_posting_dates["first"].strftime("%a, %d %b %Y")}}</li>
2023-10-03 11:32:04 +01:00
<li>Christmas day:
{{days(xmas_day)}}
{{xmas_day.strftime("%a, %d %b %Y")}}</li>
2023-10-02 20:35:30 +01:00
</ul>
<h3>Stock markets</h3>
{% for market in stock_markets %}
<p>{{ market }}</p>
{% endfor %}
<h3>Rocket launches</h3>
2023-10-02 20:35:30 +01:00
<table class="table table-hover">
{% for launch in rockets %}
2023-10-02 20:35:30 +01:00
<tr>
<td class="text-nowrap text-end">{{ launch.t0_date }}
{% if launch.t0_time %}<br/>{{ launch.t0_time }}{% endif %}</td>
<td class="text-nowrap">{{ launch.status }}</td>
<td>{{ launch.rocket }}<br>{{launch.mission }}</td>
<td>
{% if launch.launch_provider_abbrev %}
<abbr title="{{ launch.launch_provider }}">{{ launch.launch_provider_abbrev }}</abbr>
{% else %}
{{ launch.launch_provider }}
{% endif %}
({{ launch.launch_provider_type }})</td>
<td>{{ launch.location }}</td>
2023-10-02 20:35:30 +01:00
{% endfor %}
</div>
</table>
</body>
</html>