Sha256: c473aa3d64c40e545c07bd9739e66eff0693d934aaa89eb521f39f707d89eb95

Contents?: true

Size: 1.14 KB

Versions: 5

Compression:

Stored size: 1.14 KB

Contents

- content_for(:header_actions) do
  
  = link_to spina.edit_admin_resource_path(@resource), class: 'button button-default' do
    .button-content
      = icon('pencil')
      = t('spina.resources.edit')

  = link_to spina.new_admin_page_path(params: {resource_id: @resource.id, view_template: @resource.view_template.presence || 'show'}), class: 'button button-primary icon-only', style: 'margin-right: 0' do
    = icon('plus')
    = t('spina.pages.new')

.well
  .dd#pages_list
    %ol.dd-list
      - @resource.pages.roots.each do |page|
        %li.dd-item{data: {controller: "page-collapse", url: spina.children_admin_page_path(page)}}
          .dd-item-inner
            - if page.children.any?
              = button_tag class: 'collapse-link', data: {action: "page-collapse#expand", target: 'page-collapse.expandLink'} do
                = icon('plus')

              = button_tag class: 'collapse-link', style: 'display: none', data: {action: "page-collapse#collapse", target: 'page-collapse.collapseLink'} do
                = icon('min')

            = render partial: 'spina/admin/pages/page', object: page

          %div{data: {target: 'page-collapse.list'}}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spina-2.0.2 app/views/spina/admin/resources/show.html.haml
spina-2.0.1 app/views/spina/admin/resources/show.html.haml
spina-2.0.0 app/views/spina/admin/resources/show.html.haml
spina-2.0.0.beta app/views/spina/admin/resources/show.html.haml
spina-2.0.0.alpha app/views/spina/admin/resources/show.html.haml