2 <!-- $Id: viewsource.tmpl,v 1.12 2002-02-03 22:12:33 carstenklapp Exp $ -->
4 $mtime = $revision->get('mtime');
5 $fmtime = $Theme->formatDateTime($mtime);
7 if ($revision->isCurrent()) {
8 if (istoday($mtime) || isyesterday($mtime))
9 $LastModifiedMsg = fmt("Last edited %s.", $fmtime);
11 $LastModifiedMsg = fmt("Last edited on %s.", $fmtime);
13 if (istoday($mtime) || isyesterday($mtime))
14 $LastModifiedMsg = fmt("Version %s, saved %s.",
15 $revision->getVersion(), $fmtime);
17 $LastModifiedMsg = fmt("Version %s, saved on %s.",
18 $revision->getVersion(), $fmtime);
22 <?php if ($page->get('locked') && !$user->isAdmin()) { ?>
23 <p><strong><?=_("Note:")?></strong>
24 <?=_("This page has been locked by the administrator and cannot be edited.")?>
27 <?php if (! $revision->isCurrent()) { ?>
28 <p><?=_("You are viewing an old revision of this page.")?>
29 <?= Button('edit', _("View the current version"), $page) ?>.
31 <hr class="ignore" noshade="noshade" />
33 <!-- Dummy form else NS4 doesn't like the textarea -->
34 <form method="post" action="<?=BASE_URL?>" accept-charset="<?=CHARSET?>">
35 <!-- wrap=virtual is not HTML4, but without it NS4 doesn't wrap long lines -->
36 <textarea class="wikiedit"
38 rows="<?=$request->getPref('editHeight')?>"
39 cols="<?=$request->getPref('editWidth')?>"
41 wrap="virtual"><?= $PAGE_SOURCE ?></textarea>
43 <p class="editdate"><?= $LastModifiedMsg ?></p>
45 <hr class="toolbar" noshade="noshade" />
46 <?= Template('actionbar') ?>
47 <!-- RELATEDPAGES were here. -->
49 <?= HiddenInputs($request->getArgs()) ?>