<commit_before>-# showing list of CIs
- if @sb[:obj_list]
  = render :partial => "layouts/flash_msg"
  %table.table.table-bordered.table-hover.table-striped
    %thead
      %th
        = _('Object Types')
    %tbody
      -# CI node level
      - @sb[:obj_list].sort.each do |obj|
        %tr{:title => _("Click to view details"), :onclick => "miqTreeActivateNode('ab_tree', 'xx-#{obj[1].split('_').first}_#{@sb[:target_classes][obj[0]]}')"}
          %td
            = obj[0]

- elsif @sb[:button_groups]
  - if @sb[:button_groups].blank?
    %hr
    = render :partial => 'layouts/info_msg', :locals => {:message => _("No Items found.")}
  - else
    = render :partial => "layouts/flash_msg"
    %table.table.table-bordered.table-hover.table-striped
      %thead
        %th.table-view-pf-select
        %th
          = _('Text')
        - if x_active_tree == :sandt_tree
          %th
            = _('Type')
        %th
          = _('Hover Text')
      %tbody
        - @sb[:button_groups].each do |obj|
          - if obj.kind_of?(String)
            %tr{:title => _("Click to view details"), :onclick => "miqTreeActivateNode('ab_tree', '-ub-#{@nodetype[1]}')"}
              %td.table-view-pf-select
                %i{:class => "pficon pficon-folder-close"}
              %td
                = obj
              %td
                = obj
          - else
            - tree_box = x_active_tree == :sandt_tree ? 'sandt_tree' : 'ab_tree'
            - tree_id = x_node
            - if obj[:typ] == "CustomButton"
              - typ = "cb"
              - img = obj[:button_image]
              - rec_type = "Button"
            - else
              - typ = "cbg"
              - img = obj[:button_image]
              - rec_type = "Group"
            %tr{:title => _("Click to view details"), :onclick => "miqTreeActivateNode('#{tree_box}', '#{tree_id}_#{typ}-#{to_cid(obj[:id])}')"}
              %td.table-view-pf-select
                %i{:class => "miq-custom-button-#{img}"}
              %td
                = obj[:name].split("|").first
              - if x_active_tree == :sandt_tree
                %td
                  = rec_type
              %td
                = obj[:description]
- elsif @sb[:buttons]
  -# button node
  = render :partial => "layouts/flash_msg"
  - if @record && @record.kind_of?(CustomButtonSet)
    -# don't need basic info box for Unassigned button group
    %h3
      = _('Basic Information')
    .form-horizontal.static
      .form-group
        %label.control-label.col-md-2
          = _('Button Text')
        .col-md-8
          = @record.name.split('|').first
          - display = @record.set_data.key?(:display) ? @record.set_data[:display] : true
          &nbsp;
          .checkbox-inline
            %label{:style => "font-weight: normal"}
              = check_box_tag(display, true, display, :disabled => true)
              = _('Display on Button')



      .form-group
        %label.control-label.col-md-2
          = _('Button Hover Text')
        .col-md-8
          = @record.description
      .form-group
        %label.control-label.col-md-2
          = _('Image')
        .col-md-8
          %span{:class => "miq-custom-button-#{@record.set_data[:button_image]}"}
  - if @sb[:buttons].blank?
    %hr<commit_msg>Alter Button Group hover text<commit_after>-# showing list of CIs
- if @sb[:obj_list]
  = render :partial => "layouts/flash_msg"
  %table.table.table-bordered.table-hover.table-striped
    %thead
      %th
        = _('Object Types')
    %tbody
      -# CI node level
      - @sb[:obj_list].sort.each do |obj|
        %tr{:title => _("Click to view details"), :onclick => "miqTreeActivateNode('ab_tree', 'xx-#{obj[1].split('_').first}_#{@sb[:target_classes][obj[0]]}')"}
          %td
            = obj[0]

- elsif @sb[:button_groups]
  - if @sb[:button_groups].blank?
    %hr
    = render :partial => 'layouts/info_msg', :locals => {:message => _("No Items found.")}
  - else
    = render :partial => "layouts/flash_msg"
    %table.table.table-bordered.table-hover.table-striped
      %thead
        %th.table-view-pf-select
        %th
          = _('Text')
        - if x_active_tree == :sandt_tree
          %th
            = _('Type')
        %th
          = _('Hover Text')
      %tbody
        - @sb[:button_groups].each do |obj|
          - if obj.kind_of?(String)
            %tr{:title => _("Click to view details"), :onclick => "miqTreeActivateNode('ab_tree', '-ub-#{@nodetype[1]}')"}
              %td.table-view-pf-select
                %i{:class => "pficon pficon-folder-close"}
              %td
                = obj
              %td
                = obj
          - else
            - tree_box = x_active_tree == :sandt_tree ? 'sandt_tree' : 'ab_tree'
            - tree_id = x_node
            - if obj[:typ] == "CustomButton"
              - typ = "cb"
              - img = obj[:button_image]
              - rec_type = "Button"
            - else
              - typ = "cbg"
              - img = obj[:button_image]
              - rec_type = "Group"
            %tr{:title => _("Click to view details"), :onclick => "miqTreeActivateNode('#{tree_box}', '#{tree_id}_#{typ}-#{to_cid(obj[:id])}')"}
              %td.table-view-pf-select
                %i{:class => "miq-custom-button-#{img}"}
              %td
                = obj[:name].split("|").first
              - if x_active_tree == :sandt_tree
                %td
                  = rec_type
              %td
                = obj[:description]
- elsif @sb[:buttons]
  -# button node
  = render :partial => "layouts/flash_msg"
  - if @record && @record.kind_of?(CustomButtonSet)
    -# don't need basic info box for Unassigned button group
    %h3
      = _('Basic Information')
    .form-horizontal.static
      .form-group
        %label.control-label.col-md-2
          = _('Button Group Text')
        .col-md-8
          = @record.name.split('|').first
          - display = @record.set_data.key?(:display) ? @record.set_data[:display] : true
          &nbsp;
          .checkbox-inline
            %label{:style => "font-weight: normal"}
              = check_box_tag(display, true, display, :disabled => true)
              = _('Display on Button')

      .form-group
        %label.control-label.col-md-2
          = _('Button Hover Group Text')
        .col-md-8
          = @record.description
      .form-group
        %label.control-label.col-md-2
          = _('Image')
        .col-md-8
          %span{:class => "miq-custom-button-#{@record.set_data[:button_image]}"}
  - if @sb[:buttons].blank?
    %hr
{'fraction_non_alphanumeric': 0.16256457003950167, 'fraction_numerical': 0.003342449103615922, 'mean_word_length': 1.7034907597535933, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 37, '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': '7476294', 'n_tokens_mistral': 2170, 'n_tokens_neox': 2149, 'n_words': 385}