]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/templates/comment.tmpl
rcs_id no longer makes sense with Subversion global version number
[SourceForge/phpwiki.git] / themes / default / templates / comment.tmpl
1 <?php // -*- php -*-
2 // rcs_id('$Id$');
3 $CDATE = $WikiTheme->formatDateTime($COMMENT_CTIME);
4 $buttons = $modified = '';
5
6 if ($user->isAdmin() or $user->getId() == $COMMENT_CREATOR) {
7     $buttons = HTML::small(array('class' => 'floatleft'),
8                            Button('edit', false, $page));
9     if ($user->isAdmin())
10         $buttons->pushContent($SEP, Button('remove', _("Remove Comment"), $page));
11 }
12
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')));
20 }
21 ?>
22
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" />
30   </div>
31   <?php if ($buttons or $modified) { ?>
32     <div class="floatright">
33       <?= $buttons ?>
34       <?= $modified ?>
35       <br clear="all" />
36     </div>
37   <?php } ?>
38   <div class="wikicomment-body">
39     <?= $CONTENT ?>
40   </div>
41 </div>
42 <hr class="no-css" />