2 <!-- $Id: viewsource.tmpl,v 1.5 2002-01-24 00:45:28 dairiki Exp $ -->
4 $mtime = $Theme->formatDateTime($revision->get('mtime'));
5 if ($revision->isCurrent())
6 $LastModifiedMsg = fmt("Last edited on %s.", $mtime);
8 $LastModifiedMsg = fmt("Version %s, saved on %s.",
9 $revision->getVersion(), $mtime);
12 <?php if ($page->get('locked') && !$user->isAdmin()) { ?>
13 <p><strong><?=_("Note:")?></strong>
14 <?=_("This page has been locked by the administrator and cannot be edited.")?>
17 <?php if (! $revision->isCurrent()) { ?>
18 <p><?=_("You are viewing an old revision of this page.")?>
19 <?= $ButtonFactory->makeActionButton('edit', _("View the current version"),
20 $page->getCurrentRevision()) ?>.
22 <hr class="ignore" noshade="noshade" />
24 <!-- Dummy form else NS4 doesn't like the textarea -->
25 <form method="post" action="<?=BASE_URL?>" accept-charset="<?=CHARSET?>">
26 <!-- wrap=virtual is not HTML4, but without it NS4 doesn't wrap long lines -->
27 <textarea class="wikiedit"
29 rows="<?=$request->getPref('editHeight')?>"
30 cols="<?=$request->getPref('editWidth')?>"
32 wrap="virtual"><?= $FORMVARS['content'] ?></textarea>
33 <p><?= $LastModifiedMsg ?></p>
34 <hr class="toolbar" noshade="noshade" />
35 <?= Template('actionbar') ?>
36 <!-- RELATEDPAGES were here. -->
37 <input type="hidden" name="action" value="browse" />
38 <input type="hidden" name="pagename" value="<?=$FORMVARS['pagename']?>" />
39 <input type="hidden" name="version" value="<?=$FORMVARS['version']?>" />