getHelperPluginManager(); $url = $this->plugin('url'); $escape = $plugins->get('escapeHtml'); $translate = $plugins->get('translate'); $hyperlink = $plugins->get('hyperlink'); $this->htmlElement('body')->appendAttribute('class', 'jobs show'); $hasProgress = method_exists($job, 'step'); if ($job->started()) { $started = $this->i18n()->dateFormat($job->started(), 'long', 'long'); if ($hasProgress) { $step = $job->step(); $totalSteps = $job->totalSteps(); $progress = $totalSteps ? sprintf('%s / %s', $step, $totalSteps) : $translate('[undefined]'); } } else { $started = $translate('[not started]'); $progress = '-'; } if ($job->ended()) { $ended = $this->i18n()->dateFormat($job->ended(), 'long', 'long'); } else { $ended = $translate('[not ended]'); } if ($owner = $job->owner()) { $ownerText = $this->escapeHtml($owner->email()); } else { $ownerText = $translate('[no owner]'); } ?> = $this->pageTitle('#' . $escape($job->id()), 1, $translate('Jobs')) ?>