/** * Shows parent/latest release for a branch in HTML. * @param BRANCH $obj */ protected function _echo_details_as_html($obj) { ?> <table class="basic columns left-labels"> <tr> <th>State</th> <td> <?php echo $obj->state_as_string(); ?> </td> </tr> <?php $parent_release = $obj->parent_release(); if ($parent_release) { $parent_branch = $parent_release->branch(); ?> <tr> <th>Parent</th> <td> <?php echo $parent_branch->title_as_link(); echo $this->app->display_options->object_separator; echo $parent_release->title_as_link(); ?> </td> </tr> <?php } if ($obj->exists()) { $latest_release = $obj->latest_release(); if ($latest_release) { $rel_text = $latest_release->title_as_link(); } else { $rel_text = 'not released'; } ?> <tr> <th>Latest</th> <td><?php echo $rel_text; ?> </td> </tr> <?php $next_release = $obj->next_release(); if ($next_release) { $rel_text = $next_release->title_as_link(); } else { $rel_text = 'none planned'; } ?> <tr> <th>Next</th> <td><?php echo $rel_text; ?> </td> </tr> <?php } ?> </table> <?php }