<% rows = @applications.each do |application| app = Naf::Application.find(application.first) application.insert(10, naf_last_queued_at_link(app)) application.insert(13,(link_to image_tag('control_play_blue.png', class: 'action', title: "Enqueue Application(\nid: #{app.id},\ntitle: #{app.title},\ncommand: #{app.command})"), "#", { class: "enqueue", id: application[0] })) end %> <%= raw rows %>