tvl-depot/templates/index.html

29 lines
728 B
HTML
Raw Normal View History

<!DOCTYPE html>
<html>
<head>
<title>Converse Index page</title>
</head>
<body>
<h1>Welcome to Converse</h1>
<ul>
{% for thread in threads -%}
<li><a href="/thread/{{ thread.id }}">{{ thread.title }}</a> (posted at {{ thread.posted }} by {{ thread.author_name }})</li>
{%- endfor %}
</ul>
<hr>
<form action="/thread/submit" method="post">
<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>
</body>
</html>