Sha256: 4321e56ed49ec2c7b053b942e925c7d537b4099c29e800bc461012c5d0fba616
Contents?: true
Size: 1.45 KB
Versions: 2
Compression:
Stored size: 1.45 KB
Contents
<% output = { :sEcho => params[:sEcho], :iTotalRecords => @medias.total_entries || 0, :iTotalDisplayRecords => @medias.size, :aaData => @medias.collect do |media| link_id = "attachment_#{media.id}" media_array = [] if params[:skin] == 'thumbnail' media_array << render(:partial => 'table_thumbnail.html.haml', :locals => { :media => media }) else media_array << content_tag((params[:mode] == 'selection' ? :span : :div), content_tag(:div, '', :class=>"handler") + content_tag(:div, '', :class=>"small-icons #{@file_type}"), :id => link_id, :class => "handler_container") << content_tag(:div, params[:mode] == 'selection' ? media.filename : link_to(media.name, [forgeos_core, :edit, :admin, media], :class => "truncate", :title => media.filename), :class => 'media-name') << media.file_type.upcase << media.updated_at.to_s(:short) << "#{media.size/1024} #{I18n.t('media.byte.kilo')}" << "N/A" << link_to('', [forgeos_core, :edit, :admin, media], :class => 'small-icons edit-link') + link_to('', [forgeos_core, :admin, media], :remote => true, :method => :delete, :confirm => I18n.t('media.destroy.confirm').capitalize, :class => 'small-icons destroy-link', :id => "destroy_#{link_id}" ) end media_array << media.public_filename << media.id << media.filename end } -%> <%= raw output.to_json -%>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
forgeos_core-1.9.4 | app/views/admin/attachments/index.json.erb |
forgeos_core-1.9.3 | app/views/admin/attachments/index.json.erb |