diff options
author | Loui Chang <louipc.ist@gmail.com> | 2009-02-19 05:01:25 +0100 |
---|---|---|
committer | Loui Chang <louipc.ist@gmail.com> | 2009-02-19 05:01:25 +0100 |
commit | 24c9955b3c71e4009b1286152c7187197d2da205 (patch) | |
tree | e91165a6769848c6cf567490b68fa1cabf9d9e59 /web/template | |
parent | a05438247627142923fd8435bc1f8d85d963924e (diff) | |
download | aur-24c9955b3c71e4009b1286152c7187197d2da205.tar.gz aur-24c9955b3c71e4009b1286152c7187197d2da205.tar.xz |
Revamp markup and styles for comments.
Make post date consistent with other dates.
Look Ma, no tables!
Signed-off-by: Loui Chang <louipc.ist@gmail.com>
Diffstat (limited to 'web/template')
-rw-r--r-- | web/template/pkg_comments.php | 38 |
1 files changed, 14 insertions, 24 deletions
diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php index 51887646..20cd2787 100644 --- a/web/template/pkg_comments.php +++ b/web/template/pkg_comments.php @@ -1,37 +1,27 @@ <div class="pgbox"> -<table width="100%"> -<?php while (list($indx, $carr) = each($comments)) { ?> - <tr class='boxSoft'> - <td class='boxSoftTitle' valign='top' style='padding-right: 10' colspan='2'> - <span class='f3'> <?php +while (list($indx, $carr) = each($comments)) { ?> + <div class="comment-header"><?php if (canDeleteComment($carr['ID'], $atype, $SID)) { $durl = '<a href="pkgedit.php?del_Comment=1'; $durl.= '&comment_id=' . $carr['ID'] . '&ID=' . $row['ID']; $durl.= '"><img src="images/x.png" border="0"'; $durl.= ' alt="' . __("Delete comment") . '"></a> '; - echo $durl; + echo $durl; } + if ($SID) { - echo __("Comment by: %s on %s", - "<a href='account.php?Action=AccountInfo&ID=" . $carr["UsersID"] . "'><b>" . $carr["UserName"] . "</b></a>", gmdate("Y m d [H:i:s]", $carr["CommentTS"])); - } else { - echo __("Comment by: %s on %s", - '<b>' . $carr['UserName'] . '</b>', - gmdate("Y m d [H:i:s]", $carr["CommentTS"])); + $carr['UserName'] = "<a href=\"account.php?Action=AccountInfo&ID={$carr['UsersID']}\">{$carr['UserName']}</a>"; } -?> - </span> - </td> - </tr> - <tr> - <td class="boxSoft"> - <code><?php echo nl2br(htmlspecialchars($carr["Comments"])) ?></code> - </td> - </tr> + + echo __('Comment by: %s on %s', $carr['UserName'], gmdate('r', $carr['CommentTS'])); +?></div> + <blockquote class="comment-body"> + <div> +<?php echo nl2br(htmlspecialchars($carr['Comments'])) ?> + </div> + </blockquote> <?php -} -?> -</table> +} ?> </div> |