-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
36 lines (35 loc) · 845 Bytes
/
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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
</head>
<body>
<div>
<h1>webappで超簡易掲示板</h1>
<a href="{{ url }}">{{ link_text }}</a>
</div>
<form action="/post" method="post" enctype="multipart/form-data">
<textarea name="comment" rows="3" cols="40" ></textarea><br/>
<input type="file" name="image" />
<input type="submit" value="Post" />
</form>
{% if comments %}
{% for c in comments %}
<div>
{% if c.image %}
<img src="/get_img?img_id={{ c.key }}"/><br/>
{% else %}
<p>No Image</p>
{% endif %}
{% if c.author %}
<b>{{ c.author }}</b> wrote:<br/>
{% else %}
<b>Anonymous person</b> wrote:<br/>
{% endif %}
{{ c.comment }}
</div>
{% endfor %}
{% else %}
<p>No Comments are available.</p>
{% endif %}
</body>
</html>