From a28447d7750116440fdd7b1d16389f341ec4acd9 Mon Sep 17 00:00:00 2001 From: Heikki Hokkanen Date: Sun, 18 Sep 2011 21:39:09 +0300 Subject: [PATCH] Add last commit message to index page. --- inc/functions.php | 1 + templates/index.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/inc/functions.php b/inc/functions.php index 2946ef3..40a670f 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -99,6 +99,7 @@ function get_project_info($name) $info['head_datetime'] = gmstrftime($conf['datetime'], $headinfo['author_utcstamp']); $info['head_hash'] = $headinfo['h']; $info['head_tree'] = $headinfo['tree']; + $info['message'] = $headinfo['message']; return $info; } diff --git a/templates/index.php b/templates/index.php index 02d5c82..55b3344 100644 --- a/templates/index.php +++ b/templates/index.php @@ -4,6 +4,7 @@ Project Description + Last Commit Last Change Actions @@ -15,6 +16,7 @@ foreach ($page['projects'] as $p) { echo "\n"; echo "\t 'summary', 'p' => $p['name'])) ."\">$p[name]\n"; echo "\t". htmlentities_wrapper($p['description']) ."\n"; + echo "\t". htmlentities_wrapper($p['message']) ."\n"; echo "\t". htmlentities_wrapper($p['head_datetime']) ."\n"; echo "\t"; echo " 'tree', 'p' => $p['name'], 'h' => $p['head_tree'], 'hb' => $p['head_hash'])) ."\" class=\"tree_link\" title=\"Tree\">tree"; -- 2.11.4.GIT