From 4b2575819eb39d470a56927b46f66871719bae36 Mon Sep 17 00:00:00 2001 From: Don Chambers Date: Tue, 18 Sep 2007 16:06:04 +0000 Subject: [PATCH] comments.inc.php - truncate author, email and url like referrer on admin comments page; add new class for pending comments header, BP admin now shows yellow background with red border for pending comments header matching Grischa's previous contribution of a red border for comment content below the header. --- include/admin/comments.inc.php | 12 ++++++------ templates/bulletproof/admin/style.css | 11 ++++++----- templates/bulletproof/admin/style_fluid.css | 6 ++++++ 3 files changed, 18 insertions(+), 11 deletions(-) diff --git a/include/admin/comments.inc.php b/include/admin/comments.inc.php index 1665e0f3..5f294d71 100644 --- a/include/admin/comments.inc.php +++ b/include/admin/comments.inc.php @@ -398,11 +398,11 @@ foreach ($sql as $rs) { if ($comment['status'] == 'pending') { $class .= ' serendipity_admin_comment_pending'; } - $header_class = ($comment['status'] == 'pending' ? 'serendipityAdminMsgNote' : ''); + $header_class = ($comment['status'] == 'pending' ? 'serendipityAdminMsgNote serendipity_admin_comment_pending_header' : ''); ?> - + @@ -414,14 +414,14 @@ foreach ($sql as $rs) { - + @@ -443,7 +443,7 @@ foreach ($sql as $rs) { echo 'N/A'; } else { ?> - + @@ -456,7 +456,7 @@ foreach ($sql as $rs) { echo 'N/A'; } else { ?> - + diff --git a/templates/bulletproof/admin/style.css b/templates/bulletproof/admin/style.css index 9d3623b9..507a7637 100644 --- a/templates/bulletproof/admin/style.css +++ b/templates/bulletproof/admin/style.css @@ -379,6 +379,12 @@ ul.serendipitySideBarMenuMain .serendipitySideBarMenuFoot { border: 2px solid #FF0000; } +.serendipity_admin_comment_pending_header{ + background: #FFFF9D; + border: 2px solid #FF0000; + border-bottom: 0; +} + /* new input classes available in s9y v1.2 */ .input_checkbox, .input_radio, .input_file, .input_textbox, .input_button, label, select, textarea{ font: 100% Verdana, Arial, Helvetica, sans-serif; @@ -546,8 +552,3 @@ span.serendipityTemplateSelectName { line-height: 30px; padding: 0; } - -/* Pending comments in the admins comment list */ -.serendipity_admin_comment_pending { - border: 2px solid #FF0000; -} \ No newline at end of file diff --git a/templates/bulletproof/admin/style_fluid.css b/templates/bulletproof/admin/style_fluid.css index b56e83ac..d4247607 100644 --- a/templates/bulletproof/admin/style_fluid.css +++ b/templates/bulletproof/admin/style_fluid.css @@ -382,6 +382,12 @@ ul.serendipitySideBarMenuMain .serendipitySideBarMenuFoot { border: 2px solid #FF0000; } +.serendipity_admin_comment_pending_header{ + background: #FFFF9D; + border: 2px solid #FF0000; + border-bottom: 0; +} + /* new input classes available in s9y v1.2 */ .input_checkbox, .input_radio, .input_file, .input_textbox, .input_button, label, select, textarea{ font: 100% Verdana, Arial, Helvetica, sans-serif;
: : : - +