Sha256: 9fc089acf4b8450f86707be47e155d09083dd1c4d6b8b1c57d22f76ed848859a

Contents?: true

Size: 724 Bytes

Versions: 22

Compression:

Stored size: 724 Bytes

Contents

= table.awesome_nested_set_actions :parent, scope: ->(navigation_item) { navigation_item.root.navigation.to_param }
= table.association(:navigation, sort: { column_name: 'cmor_cms_navigations.name'}, link_to: ->(navigation_item) { navigation_path(navigation_item.navigation) }, label_method: :human)
= table.column(:name, sort: true) do |navigation_item|
  - capture_haml do
    %span{ class: "indent indent-chars-#{navigation_item.depth * 3}"}= navigation_item.name
= table.column :url, sort: true
= table.column(:page, sort: { column_name: 'cmor_cms_pages.title' }) do |navigation_item|
  - link_to navigation_item.page.title, page_path(navigation_item.page) if navigation_item.page.present?
= table.timestamps(sort: true)

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
cmor_cms_backend-0.0.41.pre app/views/cmor/cms/backend/navigation_items/_index_table.html.haml
cmor_cms_backend-0.0.40.pre app/views/cmor/cms/backend/navigation_items/_index_table.html.haml
cmor_cms_backend-0.0.39.pre app/views/cmor/cms/backend/navigation_items/_index_table.html.haml
cmor_cms_backend-0.0.38.pre app/views/cmor/cms/backend/navigation_items/_index_table.html.haml
cmor_cms_backend-0.0.37.pre app/views/cmor/cms/backend/navigation_items/_index_table.html.haml
cmor_cms_backend-0.0.36.pre app/views/cmor/cms/backend/navigation_items/_index_table.html.haml
cmor_cms_backend-0.0.35.pre app/views/cmor/cms/backend/navigation_items/_index_table.html.haml
cmor_cms_backend-0.0.34.pre app/views/cmor/cms/backend/navigation_items/_index_table.html.haml
cmor_cms_backend-0.0.33.pre app/views/cmor/cms/backend/navigation_items/_index_table.html.haml
cmor_cms_backend-0.0.32.pre app/views/cmor/cms/backend/navigation_items/_index_table.html.haml
cmor_cms_backend-0.0.31.pre app/views/cmor/cms/backend/navigation_items/_index_table.html.haml
cmor_cms_backend-0.0.30.pre app/views/cmor/cms/backend/navigation_items/_index_table.html.haml
cmor_cms_backend-0.0.29.pre app/views/cmor/cms/backend/navigation_items/_index_table.html.haml
cmor_cms_backend-0.0.28.pre app/views/cmor/cms/backend/navigation_items/_index_table.html.haml
cmor_cms_backend-0.0.27.pre app/views/cmor/cms/backend/navigation_items/_index_table.html.haml
cmor_cms_backend-0.0.26.pre app/views/cmor/cms/backend/navigation_items/_index_table.html.haml
cmor_cms_backend-0.0.25.pre app/views/cmor/cms/backend/navigation_items/_index_table.html.haml
cmor_cms_backend-0.0.24.pre app/views/cmor/cms/backend/navigation_items/_index_table.html.haml
cmor_cms_backend-0.0.22.pre app/views/cmor/cms/backend/navigation_items/_index_table.html.haml
cmor_cms_backend-0.0.21.pre app/views/cmor/cms/backend/navigation_items/_index_table.html.haml