Sha256: 2bd820caef26f628f9857688c092bf8185695e987babcea0a1af0b297a47a41e

Contents?: true

Size: 1.23 KB

Versions: 7

Compression:

Stored size: 1.23 KB

Contents

.page-header
  = link_to t('.new_link'), new_admin_cms_site_snippet_path(@site), :class => 'btn pull-right'
  %h2= t('.title')

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

= render 'admin/cms/partials/snippets_before'

= render :partial => 'admin/cms/categories/index', :object => '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_admin_cms_site_snippet_path(@site, snippet)
            = render :partial => 'admin/cms/categories/categories', :object => snippet
          .item-meta
            = snippet.identifier
        %td
          .btn-group
            = link_to t('.edit'), edit_admin_cms_site_snippet_path(@site, snippet), :class => 'btn btn-small'
            = link_to t('.delete'), admin_cms_site_snippet_path(@site, snippet), :method => :delete, :data => {:confirm => t('.are_you_sure')}, :class => 'btn btn-small btn-danger'
            
= render 'admin/cms/partials/snippets_after'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.11.2 app/views/admin/cms/snippets/index.html.haml
comfortable_mexican_sofa-1.11.1 app/views/admin/cms/snippets/index.html.haml
comfortable_mexican_sofa-1.11.0 app/views/admin/cms/snippets/index.html.haml
comfortable_mexican_sofa-1.10.3 app/views/admin/cms/snippets/index.html.haml
comfortable_mexican_sofa-1.10.2 app/views/admin/cms/snippets/index.html.haml
comfortable_mexican_sofa-1.10.1 app/views/admin/cms/snippets/index.html.haml
comfortable_mexican_sofa-1.10.0 app/views/admin/cms/snippets/index.html.haml