diff options
Diffstat (limited to 'zig-comments/src/templates')
-rw-r--r-- | zig-comments/src/templates/badrequest.html | 6 | ||||
-rw-r--r-- | zig-comments/src/templates/capchainvalid.html | 6 | ||||
-rw-r--r-- | zig-comments/src/templates/comments.html | 9 | ||||
-rw-r--r-- | zig-comments/src/templates/form.html | 11 | ||||
-rw-r--r-- | zig-comments/src/templates/notfound.html | 6 | ||||
-rw-r--r-- | zig-comments/src/templates/notification.txt | 5 |
6 files changed, 43 insertions, 0 deletions
diff --git a/zig-comments/src/templates/badrequest.html b/zig-comments/src/templates/badrequest.html new file mode 100644 index 0000000..927e908 --- /dev/null +++ b/zig-comments/src/templates/badrequest.html @@ -0,0 +1,6 @@ +<doctype HTML> +<html> +<body> + <p>Bad Request!</p> +</body> +</html>
\ No newline at end of file diff --git a/zig-comments/src/templates/capchainvalid.html b/zig-comments/src/templates/capchainvalid.html new file mode 100644 index 0000000..f13899b --- /dev/null +++ b/zig-comments/src/templates/capchainvalid.html @@ -0,0 +1,6 @@ +<doctype HTML> +<html> +<body> + <p>Capcha invalid!</p> +</body> +</html>
\ No newline at end of file diff --git a/zig-comments/src/templates/comments.html b/zig-comments/src/templates/comments.html new file mode 100644 index 0000000..a1d8b76 --- /dev/null +++ b/zig-comments/src/templates/comments.html @@ -0,0 +1,9 @@ +<ul class="comments"> +{{ #comments }} + <li class="comment"> + <span class="comment author">{{ author }}</span> + <p class="comment content">{{ comment }}</p> + <span class="comment timestamp">{{ ts }}</span> + </li> +{{ /comments }} +</ul> diff --git a/zig-comments/src/templates/form.html b/zig-comments/src/templates/form.html new file mode 100644 index 0000000..8c492ea --- /dev/null +++ b/zig-comments/src/templates/form.html @@ -0,0 +1,11 @@ +<form action="/api/comments" 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="comment"><br> + <label for="capcha">{{ capcha_question }}</label><br> + <input type="text" id="capcha" name="capcha_answer"><br> + <input type="submit" value="Submit"> +</form> diff --git a/zig-comments/src/templates/notfound.html b/zig-comments/src/templates/notfound.html new file mode 100644 index 0000000..417e20d --- /dev/null +++ b/zig-comments/src/templates/notfound.html @@ -0,0 +1,6 @@ +<doctype HTML> +<html> +<body> + <p>Not found!</p> +</body> +</html>
\ No newline at end of file diff --git a/zig-comments/src/templates/notification.txt b/zig-comments/src/templates/notification.txt new file mode 100644 index 0000000..ba85056 --- /dev/null +++ b/zig-comments/src/templates/notification.txt @@ -0,0 +1,5 @@ +New comment on {{ url }}: + +Author: {{ author }} + +Comment: {{ comment }}
\ No newline at end of file |