|
CVS: phpwiki/themes/Crao/templates actionbar.tmpl,1.3,1.4: msg#00130web.wiki.phpwiki.checkins
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> - ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | CVS: phpwiki/themes/Crao crao.css,1.6,1.7: 00130, Reini Urban |
|---|---|
| Next by Date: | CVS: phpwiki/lib upgrade.php,1.37,1.38: 00130, Reini Urban |
| Previous by Thread: | CVS: phpwiki/themes/Crao crao.css,1.6,1.7i: 00130, Reini Urban |
| Next by Thread: | CVS: phpwiki/lib upgrade.php,1.37,1.38: 00130, Reini Urban |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |