rename comments_form to editcomment

master
Joey Hess 2008-12-19 14:07:22 -05:00
parent ddabb010b2
commit 79a787a466
3 changed files with 4 additions and 4 deletions

View File

@ -281,7 +281,7 @@ sub sessioncgi ($$) {
action => $config{cgiurl}, action => $config{cgiurl},
header => 0, header => 0,
table => 0, table => 0,
template => scalar IkiWiki::template_params('comments_form.tmpl'), template => scalar IkiWiki::template_params('editcomment.tmpl'),
# wtf does this do in editpage? # wtf does this do in editpage?
wikiname => $config{wikiname}, wikiname => $config{wikiname},
); );

View File

@ -31,7 +31,7 @@ located in /usr/share/ikiwiki/templates by default.
[[plugins/search]] plugin. [[plugins/search]] plugin.
* `comment.tmpl` - This template is used to display a comment * `comment.tmpl` - This template is used to display a comment
by the [[plugins/comments]] plugin. by the [[plugins/comments]] plugin.
* `comments_form.tmpl` - This template is the comment post form for the * `editcomment.tmpl` - This template is the comment post form for the
[[plugins/comments]] plugin. [[plugins/comments]] plugin.
The [[plugins/pagetemplate]] plugin can allow individual pages to use a The [[plugins/pagetemplate]] plugin can allow individual pages to use a

View File

@ -1,4 +1,4 @@
<div class="comments-form"> <div class="editcomment">
<TMPL_VAR MESSAGE> <TMPL_VAR MESSAGE>
<TMPL_VAR FORM-START> <TMPL_VAR FORM-START>
<TMPL_VAR FIELD-DO> <TMPL_VAR FIELD-DO>
@ -31,4 +31,4 @@ IkiWiki directives ([[!directive]]) are <TMPL_UNLESS NAME="ALLOWDIRECTIVES">not
</div><!-- #preview --> </div><!-- #preview -->
</TMPL_IF> </TMPL_IF>
</div><!-- .comments-form --> </div><!-- .editcomment -->