Sha256: 175f104ce87e0bcb09d520577f14ae606eeed66a1e602d53e18f4bbda6c8187b

Contents?: true

Size: 1.53 KB

Versions: 5

Compression:

Stored size: 1.53 KB

Contents

- content_for(:header_actions) do
  %span{data: {dropdown: true}}
    = link_to spina.new_admin_page_path(params: {view_template: 'show'}), class: 'button button-primary', style: 'margin-right: 0', data: {trigger: ('dropdown' if current_theme.new_page_templates.size > 1), target: '#create_page_dropdown'} do
      .button-content
        = icon('plus')
        = t('spina.pages.new')

    .sliding-dropdown#create_page_dropdown.align-right
      .slide-controls
        %a.previous.muted.icon-only{href: '#'}
          = icon('chevron-left')

        - current_theme.new_page_templates.each_with_index do |template, index|
          .slide-title{class: ('active' if index == 0), data: {target: "#slide-#{template[0].parameterize}"}}= template[1]

        %a.next.icon-only{href: '#'}
          = icon('chevron-right')

      - current_theme.new_page_templates.each_with_index do |template, index|
        .slide{class: ('active' if index == 0), id: "slide-#{template[0].parameterize}"}
          %p= template[2]

          %p.muted= template[3]

          .slide-dots
            - current_theme.new_page_templates.each_with_index do |template2, index2|
              .slide-dot{class: ('active' if index2 == index)}

          = link_to spina.new_admin_page_path(params: {view_template: template[0]}), class: 'button button-default' do
            = icon('pencil-outline')
            = t('spina.pages.new')

.well
  .dd#pages_list{data: {:"sort-url" => spina.sort_admin_pages_url }}
    %ol.dd-list
      = render partial: 'page_nested_list', collection: @pages

Version data entries

5 entries across 5 versions & 1 rubygems

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