Sha256: 9db2785a7fb3e43665afcbf7f026b9d55365c7222ad7b5d7fe04d98e37c53a36

Contents?: true

Size: 1.51 KB

Versions: 11

Compression:

Stored size: 1.51 KB

Contents

.page-header
  .row
    .col-md-7
      %h1
        Pages
        %small
          <i class="ace-icon fa fa-angle-double-right"></i>
          manage pages
    .col-md-5
      =link_to 'New page', new_page_path(:parent_id=>@parent_id), :class=>'btn btn-sm btn-primary'
      =link_to 'New folder', newfolder_pages_path(:parent_id=>@parent_id, :is_folder=>1), :class=>'btn btn-sm btn-default'


.filter
  = inline_filter_form_for(@filter)


- if @parent
  =link_to 'HOME', pages_path(:parent_id=>0)
  #{"/"}
  =link_to @parent.title, pages_path(:parent_id=>@parent.id)

%table.table.table-striped.table-bordered
  %tr
    %th= link_to_sortable_column :title, 'Title'
    %th= link_to_sortable_column :name, 'Name'
    %th URL
    %th Template
    %th Commands

  - @items.each do |item|
    %tr
      %td
        - if item.is_folder
          =link_to pages_path(:parent_id=>item.id) do
            <i class="fa fa-folder-o"></i>
            =item.title
        - else
          =link_to item.title, edit_page_path(item)
      %td
        =item.name
      %td
        =item.url
      %td
        - if item.template
          =link_to edit_template_path(item.template) do
            =item.template.title
          %br
          =item.template.basepath
        - elsif !item.is_folder
          N/A
        - else
          &nbsp;

      %td
        =link_to 'Edit', (item.is_folder? ? editfolder_page_path(item) : edit_page_path(item))
        =link_to 'Delete', page_path(item), :method => :delete, data: { confirm: 'Are you sure?' }

=paginate @items

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
optimacms-0.1.61 app/views/optimacms/admin/pages/index.html.haml
optimacms-0.2.8 app/views/optimacms/admin/pages/index.html.haml
optimacms-0.2.7 app/views/optimacms/admin/pages/index.html.haml
optimacms-0.2.6 app/views/optimacms/admin/pages/index.html.haml
optimacms-0.2.5 app/views/optimacms/admin/pages/index.html.haml
optimacms-0.1.60 app/views/optimacms/admin/pages/index.html.haml
optimacms-0.2.2 app/views/optimacms/admin/pages/index.html.haml
optimacms-0.2.1 app/views/optimacms/admin/pages/index.html.haml
optimacms-0.1.55 app/views/optimacms/admin/pages/index.html.haml
optimacms-0.1.53 app/views/optimacms/admin/pages/index.html.haml
optimacms-0.1.52 app/views/optimacms/admin/pages/index.html.haml