Sha256: 1d42f70ba1c4c908e5e9373e3c2894915df91117f241f18a3ad7a86a1ec3618f
Contents?: true
Size: 1.52 KB
Versions: 2
Compression:
Stored size: 1.52 KB
Contents
<% output = { :sEcho => params[:sEcho], :iTotalRecords => @actualities.total_entries || 0, :iTotalDisplayRecords => @actualities.size, :aaData => @actualities.collect do |actuality| link_id = "actuality_#{actuality.id}" picture = actuality.picture.public_filename(:thumb) if actuality.picture klass = actuality.active? ? 'see-on' : 'see-off' author = actuality.administrator.lastname if actuality.administrator [ content_tag(:div, tag(:div, :class=>'handler') + image_tag(picture || 'forgeos/admin/no-image.png'), :id => link_id, :class => 'handler_container'), content_tag(:div, actuality.date), content_tag(:div, link_to(actuality.title, [forgeos_cms, :admin, actuality]), :class => 'actuality-name'), content_tag(:div, author || 'not found'), link_to('', [forgeos_cms, :activate, :admin, actuality], :remote => true, :complete => "toggleActivate('#show_#{link_id}')", :class => "small-icons #{klass}", :id => "show_#{link_id}" ), link_to('', [forgeos_cms, :edit, :admin, actuality], :class => 'small-icons edit-link') + link_to('', [forgeos_cms, :admin, actuality], :remote => true, :method => :delete, :confirm => t('actuality.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/actualities/index.json.erb |
forgeos_cms-1.9.2 | app/views/admin/actualities/index.json.erb |