Req #2973 [NEW]: PATCH: Link to package page from bug reports
| From: | aaron dot hawley at uvm dot edu | Date: | Wed, 15 Dec 2004 19:45:20 +0000 |
| Subject: | Req #2973 [NEW]: PATCH: Link to package page from bug reports | ||
| Groups: | php.pear.webmaster | ||
| Request: | Send a blank email to pear-webmaster+get-3555@lists.php.net to get a copy of this message | ||
From: aaron dot hawley at uvm dot edu
Operating system: GNU/Linux
PHP version: 4.3.4
Package: Bug System
Bug Type: Feature/Change Request
Bug description: PATCH: Link to package page from bug reports
Description:
------------
It would be convenient for users if they could navigate between the bugs
for a package and the package's home page and documentation, etc.
Thankfully the URL system makes it easy to do. A patch follows to the CVS
version of the PEAR web site.
Reproduce code:
---------------
http://www.uvm.edu/~ashawley/php/pear/bug.php-package_link.diff-u
Index: bug.php
===================================================================
RCS file: /repository/pearweb/public_html/bugs/bug.php,v
retrieving revision 1.72
diff -u -r1.72 bug.php
--- bug.php 8 Dec 2004 20:27:18 -0000 1.72
+++ bug.php 15 Dec 2004 19:37:08 -0000
@@ -391,7 +391,7 @@
<th class="details">Status:</th>
<td><?php echo htmlspecialchars($bug['status']) ?></td>
<th class="details">Package:</th>
- <td><?php echo htmlspecialchars($bug['package_name']) ?></td>
+ <td><a href="/package/<?php echo
htmlspecialchars($bug['package_name']) ?>"><?php echo
htmlspecialchars($bug['package_name']) ?></a></td>
</tr>
<tr id="situation">
<th class="details">Version:</th>
Expected result:
----------------
The Package header in the bug headers will now be a link to the package's
home page on the PEAR web site.
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=2973&edit=1
--