|
From: Ulf E. <ulf...@us...> - 2005-08-22 20:31:05
|
Update of /cvsroot/phpbt/phpbt/templates/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18132/phpbt/templates/default Modified Files: bugdisplay.html wrap.html Log Message: Added support to bookmark/monitor a set of bugs Index: bugdisplay.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/bugdisplay.html,v retrieving revision 1.49 retrieving revision 1.50 diff -u -r1.49 -r1.50 --- bugdisplay.html 20 Jul 2005 18:12:34 -0000 1.49 +++ bugdisplay.html 22 Aug 2005 20:30:56 -0000 1.50 @@ -235,6 +235,11 @@ </table> </form> <div align="center" class="bugdisplaylinks"> +<?php if (!$already_bookmarked) { ?> + <b><a href="<?php echo $_SERVER['PHP_SELF']; ?>?op=addbookmark&bugid=<?php echo $bug_id; ?>"><?php echo translate("Bookmark this bug"); ?></a></b> | +<?php } else { ?> + <b><a href="<?php echo $_SERVER['PHP_SELF']; ?>?op=delbookmark&bugid=<?php echo $bug_id; ?>"><?php echo translate("Remove bookmark for this bug"); ?></a></b> | +<?php } ?> <?php if (!empty($error['vote'])) echo "<div class=\"error\">{$error['vote']}</div>" ?> <b><a href="<?php echo $_SERVER['PHP_SELF']; ?>?op=vote&bugid=<?php echo $bug_id; ?>" onClick="if (<?php echo $already_voted; ?>) { alert ('<?php echo translate("You have already voted for this bug"); ?>'); return false; }"><?php echo translate("Vote for this bug"); ?></a></b> | <b><a href="<?php echo $_SERVER['PHP_SELF']; ?>?op=viewvotes&bugid=<?php echo $bug_id; ?>"><?php echo translate("View votes"); ?> (<?php echo $num_votes; ?>)</a></b> | Index: wrap.html =================================================================== RCS file: /cvsroot/phpbt/phpbt/templates/default/wrap.html,v retrieving revision 1.31 retrieving revision 1.32 diff -u -r1.31 -r1.32 --- wrap.html 20 Jul 2005 18:01:34 -0000 1.31 +++ wrap.html 22 Aug 2005 20:30:56 -0000 1.32 @@ -50,6 +50,7 @@ <?php } else { ?> <?php echo translate("Bugs assigned to me"); ?>: <a href="query.php?op=mybugs&assignedto=1&open=1" title="Open"><?php echo $owner_open ?></a> / <a href="query.php?op=mybugs&assignedto=1&open=0" title="Closed"><?php echo $owner_closed ?></a> | <?php echo translate("Bugs reported by me"); ?>: <a href="query.php?op=mybugs&reportedby=1&open=1" title="Open"><?php echo $reporter_open ?></a> / <a href="query.php?op=mybugs&reportedby=1&open=0" title="Closed"><?php echo $reporter_closed ?></a> + | <?php echo translate("Bookmarked bugs"); ?>: <a href="query.php?op=mybugs&bookmarked=1&open=1" title="Open"><?php echo $bookmarks_open ?></a> / <a href="query.php?op=mybugs&bookmarked=1&open=0" title="Closed"><?php echo $bookmarks_closed ?></a> | <a href="user.php"><?php echo translate("Personal Page"); ?></a> | <a href="logout.php"><?php echo translate("Logout"), " ", $_SESSION["uname"]; ?></a> <?php } ?> |