Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $buildApi = new BuildAPI();
- $builds = $buildApi->getLatestBuilds(array(),null,24,10,false);
- $html = "";
- $events = null;
- echo "TEST1 ";
- $title = t('Recent build ');
- $revision = $builds->product_revision;
- $buildId = $builds->id;
- if ($buildId != null) {
- $revision = l($revision, 'build/result/' . $buildId);
- }
- $html .= '<div class="buildsblockbuildheader">';
- $html .= '<div class="type"><strong>' . $title . ' </strong></div><div class="revision"><strong>' . $revision . '</strong></div>';
- $html .= '<div class="clear-block"></div>';
- $html .= '</div>';
- $html .= '<p>';
- echo "TEST2 ";
- if (!is_null($events) && count($events) > 0) {
- echo "TEST3 ";
- foreach ($events as &$event) {
- $id = $event->Deliverable->id;
- $html .= $event->Deliverable->type . ': ' .
- l($id, 'item/' . $id, array('attributes' => array('title' => $event->Deliverable->headline))) . '<br />';
- }
- }
- else {
- echo "TEST4 ";
- $html .= '<em>' . t('Nothing delivered') . '</em>';
- }
- $html .= '</p>';
- echo "TEST5 ";
- echo $html;
- echo "TEST5 ";
- echo $html;
Add Comment
Please, Sign In to add comment