/** * @param CONTEXT $context Context to which this grid belongs. */ public function __construct($context) { parent::__construct($context); $this->css_class .= ' large-tiles'; }
/** * @param JOB $obj Get the title formatter from this job. * Jobs format open jobs with the default 'field' style, whereas closed jobs * are formatted with no style (usually rendered as non-bold). * @return TITLE_FORMATTER * @access private */ public function title_formatter($obj) { $Result = parent::title_formatter($obj); /** @var $branch_info JOB_BRANCH_INFO */ $branch_info = $obj->main_branch_info(); if ($branch_info->is_closed()) { $Result->css_class = ''; } $Result->max_visible_output_chars = 0; return $Result; }