aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2008-11-17 10:40:49 +0000
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>2008-12-11 21:14:02 +0000
commit2857b301e76dba92f550ac3f5077dcad068d2686 (patch)
treefe84165595cd0c2a75b771b26a22efe81d35545b
parent442e4e7e120be14980a0431e98784dc0ad52eee6 (diff)
downloadikiwiki-2857b301e76dba92f550ac3f5077dcad068d2686.tar
ikiwiki-2857b301e76dba92f550ac3f5077dcad068d2686.tar.gz
smcvpostcomment_*.tmpl: make class names match template names
Also put "posting comments disabled" in [], and change "Page preview" to "Comment preview".
-rw-r--r--doc/style.css4
-rw-r--r--templates/smcvpostcomment_display.tmpl4
-rw-r--r--templates/smcvpostcomment_embed.tmpl4
-rw-r--r--templates/smcvpostcomment_form.tmpl9
4 files changed, 12 insertions, 9 deletions
diff --git a/doc/style.css b/doc/style.css
index a30c5556f..896ac2b01 100644
--- a/doc/style.css
+++ b/doc/style.css
@@ -373,7 +373,7 @@ span.color {
padding: 2px;
}
-.smcvpostcomment-page .author { font-weight: bold; }
-.smcvpostcomment-page { border: 1px inset #999; margin: 3px; padding: 3px; }
+.smcvpostcomment-display .author { font-weight: bold; }
+.smcvpostcomment-display { border: 1px inset #999; margin: 3px; padding: 3px; }
.smcvpostcomment-header { font-style: italic; }
.smcvpostcomment-subject { font-weight: bold; border-bottom: 1px solid #999; }
diff --git a/templates/smcvpostcomment_display.tmpl b/templates/smcvpostcomment_display.tmpl
index 32618d94d..1b67f9094 100644
--- a/templates/smcvpostcomment_display.tmpl
+++ b/templates/smcvpostcomment_display.tmpl
@@ -1,4 +1,4 @@
-<div class="smcvpostcomment-page">
+<div class="smcvpostcomment-display">
<div class="smcvpostcomment-header">
Posted by
@@ -21,4 +21,4 @@ Posted by
<TMPL_VAR CONTENT>
</div>
-</div><!--.inlinepage-->
+</div><!--.smcvpostcomment-display-->
diff --git a/templates/smcvpostcomment_embed.tmpl b/templates/smcvpostcomment_embed.tmpl
index c1826638b..db35e4da7 100644
--- a/templates/smcvpostcomment_embed.tmpl
+++ b/templates/smcvpostcomment_embed.tmpl
@@ -1,6 +1,6 @@
-<div>
+<div class="smcvpostcomment-embed">
<TMPL_IF NAME=DISABLED>
-Posting comments disabled: <TMPL_VAR NAME=DISABLED>
+[Posting comments disabled: <TMPL_VAR NAME=DISABLED>]
<TMPL_ELSE>
<a href="<TMPL_VAR CGIURL ESCAPE=HTML>?do=smcvpostcomment&amp;page=<TMPL_VAR PAGE ESCAPE=URL>">Post a comment</a>
</TMPL_IF>
diff --git a/templates/smcvpostcomment_form.tmpl b/templates/smcvpostcomment_form.tmpl
index 7f138a450..43fc9b65a 100644
--- a/templates/smcvpostcomment_form.tmpl
+++ b/templates/smcvpostcomment_form.tmpl
@@ -1,3 +1,4 @@
+<div class="smcvpostcomment-form">
<TMPL_VAR MESSAGE>
<TMPL_VAR FORM-START>
<TMPL_VAR FIELD-DO>
@@ -14,9 +15,11 @@ IkiWiki directives ([[!directive]]) are <TMPL_UNLESS NAME="ALLOWDIRECTIVES">not
<TMPL_IF NAME="PAGE_PREVIEW">
<hr />
<div class="header">
-<span>Page preview:</span>
-</div>
+<span>Comment preview:</span>
+</div><!-- .header -->
<div id="preview">
<TMPL_VAR PAGE_PREVIEW>
-</div>
+</div><!-- #preview -->
</TMPL_IF>
+
+</div><!-- .smcvpostcomment-form -->