guestbook/templates/index.html
2024-09-17 20:02:37 +03:00

26 lines
915 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>guestbook</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<form method="POST" action="/submit">
<input name="name" placeholder="Name (optional)">
<input name="website" placeholder="Website (optional, w/o the http(s) part)">
<textarea name="comment" placeholder="Comment (max 512 characters)"></textarea>
<button>submit</button>
</form>
<hr>
<b>Sites indexed</b>: {% for comment in comments %}<a href="http://{{comment[2]}}">{{comment[2]}}</a> {% endfor %}
<hr>
{% for comment in comments %}
<div class="comment">
<a href="http://{{comment[2]}}">{{comment[1]}}</a> <b>{{comment[4]|parsetime}}</b><br>
{{comment[3]}}
</div>
{% endfor %}
</body>
</html>