summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2008-12-11 01:33:43 +0000
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2008-12-11 21:14:05 +0000
commita5889912b386eaa43774907c3844c90e3e3ca7c8 (patch)
tree4e4d4cd27b5d33ee0a45b32ee7bfaaed42a9b7c4 /templates
parent0a69c7ed56ea244c62319c7a95ba7cfac9696e27 (diff)
comments: Optionally allow anonymous commenters to set their name/URL.
Also provide a way for the comment template to pick up the verified username/IP.
Diffstat (limited to 'templates')
-rw-r--r--templates/comments_form.tmpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/comments_form.tmpl b/templates/comments_form.tmpl
index 9eddaadf5..88301fcdc 100644
--- a/templates/comments_form.tmpl
+++ b/templates/comments_form.tmpl
@@ -4,6 +4,14 @@
<TMPL_VAR FIELD-DO>
<TMPL_VAR FIELD-SID>
<TMPL_VAR FIELD-PAGE>
+<TMPL_IF NAME=USERNAME>
+Signed in as <TMPL_VAR NAME=USERNAME ESCAPE=HTML><br />
+<TMPL_ELSE>
+<TMPL_IF NAME=ALLOWAUTHOR>
+<TMPL_VAR NAME=FIELD-AUTHOR> (optional)<br />
+<TMPL_VAR NAME=FIELD-URL> (optional)<br />
+</TMPL_IF>
+</TMPL_IF>
Subject: <TMPL_VAR FIELD-SUBJECT><br />
<TMPL_VAR FIELD-EDITCONTENT><br />
Page type: <TMPL_VAR FIELD-TYPE><br />