Update of /cvsroot/php-blog/serendipity/include/admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24648/include/admin
Modified Files:
comments.inc.php
Log Message:
pimp up comment screen with buttons, highlight un-approved comments/trackbacks
Index: comments.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/admin/comments.inc.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- comments.inc.php 3 Dec 2004 10:07:40 -0000 1.9
+++ comments.inc.php 21 Dec 2004 13:02:49 -0000 1.10
@@ -286,9 +286,10 @@
}
$class = 'serendipity_admin_list_item_' . (($i % 2 == 0 ) ? 'even' : 'uneven');
+ $header_class = ($rs['status'] == 'pending' ? 'serendipityAdminMsgNote' : '');
?>
<tr>
- <td><a name="c<?php echo $rs['id'] ?>"></a>
+ <td class="<?php echo $header_class; ?>"><a name="c<?php echo $rs['id'] ?>"></a>
<?php echo ($rs['type'] == 'NORMAL' ? COMMENT : TRACKBACK) . ' #'. $rs['id'] .', '. IN_REPLY_TO .' <strong>'. $rs['title'] .'</strong>, '. ON . ' ' . serendipity_mb('ucfirst', serendipity_strftime('%b %e %Y, %H:%M', $rs['timestamp']))?>
</td>
</tr>
@@ -314,13 +315,15 @@
</td>
</tr>
</table>
-<?php if ($rs['status'] == 'pending') { ?>
- <strong>[<a href="?serendipity[action]=admin&serendipity[adminModule]=comments&serendipity[adminAction]=approve&serendipity[id]=<?php echo $rs['id'] ?>">Approve</a>]</strong> -
+<?php if ($rs['status'] == 'pending') {
+ $title = ($rs['type'] == 'NORMAL' ? APPROVE_COMMENT : APPROVE_TRACKBACK);
+?>
+ <a href="?serendipity[action]=admin&serendipity[adminModule]=comments&serendipity[adminAction]=approve&serendipity[id]=<?php echo $rs['id'] ?>" title="<?php echo $title; ?>"><img src="<?php echo serendipity_getTemplateFile('admin/img/clock_future.png'); ?>" alt="<?php echo $title; ?>" style="border: 0px none;" /></a>
<?php } ?>
- [<a href="?serendipity[action]=admin&serendipity[adminModule]=comments&serendipity[adminAction]=delete&serendipity[id]=<?php echo $rs['id'] ?>&serendipity[entry_id]=<?php echo $rs['entry_id'] ?>" onclick="return confirm('<?php echo sprintf(COMMENT_DELETE_CONFIRM, $rs['id'], htmlspecialchars($rs['author'])) ?>')"><?php echo DELETE ?></a>]
- - [<a href="?serendipity[action]=admin&serendipity[adminModule]=comments&serendipity[adminAction]=edit&serendipity[id]=<?php echo $rs['id'] ?>&serendipity[entry_id]=<?php echo $rs['entry_id'] ?>"><?php echo EDIT ?></a>]
+ <a href="?serendipity[action]=admin&serendipity[adminModule]=comments&serendipity[adminAction]=delete&serendipity[id]=<?php echo $rs['id'] ?>&serendipity[entry_id]=<?php echo $rs['entry_id'] ?>" onclick="return confirm('<?php echo sprintf(COMMENT_DELETE_CONFIRM, $rs['id'], htmlspecialchars($rs['author'])) ?>')" title="<?php echo DELETE ?>"><img src="<?php echo serendipity_getTemplateFile('admin/img/delete_image.png'); ?>" alt="<?php echo DELETE; ?>" style="border: 0px none ; vertical-align: bottom;" /></a>
+ <a href="?serendipity[action]=admin&serendipity[adminModule]=comments&serendipity[adminAction]=edit&serendipity[id]=<?php echo $rs['id'] ?>&serendipity[entry_id]=<?php echo $rs['entry_id'] ?>" title="<?php echo EDIT; ?>"><img src="<?php echo serendipity_getTemplateFile('admin/img/rename.png'); ?>" alt="<?php echo EDIT; ?>" style="border: 0px none ; vertical-align: bottom;" /></a>
<?php if (strlen($fullBody) > strlen($summary) ) { ?>
- - [<a href="#c<?php echo $rs['id'] ?>" onclick="toggle(<?php echo $rs['id'] ?>); return false;" id="<?php echo $rs['id'] ?>_link"><?php echo VIEW ?></a>]
+ <a href="#c<?php echo $rs['id'] ?>" onclick="toggle(<?php echo $rs['id'] ?>); return false;" id="<?php echo $rs['id'] ?>_link" title="<?php echo VIEW; ?>"><img src="<?php echo serendipity_getTemplateFile('admin/img/zoom.png'); ?>" alt="<?php echo VIEW; ?>" style="border: 0px none ; vertical-align: bottom;" /></a>
<?php } ?>
</td>
</tr>
|