.server_templates h2 Server Templates = link_to "New Template", new_server_template_path, class: "btn btn--primary" - if @server_templates.any? table thead tr th Name th Overlays th Actions tbody - @server_templates.each do |template| tr td = link_to template.name, template td = template.overlays.count td = link_to "Edit", edit_server_template_path(template), class: "btn btn--small" = link_to "Spawn", new_server_path(server_template_id: template.id), class: "btn btn--small btn--success" = link_to "Delete", server_template_path(template), method: :delete, data: { confirm: "Sure?" }, class: "btn btn--small btn--danger" - else p No templates yet.