ubicloud/views/ssh-public-key/index.erb
Jeremy Evans bde1eb74c4 Support registerting, updating, and deleting project ssh public keys in the web UI
Currently, the ssh public keys are not yet used for anything. However,
we will eventually support specifying a registered ssh public key
instead of forcing a user to upload a new one every time.

Currently, you get access to this section from a link on the project's
settings page.
2025-10-04 01:36:33 +09:00

32 lines
877 B
Text

<% @page_title = "SSH Public Keys" %>
<%== part(
"components/page_header",
title: "SSH Public Keys",
back: @project.path,
right_items: [part("components/button", text: "Register SSH Public Key", link: "#{@project.path}/ssh-public-key/register", extra_class: "mr-2")],
breadcrumbs: [
%w[Projects /project],
[@project.name, @project.path],
["SSH Public Keys", "#{@project.path}/ssh-public-key"]
]
) %>
<div class="grid gap-6">
<%== part(
"components/table_card",
headers: ["Name"],
rows: @project.ssh_public_keys(&:by_name).map do |pubkey|
[
[
[pubkey.name, {link: path(pubkey)}],
]
]
end,
empty_state: {
icon: "hero-server-stack",
title: "No SSH Public Keys Registered",
description: "Use the Register SSH Public Key button to register SSH public keys."
}
) %>
</div>