inline: Allow MTIME to be used in inlinepage.tmpl.

master
Joey Hess 2008-10-14 15:00:46 -04:00
parent fe2ba07428
commit c39112e6ef
3 changed files with 5 additions and 0 deletions

View File

@ -316,6 +316,7 @@ sub preprocess_inline (@) { #{{{
$template->param(pageurl => urlto(bestlink($params{page}, $page), $params{destpage}));
$template->param(title => pagetitle(basename($page)));
$template->param(ctime => displaytime($pagectime{$page}, $params{timeformat}));
$template->param(mtime => displaytime($pagemtime{$page}, $params{timeformat}));
$template->param(first => 1) if $page eq $list[0];
$template->param(last => 1) if $page eq $list[$#list];

1
debian/changelog vendored
View File

@ -10,6 +10,7 @@ ikiwiki (2.67) UNRELEASED; urgency=low
* google: Plugin provides google site search, contributed by Peter Simons.
* Pass HTTPS variable through the wrapper so that CGI->https can be used
by plugins. Closes: #502047
* inline: Allow MTIME to be used in inlinepage.tmpl.
-- Joey Hess <joeyh@debian.org> Mon, 06 Oct 2008 16:07:50 -0400

View File

@ -17,3 +17,6 @@ Update - even though I'm not a Perl programmer, this patch seems right:
+ $template->param(mtime => displaytime($pagemtime{$page}, $params{timeformat}));
$template->param(first => 1) if $page eq $list[0];
$template->param(last => 1) if $page eq $list[$#list];
> [[done]], thanks