2 rcs_id('$Id: actionbar.tmpl,v 1.7 2006-08-25 22:28:40 rurban Exp $');
3 // Only [Info] button when not signed in.
4 // The rest behind Info
6 <?php /* I would like not to have to use these tables, and managed to
7 * get this stuff to work more or less correctly using
8 * CSSs float:left; and float:right;. However float:right; seems
9 * to cause MSIE4.01/NT to hang.
10 * So, we use tables... */ ?>
11 <table summary="Toolbar 1: Page actions and user login."
12 width="100%" cellpadding="0" cellspacing="0" border="0">
13 <tr valign="baseline">
15 <div id="actionbuttons">
16 <?php if ((!$page->get('locked') || $user->isAdmin()) and $revision) { ?>
17 <?= Button("edit", $revision->isCurrent() ? _("Edit") : _("Edit Old Revision")) ?>
19 <?= Button("viewsource", _("View Source")) ?>
21 <?php if ( $user->isSignedIn()) { ?>
22 <?php if ($user->isAdmin() or mayAccessPage('change', $page->getName())) { ?>
23 <?=$SEP?><?= Button($page->get('locked') ? 'unlock' : 'lock') ?>
24 <?php if (ENABLE_PAGEPERM and mayAccessPage('change', $page->getName())) { ?>
25 <?=$SEP?><?= Button('chown') ?>
26 <?=$SEP?><?= Button('setacl') ?>
27 <?=$SEP?><?= Button('rename') ?>
29 <?php if ($user->isAdmin() or mayAccessPage('remove', $page->getName())) { ?>
30 <?=$SEP?><?= Button('revert',_("Revert"), $revision->isCurrent() ? $page->GetRevisionBefore() : $revision) ?>
31 <?=$SEP?><?= Button('remove') ?>
35 <?= Button(array('action'=>'PageInfo'),_("Info"), $page->getName()) ?>
36 <?php if (((defined('DEBUG') and DEBUG and $request->getArg('action') == 'browse')) || $user->isAdmin()) { ?>
37 <!-- Buttons really only for debugging -->
38 <?=$SEP?><?= Button(_("PageHistory")) ?>
39 <?=$SEP?><?= Button("diff") ?>
40 <?=$SEP?><?= Button(_("PageDump")) ?>
41 <!-- End debugging buttons -->
43 <?php if (defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) { ?>
44 <?=$SEP?><?= Button("pdf") ?>
48 <?php if (empty($NOSIGNIN) and $user->isSignedIn()) {
49 /* Only signin to signout. Edit implicitly signs in. */ ?>
51 <div id="signin"><?= Template('signin') ?></div>