xref: /web-bugs/templates/listpatches.php (revision 180dccfe)
1<?php if (count($patches)) { ?>
2<div class="explain">
3<table>
4 <tr>
5  <td>
6   <a href="bug.php?id=<?php echo $bug_id; ?>">Return to Bug #<?php echo $bug_id; ?></a>
7   <?php if ($canpatch) { ?>
8        | <a href="patch-add.php?bug_id=<?php echo $bug_id; ?>">Add a Patch</a>
9   <?php } ?>
10  </td>
11 </tr>
12<?php
13foreach ($patches as $fpa) { $fixed[$fpa['patch']][] = [ $fpa['revision'], $fpa['developer'] ]; }
14foreach ($fixed as $pname => $revs) { ?>
15 <tr>
16  <th class="details">
17   Patch <a href="patch-display.php?bug_id=<?php echo $bug_id; ?>&amp;patch=<?php echo urlencode($pname); ?>&amp;revision=latest"><?php echo clean($pname); ?></a>
18  </th>
19  <td>
20   <?php foreach ($revs as $rev) { ?>
21        revision <a href="patch-display.php?bug_id=<?php echo $bug_id;?>&amp;patch=<?php echo urlencode($pname); ?>&amp;revision=<?php echo $rev[0]; ?>&amp;display=1"><?php echo format_date($rev[0]); ?></a>
22        by <?php echo spam_protect($rev[1]); ?></a><br>
23   <?php } //foreach ($revs as $rev); ?>
24  </td>
25 </tr>
26<?php } ?>
27</table>
28</div>
29<?php } ?>
30