2 rcs_id('$Id: actionbar.tmpl,v 1.20 2003-03-05 21:38:15 dairiki 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') || $user->isAdmin()) { ?>
31 <?=$Sep?><?= Button("DebugInfo", _("DebugInfo")) ?> <!-- For debugging only, really -->
36 <div id="signin"><?= Template('signin') ?></div>