Sha256: 9e4af32c9c29aacd3f332fda985c9ae7ae58bab9ba9753365382eb2358503824

Contents?: true

Size: 1.23 KB

Versions: 13

Compression:

Stored size: 1.23 KB

Contents

<%
  rows = @applications.each do |application|
    app = Naf::Application.find(application.first)
    schedules = application[4]
    application[4] = ''
    schedules.each do |schedule|
      logical_schedule = ::Logical::Naf::ApplicationSchedule.new(schedule)
      if application[4].present?
				application[4] << (link_to logical_schedule.display,
                                   application_schedule_path(schedule.id),
                                   title: logical_schedule.help_title)
      else
				application[4] = (link_to logical_schedule.display,
                                  application_schedule_path(schedule.id),
                                  title: logical_schedule.help_title)
      end
      application[4] << ", ".html_safe
    end
    application[4] = application[4][0..-3]
    application.insert(5, naf_last_queued_at_link(app))
    application.insert(6,(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 %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
naf-2.1.13 app/views/naf/applications/index.json.erb
naf-2.1.12 app/views/naf/applications/index.json.erb
naf-2.1.11 app/views/naf/applications/index.json.erb
naf-2.1.10 app/views/naf/applications/index.json.erb
naf-2.1.9 app/views/naf/applications/index.json.erb
naf-2.1.8 app/views/naf/applications/index.json.erb
naf-2.1.6 app/views/naf/applications/index.json.erb
naf-2.1.5 app/views/naf/applications/index.json.erb
naf-2.1.4 app/views/naf/applications/index.json.erb
naf-2.1.3 app/views/naf/applications/index.json.erb
naf-2.1.2 app/views/naf/applications/index.json.erb
naf-2.1.1 app/views/naf/applications/index.json.erb
naf-2.1.0 app/views/naf/applications/index.json.erb