mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-08 15:51:57 +08:00
Currently, herb/formatter has at least 4 bugs the prevent us from switching to it (https://github.com/marcoroth/herb/issues 476, 477, 478, and 479). This includes manual fixes for each issue. herb/formatter also introduces a rubocop violation for the Layout/AssignmentIndentation cop. This disables that cop.
34 lines
752 B
Text
34 lines
752 B
Text
<%# locals: (url: request.path, csrf_url: url, confirmation_message: nil) %>
|
|
|
|
<div class="group-[.active]/inline-editable:hidden block">
|
|
<%== part(
|
|
"components/button",
|
|
text: "",
|
|
icon: "hero-pencil",
|
|
extra_class: "edit-inline-btn",
|
|
type: "warning"
|
|
) %>
|
|
</div>
|
|
|
|
<div class="group-[.active]/inline-editable:block hidden">
|
|
<%== part(
|
|
"components/button",
|
|
text: "",
|
|
icon: "hero-check-circle",
|
|
extra_class: "save-inline-btn",
|
|
type: "safe",
|
|
attributes: {
|
|
"data-url" => url,
|
|
"data-csrf" => csrf_token(csrf_url, "PATCH"),
|
|
"data-confirmation-message" => confirmation_message
|
|
}
|
|
) %>
|
|
|
|
<%== part(
|
|
"components/button",
|
|
text: "",
|
|
icon: "hero-x-circle",
|
|
extra_class: "cancel-inline-btn",
|
|
type: "danger"
|
|
) %>
|
|
</div>
|