Rename smcvpostcomment plugin to postcomment to propose for inclusion
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Mon, 17 Nov 2008 11:16:31 +0000 (11:16 +0000)
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Thu, 11 Dec 2008 21:14:02 +0000 (21:14 +0000)
IkiWiki/Plugin/postcomment.pm [moved from IkiWiki/Plugin/smcvpostcomment.pm with 98% similarity]
doc/style.css
templates/postcomment_comment.tmpl [moved from templates/smcvpostcomment_comment.tmpl with 100% similarity]
templates/postcomment_display.tmpl [moved from templates/smcvpostcomment_display.tmpl with 63% similarity]
templates/postcomment_embed.tmpl [new file with mode: 0644]
templates/postcomment_form.tmpl [moved from templates/smcvpostcomment_form.tmpl with 89% similarity]
templates/smcvpostcomment_embed.tmpl [deleted file]

similarity index 98%
rename from IkiWiki/Plugin/smcvpostcomment.pm
rename to IkiWiki/Plugin/postcomment.pm
index 22958c84aa900f40c28e99da4901c2e0c095ac49..480ca58a5a15550b1a4c32dde87268c9cd6abbd0 100644 (file)
@@ -3,13 +3,13 @@
 # Copyright © 2008 Simon McVittie <http://smcv.pseudorandom.co.uk/>
 # Licensed under the GNU GPL, version 2, or any later version published by the
 # Free Software Foundation
-package IkiWiki::Plugin::smcvpostcomment;
+package IkiWiki::Plugin::postcomment;
 
 use warnings;
 use strict;
 use IkiWiki 2.00;
 
-use constant PLUGIN => "smcvpostcomment";
+use constant PLUGIN => "postcomment";
 use constant PREVIEW => "Preview";
 use constant POST_COMMENT => "Post comment";
 use constant CANCEL => "Cancel";
@@ -358,11 +358,11 @@ sub sessioncgi ($$) { #{{{
 
 package IkiWiki::PageSpec;
 
-sub match_smcvpostcomment ($$;@) {
+sub match_postcomment ($$;@) {
        my $page = shift;
        my $glob = shift;
 
-       unless ($page =~ s/\[smcvpostcomment\]$//) {
+       unless ($page =~ s/\[postcomment\]$//) {
                return IkiWiki::FailReason->new("not posting a comment");
        }
        return match_glob($page, $glob);
index 896ac2b0140ac59b58826d197044ab40e558c42c..21ea9492ce95cb985331f721456b3356c341d429 100644 (file)
@@ -373,7 +373,7 @@ span.color {
        padding: 2px;
 }
 
-.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; }
+.postcomment-display .author { font-weight: bold; }
+.postcomment-display { border: 1px inset #999; margin: 3px; padding: 3px; }
+.postcomment-header { font-style: italic; }
+.postcomment-subject { font-weight: bold; border-bottom: 1px solid #999; }
similarity index 63%
rename from templates/smcvpostcomment_display.tmpl
rename to templates/postcomment_display.tmpl
index 1b67f9094708645ccc284987311316c20da81a80..d3eabb3a1c46427fa17e134237af9b570cd20b6c 100644 (file)
@@ -1,6 +1,6 @@
-<div class="smcvpostcomment-display">
+<div class="postcomment-display">
 
-<div class="smcvpostcomment-header">
+<div class="postcomment-header">
 Posted by
 <TMPL_IF NAME="AUTHOR">
 <span class="author">
@@ -15,10 +15,10 @@ Posted by
 (<TMPL_VAR CTIME>)
 </div>
 
-<div class="smcvpostcomment-subject"><TMPL_VAR TITLE></div>
+<div class="postcomment-subject"><TMPL_VAR TITLE></div>
 
 <div class="inlinecontent">
 <TMPL_VAR CONTENT>
 </div>
 
-</div><!--.smcvpostcomment-display-->
+</div><!--.postcomment-display-->
diff --git a/templates/postcomment_embed.tmpl b/templates/postcomment_embed.tmpl
new file mode 100644 (file)
index 0000000..eae7412
--- /dev/null
@@ -0,0 +1,7 @@
+<div class="postcomment-embed">
+<TMPL_IF NAME=DISABLED>
+[Posting comments disabled: <TMPL_VAR NAME=DISABLED>]
+<TMPL_ELSE>
+<a href="<TMPL_VAR CGIURL ESCAPE=HTML>?do=postcomment&amp;page=<TMPL_VAR PAGE ESCAPE=URL>">Post a comment</a>
+</TMPL_IF>
+</div>
similarity index 89%
rename from templates/smcvpostcomment_form.tmpl
rename to templates/postcomment_form.tmpl
index 43fc9b65af46e68d69cb38cfb4fefa21fbfff836..293f0f17e4c03f0b77e0bcfb937f5562f5ccb29d 100644 (file)
@@ -1,4 +1,4 @@
-<div class="smcvpostcomment-form">
+<div class="postcomment-form">
 <TMPL_VAR MESSAGE>
 <TMPL_VAR FORM-START>
 <TMPL_VAR FIELD-DO>
@@ -22,4 +22,4 @@ IkiWiki directives ([[!directive]]) are <TMPL_UNLESS NAME="ALLOWDIRECTIVES">not
 </div><!-- #preview -->
 </TMPL_IF>
 
-</div><!-- .smcvpostcomment-form -->
+</div><!-- .postcomment-form -->
diff --git a/templates/smcvpostcomment_embed.tmpl b/templates/smcvpostcomment_embed.tmpl
deleted file mode 100644 (file)
index db35e4d..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<div class="smcvpostcomment-embed">
-<TMPL_IF 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>
-</div>