<commit_before>#ns_details_div
  - unless @in_a_form
    = render :partial => 'layouts/info_msg', :locals => {:message => @version_message} if @version_message
    %table#ns_details_grid.table.table-striped.table-bordered.table-hover.table-clickable.table-checkable
      %thead
        %th.table-view-pf-select
          %input.checkall{:type => 'checkbox', :title => _('Check All')}
        %th
        %th
      %tbody{'data-click-url' => '/miq_ae_class/tree_select/'}
        - @records.each do |record|
          - next if record.name == '$'
          - cls_cid = "#{class_prefix(record.class)}-#{record.id}"
          %tr{'data-click-id' => cls_cid}
            %td.table-view-pf-select.noclick
              %input{:type => 'checkbox', :value => cls_cid}
            %td.table-view-pf-select
              %i{:class => record.decorate.fonticon}
            %td
              = record_name(record)
    :javascript
      $(function () {
        $('#ns_details_grid').miqGrid();
      });
<commit_msg>Don't render table header for empty automate domain and namespace<commit_after>#ns_details_div
  - unless @in_a_form
    = render :partial => 'layouts/info_msg', :locals => {:message => @version_message} if @version_message
    - if @records.length.zero?
      - info_message = @record.class.to_s == 'MiqAeDomain' ? _("The selected domain is empty") : _("The selected Namespace is empty")
      = render :partial => 'layouts/info_msg', :locals => {:message => info_message}
    - else
      %table#ns_details_grid.table.table-striped.table-bordered.table-hover.table-clickable.table-checkable
        %thead
          %th.table-view-pf-select
            %input.checkall{:type => 'checkbox', :title => _('Check All')}
          %th
          %th
        %tbody{'data-click-url' => '/miq_ae_class/tree_select/'}
          - @records.each do |record|
            - next if record.name == '$'
            - cls_cid = "#{class_prefix(record.class)}-#{record.id}"
            %tr{'data-click-id' => cls_cid}
              %td.table-view-pf-select.noclick
                %input{:type => 'checkbox', :value => cls_cid}
              %td.table-view-pf-select
                %i{:class => record.decorate.fonticon}
              %td
                = record_name(record)
      :javascript
        $(function () {
          $('#ns_details_grid').miqGrid();
        });

{'fraction_non_alphanumeric': 0.15813953488372093, 'fraction_numerical': 0.0, 'mean_word_length': 2.2366621067031462, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 26, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7381541', 'n_tokens_mistral': 756, 'n_tokens_neox': 764, 'n_words': 123}