1 <!-- $Id: comment.tmpl,v 1.2 2004-03-14 16:40:45 rurban Exp $ -->
3 $CDATE = $Theme->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(Button('remove', false, $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 = $Theme->formatDateTime($rev->get('mtime'));
17 $modified = HTML::small(array('class' => 'floatright'),
18 fmt("Comment 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-body">
29 <div class="wikicomment-header">
30 <strong class="floatright"><?= WikiLink($COMMENT_CREATOR, 'if_known') ?> <?= WikiLink($page, 'known', $CDATE) ?></strong>
31 <?php if (!$buttons and !$modified) { ?>
32 <br clear="all" class="clear-floats" />
35 <?php if ($buttons or $modified) { ?>
36 <div class="wikicomment-footer">
39 <br clear="all" class="clear-floats" />