2 rcs_id('$Id: actionbar.tmpl,v 1.1 2004-05-12 19:42:16 rurban Exp $');
3 if (!$page->get('locked') || $user->isAdmin())
4 $EditB = Button("edit",
5 $revision->isCurrent() ? _("Edit") : _("Edit Old Revision"));
7 $EditB = Button("viewsource", _("View Source"));
9 $Sep = $Theme->getButtonSeparator();
11 <div <?= isBrowserIE() ? "class=ie-actionbuttons" : "id=actionbuttons"?>>
13 <?php if ($user->isAdmin()) { ?>
14 <?=$Sep?><?= Button($page->get('locked') ? 'unlock' : 'lock') ?>
15 <?=$Sep?><?= Button('remove') ?>
17 <?=$Sep?><?= Button("PageHistory", _("PageHistory")) ?>
18 <?=$Sep?><?= Button("diff") ?>
19 <?=$Sep?><?= Button("PageInfo", _("PageInfo")) ?>
20 <?php if ((defined('DEBUG') and DEBUG and $request->getArg('action') == 'browse') || $user->isAdmin()) { ?>
21 <!-- Buttons really only for debugging -->
22 <?=$Sep?><?= Button("DebugInfo", _("DebugInfo")) ?>
23 <?php $purgeb = Button(array('nocache' => 'purge'),
24 _("PurgeHtmlCache"), $page->getName());
25 $purgeb->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."));
27 <?=$Sep?><?= $purgeb ?>
28 <!-- End debugging buttons -->