Sha256: a5c868538f044bbb4890fa7e77c57c9fc48fe94595d0629b977d6281cb3a8424

Contents?: true

Size: 1.37 KB

Versions: 17

Compression:

Stored size: 1.37 KB

Contents

- title t('.title', type: @content_type.name.capitalize)

- content_for :actions do
  = render 'locomotive/shared/actions/contents'

- content_for :buttons do
  - if can?(:manage, Locomotive::ContentType)
    = local_action_button :edit, edit_content_type_path(@content_type), icon: 'icon-pencil'

  = local_action_button :export, export_content_entries_path(@content_type.slug, :csv), icon: 'icon-download'

  = local_action_button :new, new_content_entry_path(@content_type.slug), icon: 'icon-plus'

- if @content_type.description.present?
  %p= @content_type.description

- if @content_type.groupable?
  - @content_entries.each do |group|
    .box
      %h3= group[:name] || t('.category_noname')
      .inner
        = render 'list', content_type: @content_type, entries: group[:entries]
- else
  = render 'list', content_type: @content_type, entries: @content_entries

- # Note: submenu has to be here in order to have the previous entries correctly rendered since we do not return
- #       all the attributes of the content types in the following code (causing stale documents)
- content_for :submenu do
  = render 'locomotive/shared/menu/contents'

- if can?(:manage, Locomotive::ContentType)
  #local-actions-bottom-bar
    %p.tleft
      = link_to t('.destroy'), content_type_path(@content_type), data: { confirm: t('locomotive.messages.confirm') }, method: :delete, class: 'button remove'

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
locomotive_cms-2.5.6 app/views/locomotive/content_entries/index.html.haml
locomotive_cms-2.5.6.rc2 app/views/locomotive/content_entries/index.html.haml
locomotive_cms-2.5.6.rc1 app/views/locomotive/content_entries/index.html.haml
locomotive_cms-2.5.5 app/views/locomotive/content_entries/index.html.haml
locomotive_cms-2.5.4 app/views/locomotive/content_entries/index.html.haml
locomotive_cms-2.5.3 app/views/locomotive/content_entries/index.html.haml
locomotive_cms-2.5.2 app/views/locomotive/content_entries/index.html.haml
locomotive_cms-2.5.1 app/views/locomotive/content_entries/index.html.haml
locomotive_cms-2.5.0 app/views/locomotive/content_entries/index.html.haml
locomotive_cms-2.5.0.rc3 app/views/locomotive/content_entries/index.html.haml
locomotive_cms-2.5.0.rc2 app/views/locomotive/content_entries/index.html.haml
locomotive_cms-2.5.0.rc1 app/views/locomotive/content_entries/index.html.haml
locomotive_cms-2.4.1 app/views/locomotive/content_entries/index.html.haml
locomotive_cms-2.4.0 app/views/locomotive/content_entries/index.html.haml
locomotive_cms-2.3.1 app/views/locomotive/content_entries/index.html.haml
locomotive_cms-2.3.0 app/views/locomotive/content_entries/index.html.haml
locomotive_cms-2.2.3 app/views/locomotive/content_entries/index.html.haml