Req #10575 [NEW]: link to page in pearweb/notes
| From: | moosh at php dot net | Date: | Sat, 31 Mar 2007 19:25:58 +0000 |
| Subject: | Req #10575 [NEW]: link to page in pearweb/notes | ||
| Groups: | php.pear.webmaster | ||
| Request: | Send a blank email to pear-webmaster+get-5819@lists.php.net to get a copy of this message | ||
From: moosh
Operating system:
Package version:
PHP version: Irrelevant
Package: Bug System
Bug Type: Feature/Change Request
Bug description: link to page in pearweb/notes
Description:
------------
pending notes are shown on all pages,
this patch add a link to the page from where was posted the note.
Test script:
---------------
Index: templates/notes/note.tpl.php
===================================================================
RCS file: /repository/pearweb/templates/notes/note.tpl.php,v
retrieving revision 1.1
diff -U 3 -r1.1 note.tpl.php
--- templates/notes/note.tpl.php 22 Mar 2007 23:40:01 -0000 1.1
+++ templates/notes/note.tpl.php 31 Mar 2007 17:28:12 -0000
@@ -1,5 +1,7 @@
<?php if ($pending) { ?>
-<div class="pending_note">Pending note <a href="/notes/admin/?url=<?php
echo $id ?>">Approve/Delete</a>
+<div class="pending_note">Pending note
+<a href="/notes/admin/?url=<?php echo $id ?>">Approve/Delete</a>
+(<a href="/manual/en/<?php echo $id ?>">view origin</a>)
<?php } else { ?>
<div class="note">
<?php } ?>
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=10575&edit=1
--