forked from jrk/remindify
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.html
70 lines (63 loc) · 2.55 KB
/
main.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
61
62
63
64
65
66
67
68
69
70
<html>
<head>
<title>Remindify - Quick reminder scheduler</title>
<link href="/static/apple-touch-icon.png" rel="apple-touch-icon" />
<link href="/static/style.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div id="content">
<h1>Remindify</h1>
{% if user %}
<div id="list_body">
<div id="nav">
<p class="account">Welcome, {{ user.nickname }}. <a href="{{ logout_url }}">Logout</a></p>
<form action="/" method="post">
<p class="timezone">You're in <select name="tz">
{% for tz in timezones %}
<option {% ifequal account.tz tz %} selected="selected" {% endifequal %}>{{ tz }}</option>
{% endfor %}
</select></p>
<input type="text" name="emails" value="{{ emails }}" />
<input type="submit" value="Update" />
</form>
</div>
{% if failed %}
<div class="warning">Failed to parse command.</div>
{% endif %}
<form action="/" method="post">
<h2>New Reminder:</h2>
<input type="text" class="reminder" name="raw"/>
<input type="submit" class="submit" value=""/>
</form>
{% if reminders %}
<h3>Current Reminders:</h3>
<ul class="reminders_list">
{% for reminder in reminders %}
<li>{{ reminder.text }} <span class="time">{{ reminder.scheduled|timeuntil }}</span> <form style="display:inline;" action="/" method="post">
<input type="hidden" name="id" value="{{ reminder.key.id }}" />
<input type="submit" value="Delete" /></form></li>
{% endfor %}
{% endif %}
</div>
<div id="footer"></div>
{% else %}
<div id="homepage_body">
<p>Remindify lets you quickly schedule reminders using your <a href="">notify.io</a> account using a common natural language format, like "<span>move car in 2 hours</span>" or "<span>get some sleep at 4am</span>".</p>
<a href="{{ login_url }}" class="login">Login with your Google Account</a>
</div>
{% endif %}
</div>
{% if false %}
<!-- Disable for now -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-XXXX-XX");
pageTracker._trackPageview();
} catch(err) {}</script>
{% endif %}
</body>
</html>