mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-05 14:23:03 +08:00
Currently, the vm init scripts are not yet used for anything. However, we will support specifying a registered vm init script when creating a VM. This is modeled closely on the recently added project SSH public key support.
28 lines
833 B
Text
28 lines
833 B
Text
<% @page_title = "Virtual Machine Init Scripts" %>
|
|
|
|
<%== part(
|
|
"components/page_header",
|
|
title: "Virtual Machine Init Scripts",
|
|
back: @project.path,
|
|
right_items: [part("components/button", text: "Register VM Init Script", link: "#{@project.path}/vm-init-script/register", extra_class: "mr-2")],
|
|
breadcrumbs: [
|
|
%w[Projects /project],
|
|
[@project.name, @project.path],
|
|
["Virtual Machine Init Scripts", "#"]
|
|
]
|
|
) %>
|
|
|
|
<div class="grid gap-6">
|
|
<%== part(
|
|
"components/table_card",
|
|
headers: ["Name"],
|
|
rows: @project.vm_init_scripts.map do
|
|
[[[it.name, {link: path(it)}]]]
|
|
end,
|
|
empty_state: {
|
|
icon: "hero-server-stack",
|
|
title: "No Virtual Machine Init Scripts Registered",
|
|
description: "Use the Register VM Init Script button to register an init script."
|
|
}
|
|
) %>
|
|
</div>
|