<% content_for :body do %>
<% unless notice.blank? %> <% end %>
<% content_for :javascripts do %> <% end %>

Application

<%= link_to 'Back to Applications', applications_path %>    |    <%= link_to 'Edit', edit_application_path(@application) %>    |    <%= link_to "Add Schedule", controller: 'application_schedules', action: 'new', application_id: @application.id %>

Attribute Value
ID <%= @application.id %>
Created At <%= @application.created_at %>
Updated At <%= @application.updated_at %>
Deleted <%= @application.deleted %>
Application Type <%= @application.application_type.script_type_name %>
Command <%= @application.command %>
Title <%= @application.title %>
Short Name <%= @application.short_name %>
Log Level <%= @application.log_level %>
Script Type Name <%= @logical_application.script_type_name %>
Application Schedules <% output = '' %> <% @logical_application.application_schedules.each do |schedule| logical_schedule = ::Logical::Naf::ApplicationSchedule.new(schedule) output << (link_to logical_schedule.display, naf.application_schedule_path(schedule.id)) output << ', ' end output = output[0..-3] %> <%= output.html_safe %>
Add Script to Jobs Queue <%= link_to image_tag('control_play_blue.png', class: 'action', title: "Enqueue Application(\nid: #{@application.id},\n" + "title: #{@application.title},\ncommand: #{@application.command})"), "#", { class: "enqueue", id: @application.id } %>

Last Queued Job

<% @application.historical_jobs.order('created_at desc').limit(10).each do |job| -%> <% job = ::Logical::Naf::Job.new(job) %> <% end -%>
ID Last Queued At Command Status
<%= link_to job.id, historical_job_path(job) %> <%= "#{time_ago_in_words(job.created_at, true)} ago" %> <%= job.command %><%= job.status %>

<% end %> <%= render partial: 'naf/shared/application' %>