id)) throw new Exception("Impossible d'accéder à un rapport vierge"); $state = IssueReport::states($issuereport->state); $osIcon = $browserIcon = 'fas fa-question-circle'; if(strlen($issuereport->os)>=3 && substr(strtolower($issuereport->os),0,3) == 'win') $osIcon = 'fab fa-windows text-primary'; if(strlen($issuereport->os)>=5 && substr(strtolower($issuereport->os),0,5) == 'linux') $osIcon = 'fab fa-linux text-danger'; if(strlen($issuereport->os)>=3 && substr(strtolower($issuereport->os),0,3) == 'mac') $osIcon = 'fab fa-apple text-secondary'; switch($issuereport->browser){ case 'firefox': $browserIcon = 'fab fa-firefox text-warning'; break; case 'ie': $browserIcon = 'fab fa-internet-explorer text-danger'; break; case 'edge': $browserIcon = 'fab fa-edge text-primary'; break; case 'chrome': $browserIcon = 'fab fa-chrome text-success'; break; } $issueTags = array(); foreach(IssueReportTag::loadAll(array('report'=>$issuereport->id)) as $tag): $issueTags[] = $tag->tag; endforeach; ?>
{{createdRelative}}