Sha256: 7e9aec18aecd3ea0f8779dfc8ed9f36a81f05b7b9c7bd8829ccf182587539654

Contents?: true

Size: 1.95 KB

Versions: 8

Compression:

Stored size: 1.95 KB

Contents

- content_for(:permanent_notice) do
  - unless current_account.robots_allowed?
    .permanent-notice.permanent-notice-info
      = icon('search')
      %p
        =t 'spina.pages.invisible_to_search_engines'
        %small=t 'spina.pages.invisible_to_search_engines_description'

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

    .sliding-dropdown#create_page_dropdown
      .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[1].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[1].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-primary' do
            = icon('pencil-outline')
            = t('spina.pages.create_page', template: template[1])

  = link_to '#pages_list', class: 'button sort-switch', data: {change_order: t('spina.pages.change_order'), done_changing_order: t('spina.pages.done_changing_order')} do
    = icon('random')
    = t('spina.pages.change_order')

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
spina-0.9.0 app/views/spina/admin/pages/index.html.haml
spina-0.8.3 app/views/spina/admin/pages/index.html.haml
spina-0.8.2 app/views/spina/admin/pages/index.html.haml
spina-0.8.1 app/views/spina/admin/pages/index.html.haml
spina-0.8.0 app/views/spina/admin/pages/index.html.haml
spina-0.7.3 app/views/spina/admin/pages/index.html.haml
spina-0.7.2 app/views/spina/admin/pages/index.html.haml
spina-0.7.0 app/views/spina/admin/pages/index.html.haml