-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
60 lines (57 loc) · 2.24 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!DOCTYPE html>
{% autoescape true %}
<html lang="en">
<head>
<title>Is there a game night this week?</title>
<link type="text/css" rel="stylesheet" href="/resources/main.css" />
<meta property="og:title" content="Is there a game night this week?" />
{% if status == 'Yes' %}
{% if notes %}
<meta property="og:description" content="Yes! {{ where }} - {{ when }} - {{ notes }}" />
{% else %}
<meta property="og:description" content="Yes! {{ where }} - {{ when }}" />
{% endif %}
{% else %}
<meta property="og:description" content="{{ status }}" />
{% endif %}
</head>
<body>
<div class="center">
<div class="answer">{{ status }}.</div>
{% if status == 'Yes' %}
<div class="where">
{{ where }}
{{ when }}
{% if notes %}<br />{{ notes }}{% endif %}
</div>
{% endif %}
</div>
<div class="future">
<ul>
{% if future %}
Upcoming invitations:
{% for day in future %}
{% if day.type == "gamenight" %}
<li class="scheduled">{{ day.date.strftime("%x") }}
@ {{ day.location }}.</li>
{% elif day.type == "invites" %}
<li>{{ day.date.strftime("%x") }}:
{{ day.invitations }}.
</li>
{% else %}
<li>{{ day.date.strftime("%x") }}:
<span class="missing">None yet.</span></li>
{% endif %}
{% endfor %}
{% endif %}
<li class="scheduled"><a href="/invite">Invite...</a></li>
</ul>
</div>
<div class="footer">Updated: {{ updated }}<br/>
Add to your calendar:
<a href="http://www.google.com/calendar/embed?src={{ calendar_url }}&ctz=America/Los_Angeles">Google Calendar</a>
</div>
</body>
{% endautoescape %}
{# vim: set ts=4 sts=4 sw=4 et: #}
</html>