diff --git a/app/views/api_users/applications/index.html.erb b/app/views/api_users/applications/index.html.erb index e6f3d4f80..f47c20343 100644 --- a/app/views/api_users/applications/index.html.erb +++ b/app/views/api_users/applications/index.html.erb @@ -33,22 +33,18 @@ <% end %> <% end %> - - - - - - - - - - - <% @applications.each do |application| %> - - - - - - <% end %> - -
Apps <%= @api_user.name %> has access to
NameDescriptionPermissions
<%= application.name %><%= application.description %><%= update_permissions_link(application, @api_user) %>
+<%= render "govuk_publishing_components/components/table", { + caption: "Apps #{@api_user.name} has access to", + head: [ + { text: "Name" }, + { text: "Description" }, + { text: content_tag(:span, "Permissions", class: "govuk-visually-hidden") }, + ], + rows: @applications.map do |application| + [ + { text: application.name }, + { text: application.description }, + { text: update_permissions_link(application, @api_user) || "" } + ] + end, +} %>