Use tables for summary page, too.
[viewgit.git] / templates / summary.php
blobbbeab2b472cd0ee26eb302ecf580b469866df0b8
1 <h1>Summary for <?php echo $page['project']; ?></h1>
3 <h2>Shortlog</h2>
5 <table class="shortlog">
6 <thead>
7 <tr>
8 <th class="date">Date</th>
9 <th class="author">Author</th>
10 <th class="message">Message</th>
11 <th class="actions">Actions</th>
12 </tr>
13 </thead>
14 <tbody>
15 <?php
16 foreach ($page['shortlog'] as $l) {
17 echo "<tr>\n";
18 echo "\t<td>$l[date]</td>\n";
19 echo "\t<td>$l[author]</td>\n";
20 echo "\t<td><a href=\"". makelink(array('a' => 'commit', 'p' => $page['project'], 'h' => $l['commit_id'])) ."\">$l[message]</a></td>\n";
21 echo "\t<td></td>\n";
22 echo "</tr>\n";
25 </tbody>
26 </table>
28 <h2>Heads</h2>
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>