protected function formatTop5($data, $css)
{
$html = '<p>' . $css->title . "</p>\n";
$html .= <<<HTML
<table class="table table-striped">
\t\t\t\t\t<thead>
\t\t\t\t\t\t<tr>
HTML;
foreach ($css->titles as $columnHeader) {
$html .= "<th>{$columnHeader}</th>\n";
}
$html .= <<<HTML
\t\t\t\t\t\t</tr>
\t\t\t\t\t</thead>
\t\t\t\t\t<tbody>
HTML;
foreach ($data as $value) {
// @note This is the same getId() than in Section::getId()
$severity = $this->makeLink($value['name']);
$html .= <<<HTML
<tr>
\t\t\t\t\t\t<td>{$severity}</td>
\t\t\t\t\t\t<td>{$value['count']}</td>
\t\t\t\t\t\t<td><span class="label label-info arrowed-right arrowed-in">{$value['severity']}</span></td>
</tr>
HTML;
}
$html .= <<<HTML
\t\t\t\t\t</tbody>
\t\t\t\t</table>
HTML;
return $html;
}