Sha256: 691790be5524f33a146087d618e39590d1bcadc3949031f224824d12e6fff42e

Contents?: true

Size: 415 Bytes

Versions: 10

Compression:

Stored size: 415 Bytes

Contents

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

- unless list.empty?
  section.content-types
    h1= t('.title')

    ul
      - list.each do |content_type|
        - if policy(content_type).show?
          li
            = link_to content_entries_path(current_site, content_type.slug) do
              span.text= content_type.name

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


Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
locomotivecms-3.0.1 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.0.0 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.0.0.rc7 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.0.0.rc6 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.0.0.rc5 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.0.0.rc4 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.0.0.rc3 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.0.0.rc2 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.0.0.rc1 app/views/locomotive/shared/sidebar/_content_types.html.slim
locomotivecms-3.0.0.pre.beta.1 app/views/locomotive/shared/sidebar/_content_types.html.slim