-
Notifications
You must be signed in to change notification settings - Fork 7
/
input.html
40 lines (35 loc) · 934 Bytes
/
input.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
<html>
<head>
<title>Publisher</title>
<link rel="alternate" href="/feed" type="application/atom+xml"/>
<style type="text/css">
input, textarea { margin-bottom: 2em }
.message { margin-bottom: 1em; }
</style>
</head>
<body>
<h1>Publisher page</h1>
<form action="/" method="post">
<div>
<div>Title:</div>
<input style="width: 300px" type="text" name="title"/>
</div>
<div>
<div>Message:</div>
<input style="width: 300px" type="text" name="content">
</div>
<input type="hidden" name="hub" value="http://pubsubhubbub.appspot.com"/></div>
<div><input type="submit" value="Submit"></div>
</form>
<h3>Previous messages</h3>
{% for message in messages %}
<div class="message">
<div><strong>{{message.title}}</strong></div>
<div>
Published at {{message.get_zulu_time()}}, ID: {{message.key().id_or_name()}}
</div>
<div>{{message.content}}</div>
</div>
{% endfor %}
</body>
</html>