Sha256: d9500c3a0697e99bb5acef182fb0db360bd790a5a360102bdf0cdda7c80c4cb0

Contents?: true

Size: 851 Bytes

Versions: 55

Compression:

Stored size: 851 Bytes

Contents

%h2= Cmor::Cms::NavigationItem.model_name.human(count: :other)

= collection_table(collection: resource.navigation_items, table_html: "table #{resource_class.name.underscore.pluralize.gsub('/', '-')} table-xs") do |table|
  = table.awesome_nested_set_actions scope: ->(navigation_item) { navigation_item.root.navigation.to_param }
  = table.column :name do |navigation_item|
    - capture_haml do
      %span{ class: "indent indent-chars-#{navigation_item.depth * 3}"}= navigation_item.name
  = table.column :url
  = table.column :cmor_cms_page do |navigation_item|
    - link_to navigation_item.page.title, page_path(navigation_item.page) if navigation_item.page.present?
  = table.timestamps
  = render partial: 'administrador/resources_controller/base/index_table_actions', locals: { table: table, available_rest_actions: [:show, :edit, :destroy] }

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
cmor_cms_backend-0.0.60.pre app/views/cmor/cms/backend/navigations/_after_show_table.html.haml
cmor_cms_backend-0.0.59.pre app/views/cmor/cms/backend/navigations/_after_show_table.html.haml
cmor_cms_backend-0.0.58.pre app/views/cmor/cms/backend/navigations/_after_show_table.html.haml
cmor_cms_backend-0.0.57.pre app/views/cmor/cms/backend/navigations/_after_show_table.html.haml
cmor_cms_backend-0.0.56.pre app/views/cmor/cms/backend/navigations/_after_show_table.html.haml
cmor_cms_backend-0.0.55.pre app/views/cmor/cms/backend/navigations/_after_show_table.html.haml
cmor_cms_backend-0.0.54.pre app/views/cmor/cms/backend/navigations/_after_show_table.html.haml
cmor_cms_backend-0.0.53.pre app/views/cmor/cms/backend/navigations/_after_show_table.html.haml
cmor_cms_backend-0.0.52.pre app/views/cmor/cms/backend/navigations/_after_show_table.html.haml
cmor_cms_backend-0.0.51.pre app/views/cmor/cms/backend/navigations/_after_show_table.html.haml
cmor_cms_backend-0.0.50.pre app/views/cmor/cms/backend/navigations/_after_show_table.html.haml
cmor_cms_backend-0.0.49.pre app/views/cmor/cms/backend/navigations/_after_show_table.html.haml
cmor_cms_backend-0.0.48.pre app/views/cmor/cms/backend/navigations/_after_show_table.html.haml
cmor_cms_backend-0.0.45.pre app/views/cmor/cms/backend/navigations/_after_show_table.html.haml
cmor_cms_backend-0.0.44.pre app/views/cmor/cms/backend/navigations/_after_show_table.html.haml
cmor_cms_backend-0.0.43.pre app/views/cmor/cms/backend/navigations/_after_show_table.html.haml
cmor_cms_backend-0.0.42.pre app/views/cmor/cms/backend/navigations/_after_show_table.html.haml
cmor_cms_backend-0.0.41.pre app/views/cmor/cms/backend/navigations/_after_show_table.html.haml
cmor_cms_backend-0.0.40.pre app/views/cmor/cms/backend/navigations/_after_show_table.html.haml
cmor_cms_backend-0.0.39.pre app/views/cmor/cms/backend/navigations/_after_show_table.html.haml