/** * Draw extra description information for the entry. * @param CHANGE $obj */ protected function _draw_description($obj) { if ($obj->files) { echo '<h4>' . $obj->num_files() . ' Files</h4>'; echo $obj->files_as_html(); } }
/** * Outputs the object as HTML. * @param CHANGE $entry * @access private */ protected function _display_as_html($entry) { ?> <div> <table class="basic columns left-labels"> <tr> <th>Kind</th> <td> <?php $props = $entry->kind_properties(); echo $this->context->get_icon_with_text($props->icon, Sixteen_px, $entry->kind_as_text()); ?> </td> </tr> <?php if ($entry->component_id) { $comp = $entry->component(); ?> <tr> <th>Component</th> <td> <?php echo $this->app->get_icon_with_text($comp->icon_url, Sixteen_px, $comp->title_as_link()); ?> </td> </tr> <?php } ?> <tr> <th>Job</th> <td> <?php $job = $entry->job(); if ($job) { $t = $job->title_formatter(); $t->css_class = ''; echo $job->title_as_link($t); } else { ?> (None) <?php } ?> </td> </tr> <?php if (!$this->_hide_users) { ?> <tr> <th>Created</th> <td> <?php echo $entry->time_created->format(); ?> by <?php $creator = $entry->creator(); echo $creator->title_as_link(); ?> </td> </tr> <?php if (!$entry->time_created->equals($entry->time_modified)) { $modifier = $entry->modifier(); ?> <tr> <th>Modified</th> <td><?php echo $entry->time_modified->format(); ?> by <?php echo $modifier->title_as_link(); ?> </td> </tr> <?php } } if ($entry->files) { ?> <tr> <th> Files </th> <td> <?php echo $entry->files_as_html(); ?> </td> </tr> <?php } ?> </table> <?php $this->_echo_branches_as_html($entry); ?> </div> <?php $this->_echo_html_description($entry); $this->_echo_html_extra_description($entry); }