mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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>
This commit is contained in:
parent
a054382476
commit
24c9955b3c
2 changed files with 30 additions and 24 deletions
|
@ -401,3 +401,19 @@ textarea.vLargeTextField {
|
||||||
color: #333;
|
color: #333;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.comment-header {
|
||||||
|
background-color: #f1f2f4;
|
||||||
|
color: #888;
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-left: 5px;
|
||||||
|
margin-top: 5px;
|
||||||
|
padding: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.comment-body {
|
||||||
|
margin-left: 5px;
|
||||||
|
padding: 2px;
|
||||||
|
font-family: monospace;
|
||||||
|
}
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
<div class="pgbox">
|
<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
|
<?php
|
||||||
|
while (list($indx, $carr) = each($comments)) { ?>
|
||||||
|
<div class="comment-header"><?php
|
||||||
if (canDeleteComment($carr['ID'], $atype, $SID)) {
|
if (canDeleteComment($carr['ID'], $atype, $SID)) {
|
||||||
$durl = '<a href="pkgedit.php?del_Comment=1';
|
$durl = '<a href="pkgedit.php?del_Comment=1';
|
||||||
$durl.= '&comment_id=' . $carr['ID'] . '&ID=' . $row['ID'];
|
$durl.= '&comment_id=' . $carr['ID'] . '&ID=' . $row['ID'];
|
||||||
|
@ -13,25 +10,18 @@
|
||||||
|
|
||||||
echo $durl;
|
echo $durl;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($SID) {
|
if ($SID) {
|
||||||
echo __("Comment by: %s on %s",
|
$carr['UserName'] = "<a href=\"account.php?Action=AccountInfo&ID={$carr['UsersID']}\">{$carr['UserName']}</a>";
|
||||||
"<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"]));
|
|
||||||
}
|
}
|
||||||
?>
|
|
||||||
</span>
|
echo __('Comment by: %s on %s', $carr['UserName'], gmdate('r', $carr['CommentTS']));
|
||||||
</td>
|
?></div>
|
||||||
</tr>
|
<blockquote class="comment-body">
|
||||||
<tr>
|
<div>
|
||||||
<td class="boxSoft">
|
<?php echo nl2br(htmlspecialchars($carr['Comments'])) ?>
|
||||||
<code><?php echo nl2br(htmlspecialchars($carr["Comments"])) ?></code>
|
</div>
|
||||||
</td>
|
</blockquote>
|
||||||
</tr>
|
<?php
|
||||||
<?php
|
} ?>
|
||||||
}
|
|
||||||
?>
|
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue