Switch Configuration <%= link_to new_switch_configuration_path, class: "btn btn-info" do %> Configure Switches <% end -%>

<% (@switch_configurations || []).each do |switch_config| %> <%end%>
Model Ports configured / Available Switches / Networks Action
<%= switch_config.hardware_part.name %> <%= switch_config.configured_switch_ports.count %> / <%= switch_config.hardware_part.port_count %> <% switch_config.config_mappings.each do |list|%> <% unless list.resourceable.blank?%> <%name,path,title = show_tags(list,:switch_configurations) %> <%= link_to name, path ,:class=>"label label-primary",:title => title%>   <% end %> <% end %> <% if can? :manage, SwitchConfiguration %> <%= link_to 'Edit', edit_switch_configuration_path(switch_config), :class => "label label-info" %> <%= link_to 'Destroy', switch_configuration_path(switch_config), :method => :delete, :class=>"label label-danger", :confirm => "Are you sure you want to delete?" %> <% end %>