From 3c9ccb406b2260c149be387508a097fe6fdb3c93 Mon Sep 17 00:00:00 2001
From: Simon McVittie
Date: Mon, 17 Nov 2008 11:16:31 +0000
Subject: [PATCH] Rename smcvpostcomment plugin to postcomment to propose for
inclusion
---
IkiWiki/Plugin/{smcvpostcomment.pm => postcomment.pm} | 8 ++++----
doc/style.css | 8 ++++----
...vpostcomment_comment.tmpl => postcomment_comment.tmpl} | 0
...vpostcomment_display.tmpl => postcomment_display.tmpl} | 8 ++++----
templates/postcomment_embed.tmpl | 7 +++++++
.../{smcvpostcomment_form.tmpl => postcomment_form.tmpl} | 4 ++--
templates/smcvpostcomment_embed.tmpl | 7 -------
7 files changed, 21 insertions(+), 21 deletions(-)
rename IkiWiki/Plugin/{smcvpostcomment.pm => postcomment.pm} (98%)
rename templates/{smcvpostcomment_comment.tmpl => postcomment_comment.tmpl} (100%)
rename templates/{smcvpostcomment_display.tmpl => postcomment_display.tmpl} (63%)
create mode 100644 templates/postcomment_embed.tmpl
rename templates/{smcvpostcomment_form.tmpl => postcomment_form.tmpl} (89%)
delete mode 100644 templates/smcvpostcomment_embed.tmpl
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 @@
-
--
2.26.2