<% content_for :body do %> <%= render partial: 'naf/shared/information_container', locals: { record_name: naf_table_title } %>

<% unless notice.blank? %> <% end %>
<% @affinities.each do |affinity| -%> <% end -%>
Id Affinity Classification Name Affinity Name Affinity Short Name Affinity Note
<%= link_to affinity.id, affinity_path(affinity) %> <%= affinity.affinity_classification.affinity_classification_name %> <% if affinity.affinity_classification.affinity_classification_name == 'machine' -%> <% affinity_name = ::Naf::Machine.find_by_id(affinity.affinity_name) %> <%= link_to affinity.affinity_name, machine_path(affinity_name) if affinity_name %> <% else -%> <%= affinity.affinity_name %> <% end -%> <%= affinity.affinity_short_name %> <%= affinity.affinity_note %>
<% content_for :javascripts do %> <% end %>
<% end %> <%= render partial: 'naf/shared/application' %>