|
From: Benjamin C. <bc...@us...> - 2003-09-01 13:48:22
|
Update of /cvsroot/phpbt/phpbt/templates/default
In directory sc8-pr-cvs1:/tmp/cvs-serv16600/templates/default
Modified Files:
Tag: htmltemplates
bugdisplay-printable.html bugdisplay.html
Log Message:
Changed the way printable view works
Index: bugdisplay-printable.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/bugdisplay-printable.html,v
retrieving revision 1.11.4.1
retrieving revision 1.11.4.2
diff -u -r1.11.4.1 -r1.11.4.2
--- bugdisplay-printable.html 30 Aug 2003 22:00:32 -0000 1.11.4.1
+++ bugdisplay-printable.html 1 Sep 2003 13:48:18 -0000 1.11.4.2
@@ -47,9 +47,23 @@
<br>
<?php echo translate("URL"); ?>: <?php echo $url; ?>
<br>
-<?php echo translate("Depends on bugs"); ?>: <?php echo $bug_dependencies; ?>
+<?php echo translate("Depends on bugs"); ?>:
+<?php for ($i = 0, $count = count($bug_dependencies); $i < $count; $i++) {
+ printf('<a href="bug.php?op=show&bugid=%d" class="%s">#%d</a>%s',
+ $bug_dependencies[$i]['bug_id'],
+ ($bug_dependencies[$i]['bug_open'] ? 'open_bug_number' : 'closed_bug_number'),
+ $bug_dependencies[$i]['bug_id'],
+ ($i < $count - 1 ? ', ' : ''));
+} ?>
<br>
-<?php echo translate("Blocks bugs"); ?>: <?php echo $rev_bug_dependencies; ?>
+<?php echo translate("Blocks bugs"); ?>:
+<?php for ($i = 0, $count = count($bug_blocks); $i < $count; $i++) {
+ printf('<a href="bug.php?op=show&bugid=%d" class="%s">#%d</a>%s',
+ $bug_blocks[$i]['bug_id'],
+ ($bug_blocks[$i]['bug_open'] ? 'open_bug_number' : 'closed_bug_number'),
+ $bug_blocks[$i]['bug_id'],
+ ($i < $count - 1 ? ', ' : ''));
+} ?>
<br>
<br>
<?php echo translate("Comments"); ?>:
Index: bugdisplay.html
===================================================================
RCS file: /cvsroot/phpbt/phpbt/templates/default/bugdisplay.html,v
retrieving revision 1.45.4.2
retrieving revision 1.45.4.3
diff -u -r1.45.4.2 -r1.45.4.3
--- bugdisplay.html 1 Sep 2003 13:40:31 -0000 1.45.4.2
+++ bugdisplay.html 1 Sep 2003 13:48:18 -0000 1.45.4.3
@@ -165,7 +165,7 @@
</tr>
</table>
<table border="0" cellpadding="2" cellspacing="0" width="100%">
- <tr>
+ <tr class="noprint">
<td valign="top"><?php echo translate("Additional comments"); ?>:<br><br>
<textarea name="comments" rows="6" cols="55" wrap="virtual" <?php echo $disabled ?>><?php echo $_POST['comments']; ?></textarea>
<br><br>
@@ -236,8 +236,7 @@
<?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> |
- <b><a href="<?php echo $_SERVER['PHP_SELF']; ?>?op=history&bugid=<?php echo $bug_id; ?>"><?php echo translate("View bug history"); ?></a></b> |
- <b><a href="<?php echo $_SERVER['PHP_SELF']; ?>?op=print&bugid=<?php echo $bug_id; ?>"><?php echo translate("Printable view"); ?></a></b>
+ <b><a href="<?php echo $_SERVER['PHP_SELF']; ?>?op=history&bugid=<?php echo $bug_id; ?>"><?php echo translate("View bug history"); ?></a></b>
</div>
<br><br>
<table border="0" cellpadding="2" cellspacing="0" width="100%">
|