2 <!-- $Id: browse.tmpl,v 1.1 2002-01-17 20:41:13 dairiki Exp $ -->
6 if (!$page->get('locked') || $user->is_admin())
7 $EditB = $BF->makeActionButton("edit",
8 $IS_CURRENT ? _("Edit") : _("Edit Old Revision"));
10 $EditB = $BF->makeActionButton("edit", _("View Source"));
12 $LockPageB = $BF->makeActionButton($page->get('locked') ? 'unlock' : 'lock');
13 $RemovePageB = $BF->makeActionButton('remove');
15 //<?plugin-link PageHistory page="[pagename]" ?>
16 $PageHistoryB = $BF->makeActionPageButton(_("PageHistory"));
17 $DiffB = $BF->makeActionButton(array('action' => 'diff', 'previous' => 'major'));
19 $DebugInfoB = $BF->makeActionPageButton(_("DebugInfo"));
21 $SignInB = $BF->makeActionButton($user->is_authenticated() ? 'logout' : 'login');
23 $mtime = $Theme->formatDateTime($revision->get('mtime'));
25 $LastModifiedMsg = sprintf(_("Last edited on %s."), $mtime);
27 $LastModifiedMsg = __sprintf("Version %s, saved on %s.",
31 <div class="br"><br clear="all" class="ignore" /></div>
33 <?php if (! $IS_CURRENT) { ?>
34 <p><strong><?=_("Note:")?></strong>
35 <?=_("You are viewing an old revision of this page.")?>
36 <a href="<?= WikiURL($page->getName()) ?>"
37 ><?=_("View the current version")?></a>.</p>
38 <hr class="ignore" noshade="noshade" />
41 <div class="wikitext"><?=$CONTENT?></div>
42 <hr class="ignore" noshade="noshade" />
44 <p><?= $LastModifiedMsg ?></p>
46 <hr noshade="noshade" class="toolbar" />
47 <!-- I would like not to have to use these tables, and managed to
48 get this stuff to work more or less correctly using
49 CSSs float:left; and float:right;. However float:right; seems
50 to cause MSIE4.01/NT to hang.
51 So, we use tables... -->
52 <table summary="Toolbar 1: Page actions and search for pages."
53 class="toolbar" width="100%"
54 cellpadding="0" cellspacing="0" border="0">
55 <tr valign="baseline">
58 <?php if ($user->is_admin()) { ?>
59 | <?= $LockPageB ?> | <?= $RemovePageB ?>
61 | <?= $PageHistoryB ?> | <?= $DiffB ?>
62 | <?= $DebugInfoB ?> <!-- For debugging only, really -->
65 <?php if ($user->is_authenticated()) { ?>
66 <?php printf(_("You are signed in as %s"), LinkWikiWord($USERID)); ?> |
75 <!-- RELATEDPAGES were here. -->