Sha256: a6831752b12ab83f822c489c742a7836ae1ac52b7119198411b806b351854386

Contents?: true

Size: 958 Bytes

Versions: 13

Compression:

Stored size: 958 Bytes

Contents

- content_for :page_title do
  =t :structure

- content_for :actions do
  - if @template_exists
    .span4.clearfix.text-right
      = link_to pages.new_page_path, class: 'btn btn-large btn-link' do
        %i.icon-plus
        =t :new_page

%section.b-tree.span12
  %ul
    - cache @pages_cache do
      - @pages.each do |page|
        %li{class: "level#{page.level}"}
          - if page.published?
            = link_to page.name, page.full_url, class: 'btn btn-link'
          - else
            %button.btn.disabled= page.name

          .b-tree__buttons
            = arrow_buttons_for(page)

            = link_to edit_page_path(page), class: 'btn btn-primary btn-mini' do
              %i.icon-pencil
              =t :edit
              = page.template.to_accusative

            = link_to page, method: :delete, class: 'btn btn-danger btn-mini pull-right', data: {confirm: t(:are_you_sure?)} do
              %i.icon-remove
              =t :delete

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
constructor-pages-0.8.19 app/views/constructor_pages/pages/index.haml
constructor-pages-0.8.18 app/views/constructor_pages/pages/index.haml
constructor-pages-0.8.17 app/views/constructor_pages/pages/index.haml
constructor-pages-0.8.16 app/views/constructor_pages/pages/index.haml
constructor-pages-0.8.15 app/views/constructor_pages/pages/index.haml
constructor-pages-0.8.14 app/views/constructor_pages/pages/index.haml
constructor-pages-0.8.13 app/views/constructor_pages/pages/index.haml
constructor-pages-0.8.12 app/views/constructor_pages/pages/index.haml
constructor-pages-0.8.11 app/views/constructor_pages/pages/index.haml
constructor-pages-0.8.10 app/views/constructor_pages/pages/index.haml
constructor-pages-0.8.8 app/views/constructor_pages/pages/index.haml
constructor-pages-0.8.7 app/views/constructor_pages/pages/index.haml
constructor-pages-0.8.6 app/views/constructor_pages/pages/index.haml