Update of /cvsroot/php-blog/serendipity/include/admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18046
Modified Files:
comments.inc.php
Log Message:
- Referer URIs can get very long and break layout, trim them down
- Link to referer
TODO: Should we also link URLs? and Emails?
TODO: Figure out how to best do this while still preserving the N/A thing
Index: comments.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/admin/comments.inc.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- comments.inc.php 26 Dec 2004 18:34:34 -0000 1.13
+++ comments.inc.php 26 Dec 2004 18:45:34 -0000 1.14
@@ -274,7 +274,7 @@
$rs['url'] = 'N/A';
}
if (empty($rs['referer'])) {
- $rs['referer'] = 'N/A';
+# $rs['referer'] = 'N/A';
}
$fullBody = nl2br(strip_tags($rs['body']));
@@ -296,17 +296,17 @@
<td class="serendipity_admin_list_item <?php echo $class ?>" id="comment_<?php echo $rs['id'] ?>">
<table width="100%" cellspacing="0" cellpadding="3" border="0">
<tr>
- <td rowspan="2" width="20" align="center"><input type="checkbox" name="serendipity[delete][<?php echo $rs['id'] ?>]" value="<?php echo $rs['entry_id'] ?>" onclick="highlightComment('comment_<?php echo $rs['id'] ?>', this.checked)" tabindex="<?php echo $i ?>" /></td>
- <td width="250"><strong><?php echo AUTHOR ?></strong>: <?php echo htmlspecialchars($rs['author']) ?></td>
+ <td rowspan="3" width="20" align="center"><input type="checkbox" name="serendipity[delete][<?php echo $rs['id'] ?>]" value="<?php echo $rs['entry_id'] ?>" onclick="highlightComment('comment_<?php echo $rs['id'] ?>', this.checked)" tabindex="<?php echo $i ?>" /></td>
+ <td width="40%"><strong><?php echo AUTHOR ?></strong>: <?php echo htmlspecialchars($rs['author']) ?></td>
<td><strong><?php echo EMAIL ?></strong>: <?php echo htmlspecialchars($rs['email']) ?></td>
</tr>
<tr>
- <td><strong>IP</strong>: <?php echo htmlspecialchars($rs['ip']) ?></td>
+ <td width="40%"><strong>IP</strong>: <?php echo htmlspecialchars($rs['ip']) ?></td>
<td><strong><?php echo URL; ?></strong>: <?php echo htmlspecialchars($rs['url']) ?></td>
</tr>
<tr>
- <td colspan="2"></td>
- <td><strong><?php echo REFERER; ?></strong>: <?php echo htmlspecialchars($rs['referer']) ?></td>
+ <td width="40%"> </td>
+ <td><strong><?php echo REFERER; ?></strong>: <a href="<?php echo htmlspecialchars($rs['referer']) ?>" title="<?php echo htmlspecialchars($rs['referer']) ?>"><?php echo htmlspecialchars(serendipity_truncateString($rs['referer'],30)) ?></a></td>
<tr>
<td style="border-top: 1px solid #CCCCCC; border-bottom: 1px solid #CCCCCC" colspan="3">
<div id="<?php echo $rs['id'] ?>_summary"><?php echo $summary ?></div>
|