Sha256: 556d669bb7cb1d6ff108bf0d71aa46854a3100a24a3b07ba6a32fbf1b935bb74

Contents?: true

Size: 714 Bytes

Versions: 11

Compression:

Stored size: 714 Bytes

Contents

- if @page
  - @page_title = @page.breadcrumb.reverse.map(&:title).join(" - ")
  = documentation_breadcrumb_for @page
- else
  - @page_title = t('.reorder_root_pages_title')
  = documentation_breadcrumb_for nil

%section.page
  %h1= @page ? @page.title : t('.reorder_root_pages_title')

  = form_tag page_positioning_path(@page.try(:full_permalink)), :class => 'reordering' do 
    %ul
      - for child in @pages
        %li
          = child.title
          = hidden_field_tag 'order[]', child.id
  
  %p.adminButtons
    - if @page
      = link_to t('.back_to_page'), page_path(@page.full_permalink), :class => 'button edit'
    - else
      = link_to t('.back_to_homepage'), root_path, :class => 'button edit'

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
documentation-1.0.9 app/views/documentation/pages/positioning.html.haml
documentation-1.0.8 app/views/documentation/pages/positioning.html.haml
documentation-1.0.7 app/views/documentation/pages/positioning.html.haml
documentation-1.0.6 app/views/documentation/pages/positioning.html.haml
local_documentation-1.0.0 app/views/documentation/pages/positioning.html.haml
documentation-1.0.5 app/views/documentation/pages/positioning.html.haml
documentation-1.0.4 app/views/documentation/pages/positioning.html.haml
documentation-1.0.3 app/views/documentation/pages/positioning.html.haml
documentation-1.0.2 app/views/documentation/pages/positioning.html.haml
documentation-1.0.1 app/views/documentation/pages/positioning.html.haml
documentation-1.0.0 app/views/documentation/pages/positioning.html.haml