]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Portland/templates/actionbar.tmpl
Show DebugInfo button for admin, even when DEBUG constant not defined.
[SourceForge/phpwiki.git] / themes / Portland / templates / actionbar.tmpl
1 <?php // -*-html-*- ?>
2 <!-- $Id: actionbar.tmpl,v 1.16 2002-02-22 23:23:47 carstenklapp Exp $ -->
3 <?php
4   $Sep = $Theme->getButtonSeparator();
5
6   if (!$page->get('locked') || $user->isAdmin())
7       $EditB = Button("edit",
8                       $revision->isCurrent() ? _("EditText") : _("Edit Old Revision"));
9   else
10       $EditB = Button("viewsource", _("View Source"));
11   $EditB = fmt("%s of this page", $EditB);
12
13 ?>
14
15 <?= $EditB ?> 
16 <a href="<?=WikiURL($revision,array('action'=>'diff'))?>"
17    ><?= $Theme->getLastModifiedMessage($revision) ?></a>
18         <?=$Sep?><?= Button(_("PageHistory")) ?>
19     <?=$Sep?><?= Button("info") ?>
20 <?php if (defined('DEBUG') || $user->isAdmin()) { ?>
21         <?=$Sep?><?= Button(_("DebugInfo")) ?> <!-- For debugging only, really -->
22 <?php } ?>
23 <br />