2 rcs_id('$Id: actionbar.tmpl,v 1.27 2004-05-09 00:57:33 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();
12 <?php /* 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">
23 <?php if ($user->isAdmin()) { ?>
24 <?=$Sep?><?= Button($page->get('locked') ? 'unlock' : 'lock') ?>
25 <?=$Sep?><?= Button('remove') ?>
27 <?=$Sep?><?= Button("PageHistory", _("PageHistory")) ?>
28 <?=$Sep?><?= Button("diff") ?>
29 <?=$Sep?><?= Button("PageInfo", _("PageInfo")) ?>
30 <?php if ((defined('DEBUG') && DEBUG) || $user->isAdmin()) { ?>
31 <!-- Buttons really only for debugging -->
32 <?=$Sep?><?= Button("DebugInfo", _("DebugInfo")) ?>
33 <?=$Sep?><?= Button("PageDump", _("PageDump")) ?>
35 $PurgeCache = Button(array('nocache' => 'purge'),
36 _("PurgeHtmlCache"), $page->getName());
37 $PurgeCache->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."));
39 <?=$Sep?><?= $PurgeCache ?>
40 <!-- End debugging buttons -->
45 /* valign="top" is not ideal here but required to get reasonable alignment
46 with the other action buttons in some browsers, like OmniWeb and Safari
47 (therefore probably Konquorer too) */
48 if (empty($NOSIGNIN)) {
50 <td align="right" valign="top">
51 <div id="signin"><?= Template('signin') ?></div>