<% issue = local_assigns[:issue] || @issue %>
<% if issue&.visible?(User.current) %>
  <% sla_hints = RedmineUxToolkit::Services::SlaLight.hints_for(issue) %>
  <% if sla_hints.any? %>
    <div class="box ux-toolkit-sla-light-box">
      <strong><%= l(:label_ux_toolkit_sla_light_issue_response) %></strong>
      <ul>
        <% sla_hints.each do |hint| %>
          <li class="ux-toolkit-sla-light-<%= hint[:type] %>">
            <% if hint[:at] %>
              <%= l(:"label_ux_toolkit_sla_light_#{hint[:type]}") %>:
              <%= format_time(hint[:at]) %>
            <% else %>
              <%= l(:"label_ux_toolkit_sla_light_#{hint[:type]}") %>
            <% end %>
          </li>
        <% end %>
      </ul>
    </div>
  <% end %>
<% end %>
