Allow browsing of tags/branches.
[viewgit.git] / templates / summary.php
blobada24e8fd259ee082650d1fba79ef47b21151e23
1 <?php
2 require_once('templates/shortlog.php');
3 ?>
5 <h1>Tags</h1>
7 <table class="heads">
8 <thead>
9 <tr>
10 <th class="date">Date</th>
11 <th class="branch">Tag</th>
12 <th class="actions">Actions</th>
13 </tr>
14 </thead>
15 <tbody>
16 <?php
17 foreach ($page['tags'] as $tag) {
18 echo "<tr>\n";
19 echo "\t<td>$tag[date]</td>\n";
20 echo "\t<td><a href=\"". makelink(array('a' => 'shortlog', 'p' => $page['project'], 'h' => $tag['fullname'])) ."\">$tag[name]</a></td>\n";
21 echo "\t<td></td>\n";
22 echo "</tr>\n";
25 </tbody>
26 </table>
28 <h1>Heads</h1>
30 <table class="heads">
31 <thead>
32 <tr>
33 <th class="date">Date</th>
34 <th class="branch">Branch</th>
35 <th class="actions">Actions</th>
36 </tr>
37 </thead>
38 <tbody>
39 <?php
40 foreach ($page['heads'] as $h) {
41 echo "<tr>\n";
42 echo "\t<td>$h[date]</td>\n";
43 echo "\t<td><a href=\"". makelink(array('a' => 'shortlog', 'p' => $page['project'], 'h' => $h['fullname'])) ."\">$h[name]</a></td>\n";
44 echo "\t<td></td>\n";
45 echo "</tr>\n";
48 </tbody>
49 </table>