<commit_before>= render_region :top

%h1 Sites

%table.index.tablesaw
  %thead
    %tr
      - render_region :thead do |thead|
        - thead.title_header do
          %th.site Name
        - thead.domain_header do
          %th.domain Domain match
        - thead.basedomain_header do
          %th.basedomain Base domain
        - thead.modify_header do
          %th.remove Delete
        - thead.order_header do
          %th.order Order
    %tbody
    - @sites.each do |site|
      %tr.node.level-1
        - render_region :tbody do |tbody|
          - tbody.title_cell do
            %td.site
              = link_to site.name, edit_admin_site_path(site)
          - tbody.domain_cell do
            %td.domain
              = h(site.domain)
          - tbody.basedomain_cell do
            %td.basedomain
              = h(site.base_domain)
          - tbody.modify_cell do
            %td.remove
              = link_to image('remove.png', :alt => 'Remove'), admin_site_path(site), :method => :delete, :onclick => "return confirm('Are you sure you want to permanently remove #{site.name}?')"
          - tbody.order_cell do
            %td.order
              = order_links(site).html_safe

- render_region :bottom do |bottom|
  - bottom.new_button do
    .page-actions
      = link_to new_admin_site_path, class: 'action_button' do
        %i.fas.fa-plus-circle
        New Site<commit_msg>BugzID: 6097 - Replace remove image with icon<commit_after>= render_region :top

%h1 Sites

%table.index.tablesaw
  %thead
    %tr
      - render_region :thead do |thead|
        - thead.title_header do
          %th.site Name
        - thead.domain_header do
          %th.domain Domain match
        - thead.basedomain_header do
          %th.basedomain Base domain
        - thead.modify_header do
          %th.remove Delete
        - thead.order_header do
          %th.order Order
    %tbody
    - @sites.each do |site|
      %tr.node.level-1
        - render_region :tbody do |tbody|
          - tbody.title_cell do
            %td.site
              = link_to site.name, edit_admin_site_path(site)
          - tbody.domain_cell do
            %td.domain
              = h(site.domain)
          - tbody.basedomain_cell do
            %td.basedomain
              = h(site.base_domain)
          - tbody.modify_cell do
            %td.remove
              = link_to admin_site_path(site), :method => :delete, :onclick => "return confirm('Are you sure you want to permanently remove #{site.name}?')" do
                %i.fas.fa-minus-circle
                =t('remove')
          - tbody.order_cell do
            %td.order
              = order_links(site).html_safe

- render_region :bottom do |bottom|
  - bottom.new_button do
    .page-actions
      = link_to new_admin_site_path, class: 'action_button' do
        %i.fas.fa-plus-circle
        New Site
{'fraction_non_alphanumeric': 0.09706703910614525, 'fraction_numerical': 0.002793296089385475, 'mean_word_length': 1.700282752120641, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '3691022', 'n_tokens_mistral': 909, 'n_tokens_neox': 890, 'n_words': 199}