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

Render new features block only when I18n present

Oliver Günther91c26ec18189
diff --git a/app/components/homescreen/blocks/new_features.rb b/app/components/homescreen/blocks/new_features.rb
index 90e173c7733..1644e6a4a9a 100644
--- a/app/components/homescreen/blocks/new_features.rb
+++ b/app/components/homescreen/blocks/new_features.rb
@@ -55,6 +55,10 @@ module Homescreen
I18n.t("homescreen.blocks.new_features.#{feature_version}.new_features_list")
end
+ def render?
+ I18n.exists?("homescreen.blocks.new_features.#{feature_version}")
+ end
+
private
def feature_version