]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/Portland/templates/viewsource.tmpl
Big Template cleanup and refactor.
[SourceForge/phpwiki.git] / themes / Portland / templates / viewsource.tmpl
1 <!-- -*-html-*- -->
2 <!-- $Id: viewsource.tmpl,v 1.4 2002-01-24 00:45:28 dairiki Exp $ -->
3 <p><strong><?=_("Note:")?></strong>
4 <?=_("This page has been locked by the administrator and cannot be edited.")?>
5 <?php if (! $revision->isCurrent()) { ?>
6   <br /><?=_("You are viewing an old revision of this page.")?>
7   <?= $ButtonFactory->makeActionButton('edit', _("View the current version"), $page->getCurrentRevision())?>.
8 <?php } ?>
9 </p>
10 <!-- Dummy form else NS4 doesn't like the textarea -->
11 <form method="post" action="<?=BASE_URL?>" accept-charset="<?=CHARSET?>">
12 <!-- wrap=virtual is not HTML4, but without it NS4 doesn't wrap long lines -->
13 <textarea class="wikiedit"
14           name="content"
15           rows="<?=$request->getPref('editHeight')?>"
16           cols="<?=$request->getPref('editWidth')?>"
17           readonly="readonly"
18           wrap="virtual"><?= $FORMVARS['content'] ?></textarea>
19 <?php
20   $mtime = $Theme->formatDateTime($revision->get('mtime'));
21   $PageHistoryB = $ButtonFactory->makeLabelActionPageButton($mtime, _("PageHistory"));
22
23   if ($revision->isCurrent())
24       $LastModifiedMsg = fmt("(last edited %s)", $PageHistoryB);
25   else
26       $LastModifiedMsg = fmt("(version %s, saved on %s)",
27                              $revision->getVersion(), $PageHistoryB);
28
29 ?>
30 <input type="hidden" name="action" value="browse" />
31 <input type="hidden" name="pagename" value="<?=$FORMVARS['pagename']?>" />
32 <input type="hidden" name="version" value="<?=$FORMVARS['version']?>" />
33 </form>
34 <hr />
35 <?= $LastModifiedMsg ?><br />