Sha256: c68cb74c1068ac7cc5b35d759cdbefe9f320ab6267d05e09fc9a203592b6ecb9

Contents?: true

Size: 1.34 KB

Versions: 1

Compression:

Stored size: 1.34 KB

Contents

= 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trusty-cms-4.1.0 app/views/admin/sites/index.haml