Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Show label only when inactive

Oliver Güntherb79462d51eec
diff --git a/app/components/admin/enumerations/item_component.html.erb b/app/components/admin/enumerations/item_component.html.erb
index 9882d422f8b..c61e8d2ba85 100644
--- a/app/components/admin/enumerations/item_component.html.erb
+++ b/app/components/admin/enumerations/item_component.html.erb
@@ -18,8 +18,10 @@
end
end
- enumeration_info.with_column(mr: 2) do
- render(Primer::Beta::Text.new(color: :subtle)) { enumeration.active? ? "Active" : "Inactive" }
+ unless enumeration.active?
+ enumeration_info.with_column(mr: 2) do
+ render(Primer::Beta::Text.new(color: :subtle)) { t(:label_inactive) }
+ end
end
end