echo __('Errors'); ?> <b><?php echo $totals['errors']; ?> </b>. </span> <?php if ($xdebug_enabled and isset($coverage)) { ?> <span class="code_coverage"> <?php $level_class = $coverage > 75 ? 'excellent' : ($coverage > 35 ? 'ok' : 'terrible'); ?> <?php echo __('Tests covered :percent of the :codebase', array(':percent' => '<b class="' . $level_class . '">' . num::format($coverage, 2) . '%</b>', ':codebase' => !empty($coverage_explanation) ? '<span title="' . $coverage_explanation . '" style="display:inline;">modules</span>' : 'codebase')); ?> , <?php echo HTML::anchor($report_uri, 'View'); ?> or <?php echo HTML::anchor($report_uri . '&archive=1', 'Download'); ?> the report </span> <?php } ?> </div>
/** * User friends */ public function _friends() { $this->tab_id = 'friends'; $owner = $this->user && $this->member->id == $this->user->id; // handle pagination $pagination = new Pagination(array('items_per_page' => 25, 'total_items' => $this->member->get_friend_count())); $this->page_subtitle .= __(':friends friends, page :page of :pages', array(':friends' => '<var>' . num::format($pagination->total_items) . '</var>', ':page' => '<var>' . $pagination->current_page . '</var>', ':pages' => '<var>' . $pagination->total_pages . '</var>')); $friends = $this->member->find_friends($pagination->current_page, $pagination->items_per_page); widget::add('main', $pagination); widget::add('main', View::factory('member/friends', array('friends' => $friends))); widget::add('main', $pagination); $this->_side_views(); }
<span class="time"><?php echo __('Time') ?>: <b><?php echo $time?></b></span> <span class="summary"> <?php echo __('Tests') ?> <b><?php echo $totals['tests']?></b>, <?php echo __('Assertions') ?> <b><?php echo $totals['assertions']?></b>, <?php echo __('Failures') ?> <b><?php echo $totals['failures']?></b>, <?php echo __('Skipped') ?> <b><?php echo $totals['skipped']?></b>, <?php echo __('Errors') ?> <b><?php echo $totals['errors']?></b>. </span> <?php if($xdebug_enabled AND isset($coverage)): ?> <span class="code_coverage"> <?php $level_class = ($coverage > 75 ? 'excellent' : ($coverage > 35 ? 'ok' : 'terrible')); ?> <?php echo __('Tests covered :percent of the :codebase', array ( ':percent' => '<b class="'.$level_class.'">'.num::format($coverage, 2).'%</b>', ':codebase' => ( ! empty($coverage_explanation) ? '<span title="'.$coverage_explanation.'" style="display:inline;">modules</span>' : 'codebase') ) ); ?>, <?php echo Form::open($report_uri, array('method' => 'POST', 'id' => 'download-report')); ?> <label><?php echo __('Download report as'); ?></label> <?php echo Form::select('format', $report_formats); ?> <input type="submit" value="Get it!" /> <?php echo Form::close(); ?> </span> <?php endif; ?> </div> <div id="results">
/** * Print icon with value * * @param integer|array $value :var => value * @param string $singular title for singular value * @param string $plural title for plural value * @param string $class icon class */ public static function icon_value($value, $singular = '', $plural = '', $class = '') { $class = $class ? 'icon ' . $class : 'icon'; if (is_array($value)) { $var = key($value); $value = $value[$var]; } $formatted = num::format($value); $plural = $plural ? $plural : $singular; $title = $singular && $plural ? ' title="' . __2($singular, $plural, $value, array($var => $formatted)) . '"' : ''; return '<var class="' . $class . '"' . $title . '>' . $formatted . '</var>'; }