3 $CDATE = $WikiTheme->formatDateTime($COMMENT_CTIME);
4 $buttons = $modified = '';
6 if ($user->isAdmin() or $user->getId() == $COMMENT_CREATOR) {
7 $buttons = HTML::small(array('class' => 'floatleft'),
8 Button('edit', false, $page));
10 $buttons->pushContent($SEP, Button('remove', _("Remove Comment"), $page));
13 // This is a hack, but since we only have a fake PageRevision,
14 // we can't get the version.
15 if ($rev->get('mtime') != $COMMENT_CTIME) {
16 $mtime = $WikiTheme->formatDateTime($rev->get('mtime'));
17 $modified = HTML::small(array('class' => 'floatright'),
18 fmt("Modified on %s by %s",
19 $mtime, $rev->get('author')));
23 <!-- FIXME: move table formatting to css -->
24 <div title="<?= fmt("Comments on %s by %s.", $COMMENT_PARENT, $COMMENT_CREATOR)?>"
25 class="wikicomment wikitext">
26 <div class="wikicomment-footer">
27 <span class="floatright">
28 <?= fmt("%s by %s", WikiLink($page, 'known', $CDATE), WikiLink($COMMENT_CREATOR, 'if_known')) ?></span>
29 <br clear="all" class="clear-floats" />
31 <?php if ($buttons or $modified) { ?>
32 <div class="floatright">
38 <div class="wikicomment-body">