Sha256: 978ac25db2ea985d87fb7c389403dd3e0bfd2e1dbb9aa5ba2eef7c008bd3fc05

Contents?: true

Size: 624 Bytes

Versions: 14

Compression:

Stored size: 624 Bytes

Contents

- list = Locomotive::ContentTypeService.new(current_site).list

- unless list.empty?
  = link_to '#collapseContentTypes', data: { toggle: 'collapse' }, aria: { expanded: 'false', controls: 'collapseContentTypes' }, class: sidebar_link_class(:content_types) do
    i.fa.fa-list
    span= t('.title')
    i.fa.fa-caret-down

  ul.sidebar-list.collapse#collapseContentTypes
    - list.each do |content_type|
      - if policy(content_type).show?
        li
          = link_to content_entries_path(current_site, content_type.slug) do
            = content_type.name

          span.badge= content_type.number_of_entries || '?'

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
locomotivecms-3.3.0 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.3.0.rc3 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.3.0.rc2 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.1.2 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.2.1 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.3.0.rc1 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.2.0 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.2.0.rc2 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.2.0.rc1 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.1.1 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.1.0 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.1.0.rc3 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.1.0.rc2 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.1.0.rc1 app/views/locomotive/shared/sidebar/_content_types.html.slim