Sha256: 480f841ea8ed16b6db771463205b51e2e771608a0655324fe49a2084cbdb3e2d

Contents?: true

Size: 1.38 KB

Versions: 14

Compression:

Stored size: 1.38 KB

Contents

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

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

= occams_admin_partial "occams/admin/cms/partials/snippets_before"

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

        .col-md-2.item-categories.d-flex.align-items-center
          = render "occams/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_occams_admin_cms_site_snippet_path(@site, snippet), class: 'btn btn-outline-secondary'
            = link_to t('.delete'), occams_admin_cms_site_snippet_path(@site, snippet), method: :delete, data: {confirm: t('.are_you_sure')}, class: 'btn btn-danger'

= occams_admin_partial "occams/admin/cms/partials/snippets_after"

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
occams-1.1.0 app/views/occams/admin/cms/snippets/index.html.haml
occams-1.0.8 app/views/occams/admin/cms/snippets/index.html.haml
occams-1.0.7.3 app/views/occams/admin/cms/snippets/index.html.haml
occams-1.0.7.2 app/views/occams/admin/cms/snippets/index.html.haml
occams-1.0.7.1 app/views/occams/admin/cms/snippets/index.html.haml
occams-1.0.7 app/views/occams/admin/cms/snippets/index.html.haml
occams-1.0.6.1 app/views/occams/admin/cms/snippets/index.html.haml
occams-1.0.6 app/views/occams/admin/cms/snippets/index.html.haml
occams-1.0.5 app/views/occams/admin/cms/snippets/index.html.haml
occams-1.0.4 app/views/occams/admin/cms/snippets/index.html.haml
occams-1.0.3 app/views/occams/admin/cms/snippets/index.html.haml
occams-1.0.2 app/views/occams/admin/cms/snippets/index.html.haml
occams-1.0.1 app/views/occams/admin/cms/snippets/index.html.haml
occams-1.0.0 app/views/occams/admin/cms/snippets/index.html.haml