Sha256: 3f29a5665017e1e1046c868ecbb0c1bc9fa24983c40532743168a5a0ff6ed2b3

Contents?: true

Size: 1.37 KB

Versions: 2

Compression:

Stored size: 1.37 KB

Contents

- content_for :right_column do
  = render "comfy/admin/cms/categories/index", type: "Comfy::Cms::Snippet"

.page-header
  = link_to t('.new_link'), new_comfy_admin_cms_site_snippet_path(@site), class: "btn btn-secondary float-right"
  %h2= t('.title')

= comfy_admin_partial "comfy/admin/cms/partials/snippets_before"

%ul.list.sortable
  - @snippets.each do |snippet|
    %li{id: dom_id(snippet)}
      .row
        .col-md-6.item
          .item-controls.d-none.d-lg-block
            - if !params[:categories].present? && @site.snippets.count > 1
              .dragger
                = fa_icon("bars")
          .item-content
            .item-title
              = link_to snippet.label, edit_comfy_admin_cms_site_snippet_path(@site, snippet)
            .item-meta
              = snippet.identifier

        .col-md-2.item-categories.d-flex.align-items-center
          = render "comfy/admin/cms/categories/categories", object: snippet

        .col-md-4.d-flex.align-items-center.justify-content-md-end
          .btn-group.btn-group-sm
            = link_to t('.edit'), edit_comfy_admin_cms_site_snippet_path(@site, snippet), class: 'btn btn-outline-secondary'
            = link_to t('.delete'), comfy_admin_cms_site_snippet_path(@site, snippet), method: :delete, data: {confirm: t('.are_you_sure')}, class: 'btn btn-danger'

= comfy_admin_partial "comfy/admin/cms/partials/snippets_after"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-2.0.5 app/views/comfy/admin/cms/snippets/index.html.haml
comfortable_mexican_sofa-2.0.4 app/views/comfy/admin/cms/snippets/index.html.haml