Sha256: bb8cfe2f0c1e5c89c03894b2e52f3079021cb5c7e97ced0e1e3eb0ecfbe02cc8

Contents?: true

Size: 1.42 KB

Versions: 2

Compression:

Stored size: 1.42 KB

Contents

.page-header
  = link_to t('.new_link'), new_comfy_admin_cms_site_snippet_path(@site), :class => 'btn btn-default pull-right'
  = link_to 'Create SEO Snippet', new_comfy_admin_cms_site_seo_snippet_path(@site), :class => 'btn btn-default pull-right'
  %h2= t('.title')

- content_for :right_column do
  = render 'comfy/admin/cms/sites/mirrors'

= render 'comfy/admin/cms/partials/snippets_before'

= render :partial => 'comfy/admin/cms/categories/index', :object => 'Comfy::Cms::Snippet'

%table.table.table-hover.table-bordered
  %tbody.sortable
    - @snippets.each do |snippet|
      %tr{:id => dom_id(snippet)}
        %td
          .icon
            - if !params[:category].present? && @site.snippets.count > 1
              .dragger
                %span ⇅
        %td.main
          .item-title
            = link_to snippet.label, edit_comfy_admin_cms_site_snippet_path(@site, snippet)
            = render :partial => 'comfy/admin/cms/categories/categories', :object => snippet
          .item-meta
            = snippet.identifier
        %td
          .btn-group.btn-group-sm
            = link_to t('.edit'), edit_comfy_admin_cms_site_snippet_path(@site, snippet), :class => 'btn btn-default'
            = link_to t('.delete'), comfy_admin_cms_site_snippet_path(@site, snippet), :method => :delete, :data => {:confirm => t('.are_you_sure')}, :class => 'btn btn-danger'
            
= render 'comfy/admin/cms/partials/snippets_after'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
comfortable_mexican_loveseat-0.1.1 app/views/comfy/admin/cms/snippets/index.html.haml
comfortable_mexican_loveseat-0.1.0 app/views/comfy/admin/cms/snippets/index.html.haml