From 24c9955b3c71e4009b1286152c7187197d2da205 Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Wed, 18 Feb 2009 23:01:25 -0500 Subject: Revamp markup and styles for comments. Make post date consistent with other dates. Look Ma, no tables! Signed-off-by: Loui Chang --- web/html/css/arch.css | 16 ++++++++++++++++ web/template/pkg_comments.php | 38 ++++++++++++++------------------------ 2 files changed, 30 insertions(+), 24 deletions(-) (limited to 'web') diff --git a/web/html/css/arch.css b/web/html/css/arch.css index c086b31..6e2cd4a 100644 --- a/web/html/css/arch.css +++ b/web/html/css/arch.css @@ -401,3 +401,19 @@ textarea.vLargeTextField { color: #333; 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; +} diff --git a/web/template/pkg_comments.php b/web/template/pkg_comments.php index 5188764..20cd278 100644 --- a/web/template/pkg_comments.php +++ b/web/template/pkg_comments.php @@ -1,37 +1,27 @@
- - - - - - - - + + echo __('Comment by: %s on %s', $carr['UserName'], gmdate('r', $carr['CommentTS'])); +?> +
+
+ +
+
-
- +
'; - echo $durl; + echo $durl; } + if ($SID) { - echo __("Comment by: %s on %s", - "" . $carr["UserName"] . "", gmdate("Y m d [H:i:s]", $carr["CommentTS"])); - } else { - echo __("Comment by: %s on %s", - '' . $carr['UserName'] . '', - gmdate("Y m d [H:i:s]", $carr["CommentTS"])); + $carr['UserName'] = "{$carr['UserName']}"; } -?> - -
- -
+} ?>
-- cgit v1.2.3-70-g09d2