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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<title>go-ji</title>
<meta name="viewport" content="width=device-width" />
</head>
<body>
<p>Hello, {{ name }}!</p>
<form action="{{ url_for("create_link") }}" method="POST">
<label for="slug">slug</label>
<input type="text" id="slug" name="slug" />
<label for="url">url</label>
<input type="text" id="url" name="url" />
<input type="submit" value="Create Link">
</form>
<table>
<tr><th>short</th><th>clicks</th></tr>
{% for short in top_shorts %}
<tr>
<td><a href="{{ url_for('go', slug=short.slug) }}">{{ short.slug }}</a></td>
<td>{{ short.clicks }}</td>
</tr>
{% endfor %}
</table>
{% if warm_reload %}
{% include "warm_reload.html" %}
{% endif %}
</body>
</html>