1 <h1
><a href
="<?php echo makelink(array('a' => 'shortlog', 'p' => $page['project'])); ?>">Shortlog
</a
></h1
>
3 <table
class="shortlog">
6 <th
class="date">Date
</th
>
7 <th
class="author">Author
</th
>
8 <th
class="message">Message
</th
>
9 <th
class="actions">Actions
</th
>
14 $page['lasthash'] = 'HEAD';
15 foreach ($page['shortlog'] as $l) {
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));
25 if ($parts[0] == 'tags') { $type = 'tag'; }
26 elseif ($parts[0] == 'remotes') { $type = 'remote'; }
27 echo "<span class=\"label $type\" title=\"$ref\">$shortref</span>";
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>]";
38 $page['lasthash'] = $l['commit_id'];
46 if ($page['lasthash'] !== 'HEAD') {
47 echo "<p><a href=\"". makelink(array('a' => 'shortlog', 'p' => $page['project'], 'h' => $page['lasthash'])) ."\">More...</a></p>";