Sha256: 1bd72f4f11e2ff260b508f38066c6ec01848250f41eb19cd4b75fc07279084b3
Contents?: true
Size: 875 Bytes
Versions: 2
Compression:
Stored size: 875 Bytes
Contents
<% output = { :sEcho => params[:sEcho], :iTotalRecords => @newsletters.total_entries || 0, :iTotalDisplayRecords => @newsletters.size, :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('', [forgeos_cms, :admin, newsletter], :remote => true, :method => :delete, :confirm => t('menu.destroy.confirm').capitalize, :success => "removedataTablesRow('#destroy_#{link_id}')", :class => 'small-icons destroy-link', :id => "destroy_#{link_id}" ) ] end } -%> <%= raw output.to_json %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
forgeos_cms-1.9.4 | app/views/admin/newsletters/index.json.erb |
forgeos_cms-1.9.2 | app/views/admin/newsletters/index.json.erb |