2 rcs_id('$Id: actionbar.tmpl,v 1.32 2004-09-22 10:11:51 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 = $WikiTheme->getButtonSeparator();
11 <?php /* I would like not to have to use these tables, and managed to
12 * get this stuff to work more or less correctly using
13 * CSSs float:left; and float:right;. However float:right; seems
14 * to cause MSIE4.01/NT to hang.
15 * So, we use tables... */ ?>
16 <table summary="Toolbar 1: Page actions and user login."
17 width="100%" cellpadding="0" cellspacing="0" border="0">
18 <tr valign="baseline">
20 <div id="actionbuttons">
22 <?php if ($user->isAdmin() or mayAccessPage('change',$page->getName())) { ?>
23 <?=$Sep?><?= Button($page->get('locked') ? 'unlock' : 'lock') ?>
24 <?php if (ENABLE_PAGEPERM) { ?>
25 <?=$Sep?><?= Button('chown') ?>
26 <?=$Sep?><?= Button('setacl') ?>
28 <?php if ($user->isAdmin() or mayAccessPage('remove',$page->getName())) { ?>
29 <?=$Sep?><?= Button('remove') ?>
31 <?=$Sep?><?= Button("PageHistory", _("PageHistory")) ?>
32 <?=$Sep?><?= Button("diff") ?>
33 <?=$Sep?><?= Button("PageInfo", _("PageInfo")) ?>
34 <?php if ((DEBUG and $request->getArg('action') == 'browse') || $user->isAdmin()) { ?>
35 <!-- Buttons really only for debugging -->
36 <?=$Sep?><?= Button("DebugInfo", _("DebugInfo")) ?>
37 <?=$Sep?><?= Button("PageDump", _("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") ?>
52 /* valign="top" is not ideal here but required to get reasonable alignment
53 with the other action buttons in some browsers, like OmniWeb and Safari
54 (therefore probably Konquorer too) */
55 if (empty($NOSIGNIN)) {
57 <td align="right" valign="top">
58 <div id="signin"><?= Template('signin') ?></div>