<?php // -*-php-*- ?>
<?= Template("default/info") ?>
<div id="actionbuttons">
    <?= Button("viewsource", _("View Source")) ?>
    <?=$SEP?><?= Button("PageHistory", _("PageHistory")) ?>
    <?=$SEP?><?= Button("AuthorHistory", _("AuthorHistory")) ?>
    <?=$SEP?><?= Button("Diff") ?>
    <?=$SEP?><?= Button(array('action'=>'diff','previous' => 'minor'),_("Diff previous Revision"),$page->getName()) ?>
    <?=$SEP?><?= Button(array('action'=>'diff','previous' => 'author'),_("Diff previous Author"),$page->getName()) ?>
<?php if ((defined('DEBUG') && DEBUG) || $user->isAdmin()) { ?>
    <!-- Buttons really only for debugging -->
    <?=$SEP?><?= Button("DebugInfo", _("DebugInfo")) ?>
<?php
     $PurgeCache = Button(array('nocache' => 'purge'),
                     _("PurgeHtmlCache"), $page->getName());
     $PurgeCache->addTooltip(_("Purge HTML cache for this page. Regenerate from WikiMarkup when next accessed."));
?>
    <?=$SEP?><?= $PurgeCache ?>

    <!-- End debugging buttons -->
<?php } ?>
  </div>
