2 <!-- $Id: actionbar.tmpl,v 1.2 2004-06-08 13:15:23 rurban Exp $ -->
4 if (!$page->get('locked') || $user->isAdmin())
5 $EditB = Button("edit",
6 $revision->isCurrent() ? _("Edit") : _("Edit Old Revision"));
8 $EditB = Button("viewsource", _("View Source"));
10 $Sep = $Theme->getButtonSeparator();
12 <!-- I would like not to have to use these tables, and managed to
13 get this stuff to work more or less correctly using
14 CSSs float:left; and float:right;. However float:right; seems
15 to cause MSIE4.01/NT to hang.
16 So, we use tables... -->
17 <table summary="Toolbar 1: Page actions and user login."
18 width="100%" cellpadding="0" cellspacing="0" border="0">
19 <tr valign="baseline">
21 <div id="actionbuttons">
22 <? if ( $user->isSignedIn()) { ?>
23 <?= $EditB ?><?=$Sep?>
24 <?php if ($user->isAdmin() or mayAccessPage('change',$page->getName())) { ?>
25 <?= Button($page->get('locked') ? 'unlock' : 'lock') ?><?=$Sep?>
26 <?php if (ENABLE_PAGEPERM) { ?>
27 <?=$Sep?><?= Button('chown') ?>
28 <?=$Sep?><?= Button('setacl') ?>
30 <?php if ($user->isAdmin() or mayAccessPage('remove',$page->getName())) { ?>
31 <?=$Sep?><?= Button('remove') ?>
34 <?= Button(array('action'=>'PageInfo'),_("Info"),$page->getName()) ?>
35 <?php if (((defined('DEBUG') and DEBUG and $request->getArg('action') == 'browse')) || $user->isAdmin()) { ?>
36 <!-- Buttons really only for debugging -->
37 <?=$Sep?><?= Button(_("PageHistory")) ?>
38 <?=$Sep?><?= Button("diff") ?>
40 $PurgeCache = Button(array('nocache' => 'purge'),
41 _("PurgeHtmlCache"), $page->getName());
42 $PurgeCache->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."));
44 <?=$Sep?><?= $PurgeCache ?>
45 <!-- End debugging buttons -->
49 <?php if (empty($NOSIGNIN)) { ?>
51 <div id="signin"><?= Template('signin') ?></div>