From 111798d1f63bb53519aa1b0185425b7acd3ee17d Mon Sep 17 00:00:00 2001 From: Finn Bacall Date: Thu, 22 Jan 2026 14:30:30 +0000 Subject: [PATCH 1/3] Hide disabled space features from front page counters --- app/views/static/home/_counters.html.erb | 2 +- test/controllers/static_controller_test.rb | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app/views/static/home/_counters.html.erb b/app/views/static/home/_counters.html.erb index 789f4f997..508a50a07 100644 --- a/app/views/static/home/_counters.html.erb +++ b/app/views/static/home/_counters.html.erb @@ -1,5 +1,5 @@ <% features ||= ['events', 'materials', 'workflows', 'learning_paths', 'trainers'] %> -<% features = features.select { |f| TeSS::Config.feature[f] } %> +<% features = features.select { |f| feature_enabled?(f) } %>