public function presentCssClass()
{
if ($this->status === Deployment::COMPLETED || $this->status === Deployment::COMPLETED_WITH_ERRORS) {
return 'success';
} elseif (in_array($this->status, [Deployment::FAILED, Deployment::ABORTING, Deployment::ABORTED], true)) {
return 'danger';
} elseif ($this->status === Deployment::DEPLOYING) {
return 'warning';
}
return 'info';
}