After GeSHi, restore the original error mask, not E_ALL.
[viewgit.git] / templates / shortlog.php
blob0e634f9ce64ea182eff086012465936d8544e096
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>";
20 if (count($l['refs']) > 0) {
21 foreach ($l['refs'] as $ref) {
22 $parts = explode('/', $ref);
23 $shortref = join('/', array_slice($parts, 1));
24 $type = 'head';
25 if ($parts[0] == 'tags') { $type = 'tag'; }
26 elseif ($parts[0] == 'remotes') { $type = 'remote'; }
27 echo "<span class=\"label $type\" title=\"$ref\">$shortref</span>";
30 echo "</td>\n";
31 echo "\t<td>";
32 echo "[<a href=\"". makelink(array('a' => 'commitdiff', 'p' => $page['project'], 'h' => $l['commit_id'])) ."\">commitdiff</a>]";
33 echo "[<a href=\"". makelink(array('a' => 'tree', 'p' => $page['project'], 'h' => $l['tree'], 'hb' => $l['commit_id'])) ."\">tree</a>]";
34 echo "[<a href=\"". makelink(array('a' => 'archive', 'p' => $page['project'], 'h' => $l['tree'], 't' => 'targz')) ."\" rel=\"nofollow\">tar/gz</a>]";
35 echo "[<a href=\"". makelink(array('a' => 'archive', 'p' => $page['project'], 'h' => $l['tree'], 't' => 'zip')) ."\" rel=\"nofollow\">zip</a>]";
36 echo "[<a href=\"". makelink(array('a' => 'patch', 'p' => $page['project'], 'h' => $l['commit_id'])) ."\">patch</a>]";
37 echo "</td>\n";
38 echo "</tr>\n";
39 $page['lasthash'] = $l['commit_id'];
42 </tbody>
43 </table>
46 <?php
47 if ($page['lasthash'] !== 'HEAD') {
48 echo "<p><a href=\"". makelink(array('a' => 'shortlog', 'p' => $page['project'], 'h' => $page['lasthash'])) ."\">More...</a></p>";