inline: Allow MTIME to be used in inlinepage.tmpl.
parent
fe2ba07428
commit
c39112e6ef
|
@ -316,6 +316,7 @@ sub preprocess_inline (@) { #{{{
|
||||||
$template->param(pageurl => urlto(bestlink($params{page}, $page), $params{destpage}));
|
$template->param(pageurl => urlto(bestlink($params{page}, $page), $params{destpage}));
|
||||||
$template->param(title => pagetitle(basename($page)));
|
$template->param(title => pagetitle(basename($page)));
|
||||||
$template->param(ctime => displaytime($pagectime{$page}, $params{timeformat}));
|
$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(first => 1) if $page eq $list[0];
|
||||||
$template->param(last => 1) if $page eq $list[$#list];
|
$template->param(last => 1) if $page eq $list[$#list];
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ ikiwiki (2.67) UNRELEASED; urgency=low
|
||||||
* google: Plugin provides google site search, contributed by Peter Simons.
|
* google: Plugin provides google site search, contributed by Peter Simons.
|
||||||
* Pass HTTPS variable through the wrapper so that CGI->https can be used
|
* Pass HTTPS variable through the wrapper so that CGI->https can be used
|
||||||
by plugins. Closes: #502047
|
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
|
-- Joey Hess <joeyh@debian.org> Mon, 06 Oct 2008 16:07:50 -0400
|
||||||
|
|
||||||
|
|
|
@ -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(mtime => displaytime($pagemtime{$page}, $params{timeformat}));
|
||||||
$template->param(first => 1) if $page eq $list[0];
|
$template->param(first => 1) if $page eq $list[0];
|
||||||
$template->param(last => 1) if $page eq $list[$#list];
|
$template->param(last => 1) if $page eq $list[$#list];
|
||||||
|
|
||||||
|
|
||||||
|
> [[done]], thanks
|
||||||
|
|
Loading…
Reference in New Issue