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=30838e125e0c08d6876ea3571a3e260bbb5716f3;hp=0000000000000000000000000000000000000000;hb=0a6d29345b57ef71b076003e18d13efd3478764c;hpb=c20b2789b4f1c2da70f33cf2d1e78f55478a6e19 diff --git a/htdocs/pages/summary.class.php b/htdocs/pages/summary.class.php new file mode 100644 index 0000000..30838e1 --- /dev/null +++ b/htdocs/pages/summary.class.php @@ -0,0 +1,43 @@ +. + */ + +require_once('pages/shortlog.class.php'); + +class page_summary { + private $page, $phpgitweb; + + public function main($phpgitweb, $project) { + $this->phpgitweb = $phpgitweb; + if(!$project) + return; + $project['refs'] = $phpgitweb->get_project_loader()->getProjectRefs($project); + + $this->page = new ContentProvider('summary', 'main'); + + $this->page->set('description', htmlentities($project['description'])); + $this->page->set('owner', htmlentities($project['owner'])); + + $shortlog = new shortlog(); + $this->page->set('shortlog', $shortlog->generate_shortlog($project, null, 16, 0, null, false)); + + return $this->page; + } + +} + +?> \ No newline at end of file