2 rcs_id('$Id: actionbar.tmpl,v 1.5 2007-01-02 13:29:39 rurban Exp $');
3 if (!$page->get('locked') || $user->isAdmin() and $revision)
4 $EditB = Button("edit",
5 $revision->isCurrent() ? _("Edit") : _("Edit Old Revision"));
7 $EditB = Button("viewsource", _("View Source"));
8 if (empty($revision)) $revision = $page->getCurrentRevision(false);
11 <div <?= isBrowserIE() ? "class=ie-actionbuttons" : "id=actionbuttons"?>>
13 <?php if ($user->isAdmin() or mayAccessPage('change',$page->getName())) { ?>
14 <?=$SEP?><?= Button($page->get('locked') ? 'unlock' : 'lock') ?>
15 <?php if (ENABLE_PAGEPERM) { ?>
16 <?=$SEP?><?= Button('chown') ?>
17 <?=$SEP?><?= Button('setacl') ?>
19 <?php if ($user->isAdmin() or mayAccessPage('remove',$page->getName())) { ?>
20 <?=$SEP?><?= Button('remove') ?>
22 <?=$SEP?><?= Button("PageHistory", _("PageHistory")) ?>
23 <?=$SEP?><?= Button("diff") ?>
24 <?=$SEP?><?= Button("PageInfo", _("PageInfo")) ?>
25 <?php if ((DEBUG and $request->getArg('action') == 'browse') || $user->isAdmin()) { ?>
26 <!-- Buttons really only for debugging -->
27 <?=$SEP?><?= Button("DebugInfo", _("DebugInfo")) ?>
28 <?=$SEP?><?= Button("PageDump", _("PageDump")) ?>
29 <?php $purgeb = Button(array('nocache' => 'purge'),
30 _("PurgeHtmlCache"), $page->getName());
31 $purgeb->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."));
33 <?=$SEP?><?= $purgeb ?>
34 <!-- End debugging buttons -->
36 <?php if (defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) { ?>
37 <?=$SEP?><?= Button("pdf") ?>