]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/browse.tmpl
Enhancements to format dates as relative dates, such as "Today" or "Yesterday" when...
[SourceForge/phpwiki.git] / themes / default / templates / browse.tmpl
1 <?php // -*-html-*- ?>
2 <!-- $Id: browse.tmpl,v 1.15 2002-02-03 22:12:33 carstenklapp Exp $ -->
3 <?php 
4   $mtime = $revision->get('mtime');
5   $fmtime = $Theme->formatDateTime($mtime);
6
7   if ($revision->isCurrent()) {
8     if (istoday($mtime) || isyesterday($mtime))
9       $LastModifiedMsg = fmt("Last edited %s.", $fmtime);
10     else
11       $LastModifiedMsg = fmt("Last edited on %s.", $fmtime);
12   } else {
13     if (istoday($mtime) || isyesterday($mtime))
14       $LastModifiedMsg = fmt("Version %s, saved %s.",
15                              $revision->getVersion(), $fmtime);
16     else
17       $LastModifiedMsg = fmt("Version %s, saved on %s.",
18                              $revision->getVersion(), $fmtime);
19   }
20 ?>
21
22 <div class="br"><br clear="all" class="ignore" /></div>
23
24 <?php if (! $revision->isCurrent()) { ?>
25   <p><strong><?=_("Note:")?></strong>
26      <?=_("You are viewing an old revision of this page.")?>
27   <?= Button('browse', _("View the current version"), $page)?>.
28   </p>
29   <hr class="ignore" noshade="noshade" />
30 <?php } ?>
31
32 <div class="wikitext"><?=$CONTENT?></div>
33 <hr class="ignore" noshade="noshade" />
34
35 <p class="editdate"><?= $LastModifiedMsg ?></p>
36 <div id="actionbar">
37 <hr class="toolbar" noshade="noshade" />
38 <?= Template('actionbar') ?>
39 <!-- RELATEDPAGES were here. -->
40 </div>