2 echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n";
4 <!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
5 <html xmlns
="http://www.w3.org/1999/xhtml" xml
:lang
="en" lang
="en">
7 <title
><?php
echo $page['title']; ?
></title
>
8 <link rel
="stylesheet" href
="default.css" type
="text/css" />
15 if (isset($page['project'])) {
16 echo " » <a href=\"". makelink(array('a' => 'summary', 'p' => $page['project'])) ."\">$page[project]</a>";
18 // TODO: move this out of here
19 if ($page['action'] === 'summary') {
22 elseif ($page['action'] === 'commit') {
23 echo " : Commit $page[commit_id]";
25 elseif ($page['action'] === 'shortlog') {
28 elseif ($page['action'] === 'tree') {
29 echo " : Tree $page[tree_id]";
31 elseif ($page['action'] === 'viewblob') {
32 echo " : Blob $page[hash]";
35 if (isset($page['path'])) {
37 echo htmlentities(join(' / ', explode('/', $page['path'])));
42 <?php
if (isset($page['project'])) { ?
>
44 <a href
="<?php echo makelink(array('a' => 'summary', 'p' => $page['project'])); ?>">Summary
</a
> |
45 <a href
="<?php echo makelink(array('a' => 'shortlog', 'p' => $page['project'])); ?>">Shortlog
</a
> |
46 <a href
="<?php echo makelink(array('a' => 'commit', 'p' => $page['project'], 'h' => $page['commit_id'])); ?>">Commit
</a
> |
47 <a href
="<?php echo makelink(array('a' => 'commitdiff', 'p' => $page['project'], 'h' => $page['commit_id'])); ?>">Commitdiff
</a
> |
48 <a href
="<?php echo makelink(array('a' => 'tree', 'p' => $page['project'], 'h' => $page['tree_id'], 'hb' => $page['commit_id'])); ?>">Tree
</a
>