diff options
Diffstat (limited to 'comments/templates')
-rw-r--r-- | comments/templates/comments.html | 10 | ||||
-rw-r--r-- | comments/templates/form.html | 6 |
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> |