getDbh();
$isAdmin = $user->isAdmin();
$pagename = $page->getName();
$isActionPage = $request->_isActionPage($pagename, false);
$isBrowse = $request->getArg('action') == 'browse';
$mayEdit = mayAccessPage('edit', $pagename);
$mayChange = mayAccessPage('change', $pagename);
?>
= _("Views") ?>
getArg('action') != "") { ?>
= ActionButton("browse", _("View Page"), false, array('title' => _("View the page")." [alt-c]")) ?>
- = _("View Page") ?>
= ActionButton("edit", $dbh->isWikiPage($page->getName()) ? ($revision->isCurrent() ? _("Edit") : _("Edit Old Revision")) : _("Create Page"), false, array('id' => 'btn-edit', 'title' => _("You can edit this page. Please use the preview button before saving.")." [alt-e]")) ?>
= Button(array("action" => "edit", "mode"=> "wysiwyg"), _("Wysiwyg Editor"), false, array('id' => 'btn-wysiwyg-edit')) ?>
exists()) { ?>
= ActionButton("viewsource", _("View Source")) ?>
= ActionButton(_("PageHistory"),_("History"),false,array('title'=>_("Past versions of this page.")." [alt-h]")) ?>
= ActionButton("diff") ?>
isSignedIn()) { ?>
= ActionButton("WatchPage", _("Watch"), false,
array('title'=>_("Add/Remove this to/from the list of pages you're monitoring for changes")." [alt-l]")) ?>
isSignedIn()) { ?>
= _("Special Actions") ?> = $WikiTheme->folderArrow('p-tbx', 'Closed') ?>
= ActionButton('rename') ?>
= ActionButton('remove') ?>
= ActionButton('purge') ?>
= ActionButton('revert',_("Revert"), $revision->isCurrent() ? $page->GetRevisionBefore() : $revision) ?>
= ActionButton($page->get('locked') ? 'unlock' : 'lock') ?>
= ActionButton('chown') ?>
= ActionButton('setacl') ?>
= ActionButton("viewsource", _("View Source")) ?>
= ActionButton(array('action'=>'PageInfo'), _("PageInfo"), $pagename) ?>
= ActionButton(_("AuthorHistory")) ?>
= ActionButton(_("PageHistory")) ?>
= ActionButton("diff") ?>
= ActionButton(_("PageDump")) ?>
= ActionButton(array('nocache' => 'purge'), _("PurgeHtmlCache"), $pagename,
array('title'=>_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."))) ?>