Sha256: b00009a1bc398310b6038ad1c4fa56ae25d61b1872d0fd2db37a07f40e801bed

Contents?: true

Size: 824 Bytes

Versions: 1

Compression:

Stored size: 824 Bytes

Contents

<%
  output = {
    :iTotalDisplayRecords => @newsletters.total_entries || 0,
    :aaData => @newsletters.collect do |newsletter|
      link_id = newsletter.id
      [
        content_tag(:div, link_to(newsletter.email, [forgeos_cms, :edit, :admin, newsletter])),
        content_tag(:div, newsletter.created_at.to_s),
        link_to('', [forgeos_cms, :edit, :admin, newsletter], :class => 'small-icons edit-link') +
        link_to('', :url => [forgeos_cms, :admin, newsletter],
          :remote => true,
          :method => :delete,
          :confirm => t('menu.destroy.confirm').capitalize,
          :success => "removedataTablesRow('#destroy_#{link_id}')",
          :html => {
          :class => 'small-icons destroy-link', :id => "destroy_#{link_id}"
        })
      ]
    end
  }
-%>
<%= raw output.to_json %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
forgeos_cms-1.9.0 app/views/admin/newsletters/index.json.erb