Add comments

This commit is contained in:
2024-10-06 23:13:44 +02:00
parent 0da93dd867
commit df926c815e
2 changed files with 9 additions and 6 deletions
+2
View File
@@ -29,10 +29,12 @@
<h1>{{title}} (by {{author}})</h1>
<p>{{content}}</p>
{% if login %}
<form action="/posts/{{id}}/comments" method="POST">
<textarea name="content" placeholder="comment"></textarea>
<input type="submit" value="comment" />
</form>
{% end %}
<table>
{% for comment in comments %}