]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Portland/templates/actionbar.tmpl
Combine and refactor editpage.php and savepage.php.
[SourceForge/phpwiki.git] / themes / Portland / templates / actionbar.tmpl
1 <?php // -*-html-*- ?>
2 <!-- $Id: actionbar.tmpl,v 1.9 2002-01-30 01:33:20 dairiki Exp $ -->
3 <?php
4   if (!$page->get('locked') || $user->isAdmin())
5       $EditB = $Theme->makeActionButton("edit",
6                                         $revision->isCurrent() ? _("EditText") : _("Edit Old Revision"));
7   else
8       $EditB = $Theme->makeActionButton("viewsource", _("View Source"));
9   $EditB = fmt("%s of this page", $EditB);
10
11   $mtime = $Theme->formatDateTime($revision->get('mtime'));
12   $PageHistoryB = $Theme->makeActionButton(_("PageHistory"), $mtime);
13
14   if ($revision->isCurrent())
15       $LastModifiedMsg = fmt("(last edited %s)", $PageHistoryB);
16   else
17       $LastModifiedMsg = fmt("(version %s, saved on %s)",
18                              $revision->getVersion(), $PageHistoryB);
19 ?>
20    <?= $EditB ?> <?= $LastModifiedMsg ?><br />