smcvpostcomment_*.tmpl: make class names match template names
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Mon, 17 Nov 2008 10:40:49 +0000 (10:40 +0000)
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Thu, 11 Dec 2008 21:14:02 +0000 (21:14 +0000)
Also put "posting comments disabled" in [], and change "Page preview"
to "Comment preview".

doc/style.css
templates/smcvpostcomment_display.tmpl
templates/smcvpostcomment_embed.tmpl
templates/smcvpostcomment_form.tmpl

index a30c5556f5674d324a39b25374a02016f64ff8e7..896ac2b0140ac59b58826d197044ab40e558c42c 100644 (file)
@@ -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; }
index 32618d94d1dfcfd8fd92782bde24e35dc8db3a84..1b67f9094708645ccc284987311316c20da81a80 100644 (file)
@@ -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-->
index c1826638b1fb0d0b4a026ed83dd25418dbd11107..db35e4da751a55763bf1e98454f8be7ac76585c1 100644 (file)
@@ -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>
index 7f138a450c9163d0bec1a0512fe0fc4da75068e0..43fc9b65af46e68d69cb38cfb4fefa21fbfff836 100644 (file)
@@ -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 -->