diff options
author | Martin Ashby <martin@ashbysoft.com> | 2022-12-27 23:24:54 +0000 |
---|---|---|
committer | Martin Ashby <martin@ashbysoft.com> | 2022-12-27 23:24:54 +0000 |
commit | 19da6ec39be9e3caa5b9e2766139684fd7bbe0a0 (patch) | |
tree | bb92494a161c661cd085621db309d7c7fa77a1e3 /comments/templates | |
parent | d8d7a2a5ff43f913322473a9714a63f1fd8d2303 (diff) | |
download | mfashby.net-19da6ec39be9e3caa5b9e2766139684fd7bbe0a0.tar.gz mfashby.net-19da6ec39be9e3caa5b9e2766139684fd7bbe0a0.tar.bz2 mfashby.net-19da6ec39be9e3caa5b9e2766139684fd7bbe0a0.tar.xz mfashby.net-19da6ec39be9e3caa5b9e2766139684fd7bbe0a0.zip |
Initial comments impl for my blog
Diffstat (limited to 'comments/templates')
-rw-r--r-- | comments/templates/comments.html | 9 | ||||
-rw-r--r-- | comments/templates/form.html | 8 |
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> |