]> sipb.mit.edu Git - ikiwiki.git/commitdiff
comments: record the time at which each comment was posted
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Sun, 23 Nov 2008 17:43:06 +0000 (17:43 +0000)
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Thu, 11 Dec 2008 21:14:04 +0000 (21:14 +0000)
IkiWiki/Plugin/comments.pm
templates/comments_comment.tmpl

index 4cd76c5d5934364c4ff60cd596e1d2c1ac5bf42a..58076938bdffdc337719d2aa986cc1373e4b9a16 100644 (file)
@@ -316,6 +316,7 @@ sub sessioncgi ($$) { #{{{
        $content_tmpl->param(body => $body);
        $content_tmpl->param(anchor => "$anchor");
        $content_tmpl->param(permalink => "$baseurl#$anchor");
+       $content_tmpl->param(date => formattime(time, "%X %x"));
 
        my $content = $content_tmpl->output;
 
index 56a28753e4cc6de84802d771c6436787998b744a..8e6affb0d0110336a970142d563232acd3e85be7 100644 (file)
@@ -15,6 +15,9 @@
 <TMPL_IF NAME="PERMALINK">
 [[!meta permalink="<TMPL_VAR PERMALINK ESCAPE=HTML>"]]
 </TMPL_IF>
+<TMPL_IF NAME="DATE">
+[[!meta date="<TMPL_VAR DATE ESCAPE=HTML>"]]
+</TMPL_IF>
 
 <TMPL_IF NAME="ANCHOR">
 </div>