From: Simon McVittie
Date: Mon, 17 Nov 2008 11:16:31 +0000 (+0000)
Subject: Rename smcvpostcomment plugin to postcomment to propose for inclusion
X-Git-Tag: 2.71~137
X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3c9ccb406b2260c149be387508a097fe6fdb3c93;p=ikiwiki.git
Rename smcvpostcomment plugin to postcomment to propose for inclusion
---
diff --git a/IkiWiki/Plugin/smcvpostcomment.pm b/IkiWiki/Plugin/postcomment.pm
similarity index 98%
rename from IkiWiki/Plugin/smcvpostcomment.pm
rename to IkiWiki/Plugin/postcomment.pm
index 22958c84a..480ca58a5 100644
--- a/IkiWiki/Plugin/smcvpostcomment.pm
+++ b/IkiWiki/Plugin/postcomment.pm
@@ -3,13 +3,13 @@
# Copyright © 2008 Simon McVittie
# 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);
diff --git a/doc/style.css b/doc/style.css
index 896ac2b01..21ea9492c 100644
--- a/doc/style.css
+++ b/doc/style.css
@@ -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; }
diff --git a/templates/smcvpostcomment_comment.tmpl b/templates/postcomment_comment.tmpl
similarity index 100%
rename from templates/smcvpostcomment_comment.tmpl
rename to templates/postcomment_comment.tmpl
diff --git a/templates/smcvpostcomment_display.tmpl b/templates/postcomment_display.tmpl
similarity index 63%
rename from templates/smcvpostcomment_display.tmpl
rename to templates/postcomment_display.tmpl
index 1b67f9094..d3eabb3a1 100644
--- a/templates/smcvpostcomment_display.tmpl
+++ b/templates/postcomment_display.tmpl
@@ -1,6 +1,6 @@
-
diff --git a/templates/smcvpostcomment_embed.tmpl b/templates/smcvpostcomment_embed.tmpl
deleted file mode 100644
index db35e4da7..000000000
--- a/templates/smcvpostcomment_embed.tmpl
+++ /dev/null
@@ -1,7 +0,0 @@
-