2 rcs_id('$Id: actionbar.tmpl,v 1.4 2005-01-25 07:24:17 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 $Sep = $WikiTheme->getButtonSeparator();
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") ?>