Sha256: 0aa7055f665d2f1c62719baa0d3804a5d71bac06c4c9809e61ef217eac2e0da8
Contents?: true
Size: 1.45 KB
Versions: 19
Compression:
Stored size: 1.45 KB
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 = render_tree @roots do |page| - if page.published? = link_to page.name, page.full_url, class: 'btn btn-link' - else %button.btn.disabled= page.name .b-tree__buttons = render partial: 'constructor_pages/partials/arrow_buttons', locals: {item: page} = link_to edit_page_path(page), class: 'btn btn-primary btn-mini' do %i.icon-pencil =t :edit = page.template.name.downcase - unless page.template.nil? - if page.template.child_id.nil? - if !page.template.leaf? = link_to new_child_page_path(page), class: 'btn btn-success btn-mini' do %i.icon-chevron-down =t :add = page.template.descendants.first.name.downcase - else = link_to new_child_page_path(page), class: 'btn btn-success btn-mini' do %i.icon-chevron-down =t :add = ConstructorPages::Template.find(page.template.child_id).name.downcase = link_to page_path(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
19 entries across 19 versions & 3 rubygems