<% issue = local_assigns[:issue] || @issue %>
<% close_guard_service = RedmineUxToolkit::Services::IssueCloseGuards %>
<% if close_guard_service.subtask_closing_blocked_hint?(issue) %>
  <p class="ux-toolkit-close-guard-hint ux-toolkit-subtask-close-hint">
    <%= l(:text_ux_toolkit_issue_close_blocked_by_open_subtasks_hint,
          count: close_guard_service.open_subtask_count_for(issue)) %>
  </p>
<% end %>
