aboutsummaryrefslogtreecommitdiff
path: root/comments/templates
diff options
context:
space:
mode:
Diffstat (limited to 'comments/templates')
-rw-r--r--comments/templates/comments.html9
-rw-r--r--comments/templates/form.html8
2 files changed, 17 insertions, 0 deletions
diff --git a/comments/templates/comments.html b/comments/templates/comments.html
new file mode 100644
index 0000000..72c4a46
--- /dev/null
+++ b/comments/templates/comments.html
@@ -0,0 +1,9 @@
+<ul>
+{% for comment in comments -%}
+ <li>
+ <span>{{ comment.author }}</span>
+ <p>{{ comment.comment }}</p>
+ <span>{{ comment.ts }}</span>
+ </li>
+{%- endfor %}
+</ul>
diff --git a/comments/templates/form.html b/comments/templates/form.html
new file mode 100644
index 0000000..90c065e
--- /dev/null
+++ b/comments/templates/form.html
@@ -0,0 +1,8 @@
+<form action="/api/comments">
+ <input type="hidden" name="url" value="{{ url }}"><br>
+ <label for="author">Name:</label><br>
+ <input type="text" id="author" name="author"><br>
+ <label for="comment">Comment:</label><br>
+ <input type="text" id="comment" name="lname">
+ <input type="submit" value="Submit">
+</form>