X-Git-Url: http://git.pk910.de/?p=phpgitweb.git;a=blobdiff_plain;f=htdocs%2Fpages%2Fsummary.class.php;fp=htdocs%2Fpages%2Fsummary.class.php;h=360ae01b4808fbb7e5af74757c5845afef2f100f;hp=30838e125e0c08d6876ea3571a3e260bbb5716f3;hb=bb1fc2c20c1ec39257c6e89cae030636c15edad3;hpb=0a6d29345b57ef71b076003e18d13efd3478764c diff --git a/htdocs/pages/summary.class.php b/htdocs/pages/summary.class.php index 30838e1..360ae01 100644 --- a/htdocs/pages/summary.class.php +++ b/htdocs/pages/summary.class.php @@ -26,14 +26,30 @@ class page_summary { if(!$project) return; $project['refs'] = $phpgitweb->get_project_loader()->getProjectRefs($project); + $phpgitweb->append_header_nav("summary", null, true); $this->page = new ContentProvider('summary', 'main'); $this->page->set('description', htmlentities($project['description'])); $this->page->set('owner', htmlentities($project['owner'])); + $giturls = GitConfig::$GIT_BASE_URL; + $urlfield = ""; + foreach($giturls as $url) { + if($urlfield != "") + $urlfield .= "
"; + $urlfield .= $url.(substr($url, -1) == '/' ? '' : '/').$project['name']; + } + if($urlfield != "") + $this->page->set('giturl', new ContentProvider('summary', 'giturl', array('git_link' => $urlfield))); + else + $this->page->set('giturl', ''); + $shortlog = new shortlog(); $this->page->set('shortlog', $shortlog->generate_shortlog($project, null, 16, 0, null, false)); + $first_commit = $shortlog->get_first_commit(); + + $this->page->set('last_change', date('r', $first_commit['committer_time'])); return $this->page; }