2 <!-- $Id: viewsource.tmpl,v 1.10 2002-02-03 23:55:59 carstenklapp Exp $ -->
4 <?php if ($page->get('locked') && !$user->isAdmin()) { ?>
5 <p><strong><?=_("Note:")?></strong>
6 <?=_("This page has been locked by the administrator and cannot be edited.")?></p>
9 <?php if (! $revision->isCurrent()) { ?>
10 <p><?=_("You are viewing an old revision of this page.")?>
11 <?= Button('viewsource', _("View the current version"), $page)?>.</p>
14 <!-- Dummy form else NS4 doesn't like the textarea -->
15 <form method="post" action="<?=BASE_URL?>" accept-charset="<?=CHARSET?>">
16 <!-- wrap=virtual is not HTML4, but without it NS4 doesn't wrap long lines -->
17 <textarea class="wikiedit"
19 rows="<?=$request->getPref('editHeight')?>"
20 cols="<?=$request->getPref('editWidth')?>"
22 wrap="virtual"><?= $PAGE_SOURCE ?></textarea>
24 $mtime = $revision->get('mtime');
25 $fmtime = $Theme->formatDateTime($fmtime);
26 // Suppress object to string conversion error.
27 // Once the temporary asterisk denoting timezone conversion is removed, the @ can be removed.
28 $PageHistoryB = @Button(_("PageHistory"), $mtime);
30 if ($revision->isCurrent())
31 $LastModifiedMsg = fmt("(last edited %s)", $PageHistoryB);
33 if (istoday($mtime) || isyesterday($mtime))
34 $LastModifiedMsg = fmt("version %s, saved %s.",
35 $revision->getVersion(), $PageHistoryB);
37 $LastModifiedMsg = fmt("version %s, saved on %s.",
38 $revision->getVersion(), $PageHistoryB);
41 <?= HiddenInputs($request->getArgs()) ?>
44 <?= $LastModifiedMsg ?><br />