Update of /cvsroot/phpwiki/phpwiki/themes/Crao/templates
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1228/themes/Crao/templates
Modified Files:
actionbar.tmpl
Log Message:
updates from default
Index: actionbar.tmpl
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/themes/Crao/templates/actionbar.tmpl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -2 -b -p -d -r1.3 -r1.4
--- actionbar.tmpl 14 Jun 2004 11:26:48 -0000 1.3
+++ actionbar.tmpl 25 Jan 2005 07:24:17 -0000 1.4
@@ -1,5 +1,5 @@
<?php // -*-php-*-
rcs_id('$Id$');
- if (!$page->get('locked') || $user->isAdmin())
+ if (!$page->get('locked') || $user->isAdmin() and $revision)
$EditB = Button("edit",
$revision->isCurrent() ? _("Edit") : _("Edit Old Revision"));
@@ -10,7 +10,12 @@
?>
<div <?= isBrowserIE() ? "class=ie-actionbuttons" : "id=actionbuttons"?>>
- <?= $EditB ?>
- <?php if ($user->isAdmin()) { ?>
+<?= $EditB ?>
+<?php if ($user->isAdmin() or mayAccessPage('change',$page->getName())) { ?>
<?=$Sep?><?= Button($page->get('locked') ? 'unlock' : 'lock') ?>
+<?php if (ENABLE_PAGEPERM) { ?>
+<?=$Sep?><?= Button('chown') ?>
+<?=$Sep?><?= Button('setacl') ?>
+<?php }} ?>
+<?php if ($user->isAdmin() or mayAccessPage('remove',$page->getName())) { ?>
<?=$Sep?><?= Button('remove') ?>
<?php } ?>
@@ -19,6 +24,7 @@
<?=$Sep?><?= Button("PageInfo", _("PageInfo")) ?>
<?php if ((DEBUG and $request->getArg('action') == 'browse') || $user->isAdmin()) { ?>
- <!-- Buttons really only for debugging -->
+<!-- Buttons really only for debugging -->
<?=$Sep?><?= Button("DebugInfo", _("DebugInfo")) ?>
+<?=$Sep?><?= Button("PageDump", _("PageDump")) ?>
<?php $purgeb = Button(array('nocache' => 'purge'),
_("PurgeHtmlCache"), $page->getName());
@@ -28,4 +34,6 @@
<!-- End debugging buttons -->
<?php } ?>
+<?php if (defined('USE_EXTERNAL_HTML2PDF') and USE_EXTERNAL_HTML2PDF) { ?>
+ <?=$Sep?><?= Button("pdf") ?>
+<?php } ?>
</div>
-
|