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

Machine

<%= link_to 'Back to Machines', machines_path %>    |    <%= link_to 'Edit', edit_machine_path(@machine) %>    |    <%= link_to "Add Affinity", new_machine_machine_affinity_slot_path(@machine) %>

<% @machine.attributes.each do |key, value| -%> <% end -%> <% end %>
Attribute Value
<%= naf_make_header(key) %> <%= value %>
<%= link_to "Machine Affinity Slots", machine_machine_affinity_slots_path(@machine) %> <%= ::Logical::Naf::Machine.new(@machine).affinities %>
Mark machine down <%= link_to image_tag('terminate.png', class: 'action', title: "Mark machine(id: #{@machine.id}, server:#{@machine.server_name.blank? ? @machine.server_address : @machine.server_name}) down"), "#", { class: "terminate" } %>

<%= render partial: 'naf/log_viewer/log_layout', locals: { record_id: @machine.id, record_type: 'machine' } %>
<% end %> <%= render partial: 'naf/shared/application' %> <%= render partial: 'naf/shared/auto_resize_width', locals: { div_class: '.scrollable-output' } %> <%= render partial: 'naf/log_viewer/log_display', locals: { logs_url: "#{http_protocol}#{::Logical::Naf::Machine.new(@machine).runner}#{naf.logs_log_parsers_path}", record_id: @machine.id, record_type: 'machine' } %> <% content_for :javascripts do %> <% end %>