Added issue plugin - basic read support, ugly issue view
[viewgit.git] / plugins / issue / templates / summary.php
blobc870ba4463fa29774e09641787efd4ed1ce89769
1 <?php
2 global $page;
3 ?>
4 <?php if ($page['action'] == 'issue'): ?>
5 <h2>Issues</h2>
6 <?php else: ?>
7 <h2><a href="<?php echo makelink(array('a' => 'issue', 'p' => $page['project']));?>">Issues</a></h2>
8 <?php endif; ?>
10 <?php if (count($page['issues'])): ?>
12 <table>
13 <thead>
14 <tr>
15 <th>Date</th>
16 <th>Title</th>
17 <th>Assigned</th>
18 <th>State</th>
19 </tr>
20 </thead>
21 <tbody>
22 <?php foreach($page['issues'] as $issue):?>
23 <tr>
24 <td><?php echo $issue['date']; ?></td>
25 <td><a href="<?php echo makelink(array('a' => 'issue', 'p' => $page['project'], 'h'=>$issue['id']));?>"><?php echo $issue['title']; ?></a></td>
26 <td><?php echo $issue['assign']; ?></td>
27 <td><?php echo $issue['state']; ?></td>
28 </tr>
29 <?php endforeach; ?>
30 </tbody>
31 </table>
33 <?php else: ?>
34 There are no issues.
35 <?php endif; ?>