Files
openproject/app/components/projects/phase_definition_component.html.erb

16 lines
687 B
Plaintext

<%= flex_layout(align_items: :center) do |type_container|
type_container.with_column(classes: icon_color_class, mr: 1) do
render Primer::Beta::Octicon.new(icon: icon)
end
type_container.with_column(test_selector: "project-phase-definition-name", classes: "ellipsis") do
if edit_link?
render(Primer::Beta::Link.new(href: phase_href, **phase_text_options)) { phase_text }
else
render(Primer::Beta::Text.new(**phase_text_options)) { phase_text }
end
end
type_container.with_column(ml: 2, classes: "no-wrap") do
render(Primer::Beta::Text.new(**gates_text_options)) { gates_text }
end
end %>