diff options
-rw-r--r-- | timeline/timeline.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/timeline/timeline.php b/timeline/timeline.php index 2499ecf..4bc1d4e 100644 --- a/timeline/timeline.php +++ b/timeline/timeline.php @@ -30,8 +30,12 @@ while ($evt =& $res->fetchRow()) { if ($evt['event_notes'] != "") { $event_description .= ": ".$evt['event_notes']; } + $event_type = ""; + if (substr($evt['event_type'], 0, 11) == "git_commit_") { + $event_type = "Changeset ".substr($evt['event_type'], 11, strlen($evt['event_type'])).".git "; + } $img = '<img src="/images/'.$evt['event_type'].'.png">'; - $timeline .= '<tr><td align="right" valign="top" width="60">'.$evt['event_time'].'</td><td align="center" valign="top" width="30">'.$img.'</td><td valign="top">'.$event_description.'</td></tr>'; + $timeline .= '<tr><td align="right" valign="top" width="60">'.$evt['event_time'].'</td><td align="center" valign="top" width="30">'.$img.'</td><td valign="top">'.$event_type.$event_description.'</td></tr>'; $timeline .= "\n"; $currdate = $evt['event_date']; } |