2018-04-08 17:30:03 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Converse Index page</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Welcome to Converse</h1>
|
|
|
|
<ul>
|
|
|
|
{% for thread in threads -%}
|
2018-04-08 18:02:01 +02:00
|
|
|
<li><a href="/thread/{{ thread.id }}">{{ thread.title }}</a> (posted at {{ thread.posted }})</li>
|
2018-04-08 17:30:03 +02:00
|
|
|
{%- endfor %}
|
|
|
|
</ul>
|
2018-04-08 20:01:41 +02:00
|
|
|
<hr>
|
2018-04-08 20:20:17 +02:00
|
|
|
<form action="/thread/submit" method="post">
|
2018-04-08 20:01:41 +02:00
|
|
|
<div>
|
|
|
|
<label for="title">Title:</label>
|
|
|
|
<input type="text" id="title" name="title">
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label for="body">Content:</label>
|
|
|
|
<textarea id="body" name="body"></textarea>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<input type="submit" value="Submit">
|
|
|
|
</div>
|
|
|
|
</form>
|
2018-04-08 17:30:03 +02:00
|
|
|
</body>
|
|
|
|
</html>
|