aboutsummaryrefslogtreecommitdiff
path: root/comments/templates
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2022-12-30 00:45:57 +0000
committerMartin Ashby <martin@ashbysoft.com>2022-12-30 00:45:57 +0000
commit671f850c4fb72941c111edb6dff1030839b0dd55 (patch)
treee2e066891c85aba3eff5bb76c8e0d81a658a2cb9 /comments/templates
parent9be5acc275711d0a6a717ac5564a86185ec1d613 (diff)
downloadmfashby.net-671f850c4fb72941c111edb6dff1030839b0dd55.tar.gz
mfashby.net-671f850c4fb72941c111edb6dff1030839b0dd55.tar.bz2
mfashby.net-671f850c4fb72941c111edb6dff1030839b0dd55.tar.xz
mfashby.net-671f850c4fb72941c111edb6dff1030839b0dd55.zip
Comments are basically functional.
Added example config.
Diffstat (limited to 'comments/templates')
-rw-r--r--comments/templates/comments.html10
-rw-r--r--comments/templates/form.html6
2 files changed, 8 insertions, 8 deletions
diff --git a/comments/templates/comments.html b/comments/templates/comments.html
index 72c4a46..e64ba1c 100644
--- a/comments/templates/comments.html
+++ b/comments/templates/comments.html
@@ -1,9 +1,9 @@
-<ul>
+<ul class="comments">
{% for comment in comments -%}
- <li>
- <span>{{ comment.author }}</span>
- <p>{{ comment.comment }}</p>
- <span>{{ comment.ts }}</span>
+ <li class="comment">
+ <span class="comment author">{{ comment.author }}</span>
+ <p class="comment content">{{ comment.comment }}</p>
+ <span class="comment timestamp">{{ comment.ts }}</span>
</li>
{%- endfor %}
</ul>
diff --git a/comments/templates/form.html b/comments/templates/form.html
index 09fc81f..1f1692c 100644
--- a/comments/templates/form.html
+++ b/comments/templates/form.html
@@ -1,11 +1,11 @@
-<form action="/api/comments">
+<form action="{{ base_path }}/comment" method="post">
<input type="hidden" name="url" value="{{ url }}"><br>
<input type="hidden" name="capcha_id" value="{{ capcha_id }}"><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">
- <label for="capcha">{{ capcha_question }}</label>
+ <input type="text" id="comment" name="comment"><br>
+ <label for="capcha">{{ capcha_question }}</label><br>
<input type="text" id="capcha" name="capcha_answer"><br>
<input type="submit" value="Submit">
</form>