diff options
-rw-r--r-- | IkiWiki/Plugin/postcomment.pm (renamed from IkiWiki/Plugin/smcvpostcomment.pm) | 8 | ||||
-rw-r--r-- | doc/style.css | 8 | ||||
-rw-r--r-- | templates/postcomment_comment.tmpl (renamed from templates/smcvpostcomment_comment.tmpl) | 0 | ||||
-rw-r--r-- | templates/postcomment_display.tmpl (renamed from templates/smcvpostcomment_display.tmpl) | 8 | ||||
-rw-r--r-- | templates/postcomment_embed.tmpl | 7 | ||||
-rw-r--r-- | templates/postcomment_form.tmpl (renamed from templates/smcvpostcomment_form.tmpl) | 4 | ||||
-rw-r--r-- | templates/smcvpostcomment_embed.tmpl | 7 |
7 files changed, 21 insertions, 21 deletions
diff --git a/IkiWiki/Plugin/smcvpostcomment.pm b/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 <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); 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 index 8c89458f3..8c89458f3 100644 --- a/templates/smcvpostcomment_comment.tmpl +++ b/templates/postcomment_comment.tmpl diff --git a/templates/smcvpostcomment_display.tmpl b/templates/postcomment_display.tmpl index 1b67f9094..d3eabb3a1 100644 --- a/templates/smcvpostcomment_display.tmpl +++ b/templates/postcomment_display.tmpl @@ -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 index 000000000..eae741214 --- /dev/null +++ b/templates/postcomment_embed.tmpl @@ -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&page=<TMPL_VAR PAGE ESCAPE=URL>">Post a comment</a> +</TMPL_IF> +</div> diff --git a/templates/smcvpostcomment_form.tmpl b/templates/postcomment_form.tmpl index 43fc9b65a..293f0f17e 100644 --- a/templates/smcvpostcomment_form.tmpl +++ b/templates/postcomment_form.tmpl @@ -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 index db35e4da7..000000000 --- a/templates/smcvpostcomment_embed.tmpl +++ /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&page=<TMPL_VAR PAGE ESCAPE=URL>">Post a comment</a> -</TMPL_IF> -</div> |