<table class="availability_details [% param.breakdown +%] [%+ param.breakdown %][% available.keys.size %]">
  <tr>
    [% FOREACH key = available.keys %]
    <th>
      [% IF param.breakdown == 'months' %]
        [% get_month_name(key.1, monthNames) %]
      [% ELSIF param.breakdown == 'weeks' %]
        [% get_week_name(key.1, weekAbbr) %]
      [% ELSIF param.breakdown == 'days' %]
        [% get_day_name(key.1, monthNames) %]
      [% ELSE %]
        [% key.1 %]
      [% END %]
    </th>
    [% END %]
  </tr>
  <tr>
    [% FOREACH val = available.values %]
    [% value = round_decimals(val.1, param.decimals) %]
    <td class="[% IF value < param.sla %]sla_nok[% END %]">[% IF val.1 == -1 %]&nbsp;[% ELSE %][% value %]%[% END %]</td>
    [% END %]
  </tr>
</table>
