<details class="box ux-toolkit-dashboard-block ux-toolkit-dashboard-issues" data-dashboard-block="<%= block %>" open>
  <%= render 'block_header', block: block, title_key: title_key %>
  <div class="ux-toolkit-dashboard-block-body">
    <% if issues.any? %>
      <table class="list issues">
        <tbody>
          <% issues.each do |issue| %>
            <tr>
              <td class="subject" data-label="<%= l(:field_subject) %>"><%= ux_toolkit_issue_link_with_badges(issue) %></td>
              <td class="project" data-label="<%= l(:field_project) %>"><%= link_to_project(issue.project) %></td>
              <td class="status" data-label="<%= l(:field_status) %>"><%= h(issue.status) %></td>
              <td class="due-date" data-label="<%= l(:field_due_date) %>"><%= ux_toolkit_issue_due_date(issue) %></td>
            </tr>
          <% end %>
        </tbody>
      </table>
    <% else %>
      <p class="nodata"><%= l(empty_key) %></p>
    <% end %>
    <%= render 'block_footer', block: block %>
  </div>
</details>
