% html_title t(:label_administration), t('custom_actions.plural') -%>
<%=
render Primer::OpenProject::PageHeader.new do |header|
header.with_title { t("custom_actions.plural") }
header.with_breadcrumbs([{ href: admin_index_path, text: t("label_administration") },
{ href: admin_settings_work_packages_general_path, text: t(:label_work_package_plural) },
t("custom_actions.plural") ])
end
%>
<%=
render(Primer::OpenProject::SubHeader.new) do |subheader|
subheader.with_action_button(scheme: :primary,
aria: { label: I18n.t("custom_actions.new") },
title: I18n.t("custom_actions.new"),
test_selector: "op-admin-custom-actions--button-new",
tag: :a,
href: new_custom_action_path) do |button|
button.with_leading_visual_icon(icon: :plus)
CustomAction.model_name.human
end
end
%>
<%= render(::CustomActions::TableComponent.new(rows: @custom_actions)) %>