summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-03-15 02:01:20 +0100
committerMatthias Andreas Benkard <code@mail.matthias.benkard.de>2011-03-15 02:01:20 +0100
commitbf95e292f148f5c42bf834a64e42bf04154403bf (patch)
tree3575c972f8882acc00a9bc5a3e93f9ff315e7e37 /templates
parentcf2b6c8b3e50e4d68c6bc7f0abdb820882e1d741 (diff)
Optionally use Hashcash for comment verification.
Diffstat (limited to 'templates')
-rw-r--r--templates/article.html9
-rw-r--r--templates/journal_page.html3
2 files changed, 10 insertions, 2 deletions
diff --git a/templates/article.html b/templates/article.html
index c4ebff4..bd8b10a 100644
--- a/templates/article.html
+++ b/templates/article.html
@@ -59,7 +59,8 @@
<h2>{title}</h2>
{notes}
<form action="{action|html-attr-value}" accept-charset="UTF-8"
- enctype="application/x-www-form-urlencoded" method="post">
+ enctype="application/x-www-form-urlencoded" method="post"
+ class="comment-form">
<div style="display: none">
<input name="article" type="hidden" value="{article-id|html-attr-value}" />
<input name="revision" type="hidden" value="{revision|html-attr-value}" />
@@ -88,7 +89,11 @@
</div>
</div>
</div>
- <div><input type="submit" value="{submit-button-label|html-attr-value}"></div>
+ <div>
+ <input type="submit"
+ value="{submit-button-label|html-attr-value}"
+ class="comment-submit-button" />
+ </div>
</form>
{.end}
diff --git a/templates/journal_page.html b/templates/journal_page.html
index 2e0ed61..f793ff2 100644
--- a/templates/journal_page.html
+++ b/templates/journal_page.html
@@ -4,6 +4,9 @@
<link href="/journal/prettify/prettify.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/journal/prettify/prettify.js"></script>
<script type="text/javascript" src="/journal/prettify/lang-lisp.js"></script>
+ <script type="text/javascript" src="/js/jquery.js"></script>
+ <script type="text/javascript" src="/js/sha256.js"></script>
+ <script type="text/javascript" src="/js/comment-submission.js"></script>
{.end}
{.section body}