diff options
author | Jose V Beneyto <sepen@crux.nu> | 2012-03-05 11:43:03 +0100 |
---|---|---|
committer | Jose V Beneyto <sepen@crux.nu> | 2012-03-05 11:43:03 +0100 |
commit | efbf88ba8ab70bb5c3d63f67084ec50808b33ea3 (patch) | |
tree | 2b0356e0d7e4a597fa260c17fac7d28fb8ec5887 | |
parent | a6b353a4c19b1dbf067b2b5e4caf418bedd0c86a (diff) | |
download | webtools-efbf88ba8ab70bb5c3d63f67084ec50808b33ea3.tar.gz webtools-efbf88ba8ab70bb5c3d63f67084ec50808b33ea3.tar.xz |
timeline: imported uncommitted changes for timeline.php
-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']; } |