diff --git a/app/models/wds_server.rb b/app/models/wds_server.rb index b1f6294ccdebcefb04630a4c5885b36f6967e914..2169206ed80dddf3420ea3a9fa01f6f55c85d9b2 100644 --- a/app/models/wds_server.rb +++ b/app/models/wds_server.rb @@ -204,7 +204,6 @@ class WdsServer < ApplicationRecord end.errcode.zero? end - def images(type, name = nil) raise ArgumentError, 'Type must be :boot or :install' unless %i[boot install].include? type diff --git a/app/views/wds_servers/clients/_list.html.erb b/app/views/wds_servers/clients/_list.html.erb index a7c294dce73558ebdc4ebd76a565ae0858934b28..293e5e697d20820643c9f5950c984b7cb98eee3f 100644 --- a/app/views/wds_servers/clients/_list.html.erb +++ b/app/views/wds_servers/clients/_list.html.erb @@ -9,6 +9,7 @@ <th><%= s_("Client|Architecture") %></th> <th><%= s_("Client|Boot Image") %></th> <th><%= s_("Client|Unattend") %></th> + <th><%= s_("Client|Actions") %></th> </tr> </thead> <tbody> @@ -30,6 +31,12 @@ <td><%= client[:architecture] %></td> <td><%= client[:boot_image_path] %></td> <td><%= client[:wds_client_unattend] %></td> + <td><%= host && action_buttons( + display_link_if_authorized( + _('Delete'), + hash_for_delete_wds_client_wds_server_path(id: @wds_server, client: host) + ) + ) %></td> </tr> <%- end -%> </tbody>