engine/app/views/locomotive/pages/index.html.haml

23 lines
498 B
Plaintext

- title t('.title')
- content_for :head do
= include_javascripts :pages
- content_for :submenu do
= render 'admin/shared/menu/contents'
- content_for :actions do
= render 'admin/shared/actions/contents'
- if can? :create, Page
- content_for :buttons do
= admin_button_tag :new, new_locomotive_page_url, :class => 'new', :id => 'newpage'
%p!= t('.help')
- if @pages.empty?
%p.no-items!= t('.no_items', :url => new_locomotive_page_url)
- else
%ul#pages-list
= render @pages