<commit_before>- if @record.try(:evm_display_name)
  #accordion.panel-group
    = miq_accordion_panel(truncate(@record.evm_display_name, :length => truncate_length), true, "icon") do
      = render :partial => "layouts/quadicon", :locals => {:mode => :icon, :item => @record, :size => 72, :typ => :listnav}

    = miq_accordion_panel(_("Properties"), false, "cim_cs_prop") do
      %ul.nav.nav-pills.nav-stacked
        %li
          = link_to(_('Summary'),
            {:action => 'show', :id => @record, :display => 'main'},
            :title => _("Show Summary"))

    = miq_accordion_panel(_("Relationships"), false, "cim_cs_rel") do
      %ul.nav.nav-pills.nav-stacked
        - if role_allows(:feature => "ontap_storage_volume_show_list")
          = li_link_if_nonzero(:count => @record.storage_volumes_size,
            :record_id                => @record.id,
            :tables                   => 'ontap_storage_volume',
            :display                  => 'ontap_storage_volume',
            :action                   => 'show',
            :title                    => _("Show all %s") % ui_lookup(:tables => "ontap_storage_volume"))

        - if role_allows(:feature => "ontap_file_share_show_list")
          = li_link_if_nonzero(:count => @record.hosted_file_shares_size,
            :record_id                => @record.id,
            :tables                   => 'ontap_file_share',
            :display                  => 'ontap_file_share',
            :action                   => 'show',
            :title                    => _("Show all %s") % ui_lookup(:tables => "ontap_file_share"))

        - if role_allows(:feature => "snia_local_file_system_show_list")
          = li_link_if_nonzero(:count => @record.local_file_systems_size,
            :record_id                => @record.id,
            :tables                   => 'snia_local_file_system',
            :display                  => 'snia_local_file_systems',
            :action                   => 'show',
            :title                    => _("Show all %s") % ui_lookup(:tables => "snia_local_file_system"))

        - if role_allows(:feature => "ontap_logical_disk_show_list")
          = li_link_if_nonzero(:count => @record.logical_disks_size,
            :record_id                => @record.id,
            :tables                   => 'ontap_logical_disk',
            :display                  => 'ontap_logical_disks',
            :action                   => 'show',
            :title                    => _("Show all %s") % ui_lookup(:tables => "ontap_logical_disk"))

        - if role_allows(:feature => "cim_base_storage_extent_show_list")
          = li_link_if_nonzero(:count => @record.base_storage_extents_size,
            :record_id                => @record.id,
            :tables                   => 'cim_base_storage_extent',
            :display                  => 'cim_base_storage_extents',
            :action                   => 'show',
            :title                    => _("Show all %s") % ui_lookup(:tables => "cim_base_storage_extent"))

    = miq_accordion_panel(_("Infrastructure Relationships"), false, "cim_cs_inf_rel") do
      %ul.nav.nav-pills.nav-stacked
        - if role_allows(:feature => "vm_show_list")
          = li_link_if_nonzero(:count => @record.vms_size,
            :record_id                => @record.id,
            :tables                   => 'vm',
            :display                  => 'vms',
            :action                   => 'show',
            :title                    => _("Show all %s") % ui_lookup(:tables => "vm"))

        - if role_allows(:feature => "host_show_list")
          = li_link_if_nonzero(:count => @record.hosts_size,
            :record_id                => @record.id,
            :tables                   => 'host',
            :display                  => 'hosts',
            :action                   => 'show',
            :title                    => _("Show all %s") % ui_lookup(:tables => "host"))

        - if role_allows(:feature => "storage_show_list")
          = li_link_if_nonzero(:count => @record.storages_size,
            :record_id                => @record.id,
            :tables                   => 'storage',
            :display                  => 'storages',
            :action                   => 'show',
            :title                    => _("Show all %s") % ui_lookup(:tables => "storage"))<commit_msg>Update li_link method call in Storage/Filers listnav<commit_after>- if @record.try(:evm_display_name)
  #accordion.panel-group
    = miq_accordion_panel(truncate(@record.evm_display_name, :length => truncate_length), true, "icon") do
      = render :partial => "layouts/quadicon", :locals => {:mode => :icon, :item => @record, :size => 72, :typ => :listnav}

    = miq_accordion_panel(_("Properties"), false, "cim_cs_prop") do
      %ul.nav.nav-pills.nav-stacked
        %li
          = link_to(_('Summary'),
            {:action => 'show', :id => @record, :display => 'main'},
            :title => _("Show Summary"))

    = miq_accordion_panel(_("Relationships"), false, "cim_cs_rel") do
      %ul.nav.nav-pills.nav-stacked
        - if role_allows(:feature => "ontap_storage_volume_show_list")
          = li_link(:count => @record.storage_volumes_size,
            :record_id     => @record.id,
            :tables        => 'ontap_storage_volume',
            :display       => 'ontap_storage_volume')

        - if role_allows(:feature => "ontap_file_share_show_list")
          = li_link(:count => @record.hosted_file_shares_size,
            :record_id     => @record.id,
            :tables        => 'ontap_file_share',
            :display       => 'ontap_file_share')

        - if role_allows(:feature => "snia_local_file_system_show_list")
          = li_link(:count => @record.local_file_systems_size,
            :record_id     => @record.id,
            :tables        => 'snia_local_file_system',
            :display       => 'snia_local_file_systems')

        - if role_allows(:feature => "ontap_logical_disk_show_list")
          = li_link(:count => @record.logical_disks_size,
            :record_id     => @record.id,
            :tables        => 'ontap_logical_disk',
            :display       => 'ontap_logical_disks')

        - if role_allows(:feature => "cim_base_storage_extent_show_list")
          = li_link(:count => @record.base_storage_extents_size,
            :record_id     => @record.id,
            :tables        => 'cim_base_storage_extent',
            :display       => 'cim_base_storage_extents')

    = miq_accordion_panel(_("Infrastructure Relationships"), false, "cim_cs_inf_rel") do
      %ul.nav.nav-pills.nav-stacked
        - if role_allows(:feature => "vm_show_list")
          = li_link(:count => @record.vms_size,
            :record_id     => @record.id,
            :tables        => 'vm',
            :display       => 'vms')

        - if role_allows(:feature => "host_show_list")
          = li_link(:count => @record.hosts_size,
            :record_id     => @record.id,
            :tables        => 'host',
            :display       => 'hosts')

        - if role_allows(:feature => "storage_show_list")
          = li_link(:count => @record.storages_size,
            :record_id     => @record.id,
            :tables        => 'storage',
            :display       => 'storages')
{'fraction_non_alphanumeric': 0.13745100689282336, 'fraction_numerical': 0.0005406135964319503, 'mean_word_length': 1.7550260610573343, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 129, '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': '6813133', 'n_tokens_mistral': 2280, 'n_tokens_neox': 2173, 'n_words': 343}