<commit_before>= render :partial => "layouts/flash_msg"
#main_div
  - type = @tenant.tenant? ? "Tenant" : "Project"
  %h3
    = _("%{type} Information") % {:type => type}
  .form-horizontal
    .form-group
      %label.control-label.col-md-2
        = _("Name")
      .col-md-8
        = h(@tenant.name)
    .form-group
      %label.control-label.col-md-2
        = _("Description")
      .col-md-8
        = h(@tenant.description)
    - parent = @tenant.parent
    - if parent
      .form-group
        %label.control-label.col-md-2
          = _("Parent")
        .col-md-8.pointer{:onclick => "miqDynatreeActivateNode('rbac_tree', 'tn-#{to_cid(parent.id)}');",
          :title   => _("View Parent Tenant")}
          = h(parent.name)
    .form-group
      %label.control-label.col-md-2
        = _("Groups in this %{type}") % {:type => type}
      .col-md-8
        %table{:cellpadding => "0", :cellspacing => "0"}
          - @tenant.miq_groups.sort_by { |group| group.name.downcase }.each do |g|
            - if role_allows(:feature => "rbac_group_show")
              - params = {:class   => "pointer",
                          :onclick => "miqDynatreeActivateNode('rbac_tree', 'g-#{to_cid(g.id)}');",
                          :title   => _("View this Group")}
            - else
              - params = {}
            %tr{params}
              %td
                %span.product.product-group
                = h(g.name)
  - all_subtenants = @tenant.all_subtenants
  - unless all_subtenants.blank?
    %h3= _("Child Tenants")
    %table.table.table-striped.table-bordered.table-hover
      %thead
        %th.narrow
        %th= _("Name")
        %tbody
          - all_subtenants.each do |tenant|
            %tr{:onclick => "miqDynatreeActivateNode('rbac_tree', 'tn-#{to_cid(tenant.id)}');",
              :title => _("Click to view child Tenant")}
              %td.narrow
                %ul.icons.list-unstyled
                  %li
                    %span.product.product-tenant
              %td= tenant.name
  - all_subprojects = @tenant.all_subprojects
  - unless all_subprojects.blank?
    %h3= _("Projects")
    %table.table.table-striped.table-bordered.table-hover
      %thead
        %th.narrow
        %th= _("Name")
        %tbody
          - all_subprojects.each do |tenant|
            %tr{:onclick => "miqDynatreeActivateNode('rbac_tree', 'tn-#{to_cid(tenant.id)}');",
              :title => _("Click to view child TenantProject")}
              %td.narrow
                %ul.icons.list-unstyled
                  %li
                    %span.product.product-project
              %td= tenant.name
  .row
    .col-md-12.col-lg-6
      = render :partial => "shared/summary/textual_listview", :locals => {:title => _("Tenant Quota"), :items => textual_group_tenant_quota_allocations}
      %hr/
  = render :partial => "rbac_tag_box"<commit_msg>Increased width for the quota usage table (transferred from ManageIQ/manageiq@5a008254cb61696221b5e27ed0a669f447110b47)<commit_after>= render :partial => "layouts/flash_msg"
#main_div
  - type = @tenant.tenant? ? "Tenant" : "Project"
  %h3
    = _("%{type} Information") % {:type => type}
  .form-horizontal
    .form-group
      %label.control-label.col-md-2
        = _("Name")
      .col-md-8
        = h(@tenant.name)
    .form-group
      %label.control-label.col-md-2
        = _("Description")
      .col-md-8
        = h(@tenant.description)
    - parent = @tenant.parent
    - if parent
      .form-group
        %label.control-label.col-md-2
          = _("Parent")
        .col-md-8.pointer{:onclick => "miqDynatreeActivateNode('rbac_tree', 'tn-#{to_cid(parent.id)}');",
          :title   => _("View Parent Tenant")}
          = h(parent.name)
    .form-group
      %label.control-label.col-md-2
        = _("Groups in this %{type}") % {:type => type}
      .col-md-8
        %table{:cellpadding => "0", :cellspacing => "0"}
          - @tenant.miq_groups.sort_by { |group| group.name.downcase }.each do |g|
            - if role_allows(:feature => "rbac_group_show")
              - params = {:class   => "pointer",
                          :onclick => "miqDynatreeActivateNode('rbac_tree', 'g-#{to_cid(g.id)}');",
                          :title   => _("View this Group")}
            - else
              - params = {}
            %tr{params}
              %td
                %span.product.product-group
                = h(g.name)
  - all_subtenants = @tenant.all_subtenants
  - unless all_subtenants.blank?
    %h3= _("Child Tenants")
    %table.table.table-striped.table-bordered.table-hover
      %thead
        %th.narrow
        %th= _("Name")
        %tbody
          - all_subtenants.each do |tenant|
            %tr{:onclick => "miqDynatreeActivateNode('rbac_tree', 'tn-#{to_cid(tenant.id)}');",
              :title => _("Click to view child Tenant")}
              %td.narrow
                %ul.icons.list-unstyled
                  %li
                    %span.product.product-tenant
              %td= tenant.name
  - all_subprojects = @tenant.all_subprojects
  - unless all_subprojects.blank?
    %h3= _("Projects")
    %table.table.table-striped.table-bordered.table-hover
      %thead
        %th.narrow
        %th= _("Name")
        %tbody
          - all_subprojects.each do |tenant|
            %tr{:onclick => "miqDynatreeActivateNode('rbac_tree', 'tn-#{to_cid(tenant.id)}');",
              :title => _("Click to view child TenantProject")}
              %td.narrow
                %ul.icons.list-unstyled
                  %li
                    %span.product.product-project
              %td= tenant.name
  .row
    .col-md-12.col-lg-10
      = render :partial => "shared/summary/textual_listview", :locals => {:title => _("Tenant Quota"), :items => textual_group_tenant_quota_allocations}
      %hr/
  = render :partial => "rbac_tag_box"
{'fraction_non_alphanumeric': 0.1549223681965535, 'fraction_numerical': 0.010749018938747653, 'mean_word_length': 1.8525547445255475, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 43, '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': '905', 'n_tokens_mistral': 2007, 'n_tokens_neox': 1993, 'n_words': 316}