2 rcs_id('$Id: actionbar.tmpl,v 1.5 2005-04-08 05:28:54 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 <?php /* I would like not to have to use these tables, and managed to
10 * get this stuff to work more or less correctly using
11 * CSSs float:left; and float:right;. However float:right; seems
12 * to cause MSIE4.01/NT to hang.
13 * So, we use tables... */ ?>
14 <table summary="Toolbar 1: Page actions and user login."
15 width="100%" cellpadding="0" cellspacing="0" border="0">
16 <tr valign="baseline">
18 <div id="actionbuttons">
19 <? if ( $user->isSignedIn()) { ?>
21 <?php if ($user->isAdmin() or mayAccessPage('change', $page->getName())) { ?>
22 <?=$SEP?><?= Button($page->get('locked') ? 'unlock' : 'lock') ?>
23 <?php if (ENABLE_PAGEPERM and mayAccessPage('change', $page->getName())) { ?>
24 <?=$SEP?><?= Button('chown') ?>
25 <?=$SEP?><?= Button('setacl') ?>
27 <?php if ($user->isAdmin() or mayAccessPage('remove', $page->getName())) { ?>
28 <?=$SEP?><?= Button('remove') ?>
32 <?= Button(array('action'=>'PageInfo'),_("Info"), $page->getName()) ?>
33 <?php if (((defined('DEBUG') and DEBUG and $request->getArg('action') == 'browse')) || $user->isAdmin()) { ?>
34 <!-- Buttons really only for debugging -->
35 <?=$SEP?><?= Button(_("PageHistory")) ?>
36 <?=$SEP?><?= Button("diff") ?>
37 <?=$SEP?><?= Button(_("PageDump")) ?>
39 $PurgeCache = Button(array('nocache' => 'purge'),
40 _("PurgeHtmlCache"), $page->getName());
41 $PurgeCache->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."));
43 <?=$SEP?><?= $PurgeCache ?>
44 <!-- End debugging buttons -->
46 <?php if (defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) { ?>
47 <?=$SEP?><?= Button("pdf") ?>
51 <?php if (empty($NOSIGNIN)) { ?>
53 <div id="signin"><?= Template('signin') ?></div>