Sha256: b572895627c05684a051c1f2f0fab39b73e86d73de434c3367591a85b1b7f874

Contents?: true

Size: 1.62 KB

Versions: 6

Compression:

Stored size: 1.62 KB

Contents

.page-header
  .row
    .col-md-7
      %h1
        Pages
        %small
          <i class="ace-icon fa fa-angle-double-right"></i>
          edit pages content and URLs
    .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
  = form_tag(search_pages_url(:action=>'index'), method: "post", :class=>'form-inline', :name=>'formFilter', :id=>'formFilter') do
    = hidden_field_tag 'cmd', 'apply'

    = render :partial=>'tableview/filter_fields', :locals => {:filter=>@filter}

    = render :partial=>'tableview/buttons_apply_clear', :locals => {:filter=>@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 'Title', pages_path(:cmd=>'order', :orderby=>'title', :orderdir=>@filter.get_opposite_order_dir_for_column('title'))
    %th Name
    %th URL
    %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.is_folder?
          =link_to 'Edit', editfolder_page_path(item)
        - else
          =link_to 'Edit', edit_page_path(item)

=paginate @items

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
optimacms-0.1.15 app/views/optimacms/admin/pages/index.html.haml
optimacms-0.1.14 app/views/optimacms/admin/pages/index.html.haml
optimacms-0.1.5 app/views/optimacms/admin/pages/index.html.haml
optimacms-0.1.3 app/views/optimacms/admin/pages/index.html.haml
optimacms-0.1.2 app/views/optimacms/admin/pages/index.html.haml
optimacms-0.1.1 app/views/optimacms/admin/pages/index.html.haml