Ignore .htaccess.
[viewgit.git] / templates / shortlog.php
blob6cc1538ad5b3bf31b64300c1ae439922eef78f3a
1 <h1><a href="<?php echo makelink(array('a' => 'shortlog', 'p' => $page['project'])); ?>">Shortlog</a></h1>
3 <table class="shortlog">
4 <thead>
5 <tr>
6 <th class="date">Date</th>
7 <th class="author">Author</th>
8 <th class="message">Message</th>
9 <th class="actions">Actions</th>
10 </tr>
11 </thead>
12 <tbody>
13 <?php
14 $page['lasthash'] = 'HEAD';
15 foreach ($page['shortlog'] as $l) {
16 echo "<tr>\n";
17 echo "\t<td>$l[date]</td>\n";
18 echo "\t<td>". htmlentities($l['author']) ."</td>\n";
19 echo "\t<td><a href=\"". makelink(array('a' => 'commit', 'p' => $page['project'], 'h' => $l['commit_id'])) ."\">". htmlentities($l['message']) ."</a></td>\n";
20 echo "\t<td>";
21 echo "[<a href=\"". makelink(array('a' => 'commitdiff', 'p' => $page['project'], 'h' => $l['commit_id'])) ."\">commitdiff</a>]";
22 echo "[<a href=\"". makelink(array('a' => 'tree', 'p' => $page['project'], 'h' => $l['tree'], 'hb' => $l['commit_id'])) ."\">tree</a>]";
23 echo "[<a href=\"". makelink(array('a' => 'archive', 'p' => $page['project'], 'h' => $l['tree'], 't' => 'targz')) ."\">tar/gz</a>]";
24 echo "[<a href=\"". makelink(array('a' => 'archive', 'p' => $page['project'], 'h' => $l['tree'], 't' => 'zip')) ."\">zip</a>]";
25 echo "</td>\n";
26 echo "</tr>\n";
27 $page['lasthash'] = $l['commit_id'];
30 </tbody>
31 </table>
33 <?php
34 if ($page['lasthash'] !== 'HEAD') {
35 echo "<p><a href=\"". makelink(array('a' => 'shortlog', 'p' => $page['project'], 'h' => $page['lasthash'])) ."\">More...</a></p>";