Sha256: 7215497d38592c56d6e39d51ffcdf8bbb8ee0c4474b2b70e9c89453aab623180

Contents?: true

Size: 1.89 KB

Versions: 1

Compression:

Stored size: 1.89 KB

Contents

doctype html
html
  head
    title
      | Admin
    meta[name="viewport" content="width=device-width,initial-scale=1"]
    = csrf_meta_tags
    = csp_meta_tag
    = stylesheet_link_tag 'cm_admin/cm_admin', media: 'all', 'data-turbolinks-track': 'reload'
    = stylesheet_pack_tag 'cm_admin/application', 'data-turbolinks-track': 'reload'
    link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" /
    = javascript_pack_tag 'cm_admin/application', 'data-turbolinks-track': 'reload'
    script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js" 
    script src="https://raw.githack.com/SortableJS/Sortable/master/Sortable.js"
  body
    - flash.each do |type, msg|
      .alert class="alert-#{type}"
        = msg
    .cm-admin
      = render 'layouts/left_sidebar_nav'
      .panel-area
        - if defined?(@action) && (@action&.layout_type.to_s == 'cm_association_show' || @action.parent == "show")
          .show-page.page-container
            .show-page__tabs.sticky-container
              .cm-tabs-bar
                == render 'cm_admin/main/top_navbar'
                == render 'cm_admin/main/tabs'
            .show-page__inner.scrollable
              = yield
        - elsif defined?(@action) && (@action&.layout_type.to_s == 'cm_association_index' || @action.parent == "index")
          .show-page.page-container
            .show-page__tabs.sticky-container
              .cm-tabs-bar
                == render 'cm_admin/main/top_navbar'
                == render 'cm_admin/main/tabs'
                - if @associated_model && @associated_model.filters.present?
                  .index-page__filters
                    == render partial: 'cm_admin/main/filters', locals: { filters: @associated_model.filters }
            = yield
        - else
          = yield
    = render 'layouts/flash_message'
    = render 'layouts/custom_action_modals'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cm-admin-0.5.0 app/views/layouts/cm_admin.html.slim