diff --git a/app/models/space.rb b/app/models/space.rb index 0398ac1d4..45dabfaba 100644 --- a/app/models/space.rb +++ b/app/models/space.rb @@ -1,5 +1,5 @@ class Space < ApplicationRecord - FEATURES = %w[events materials elearning_materials learning_paths workflows collections trainers content_providers nodes].freeze + FEATURES = %w[events materials elearning_materials learning_paths workflows collections trainers content_providers nodes spaces].freeze include PublicActivity::Common include LogParameterChanges diff --git a/app/views/layouts/_footer.html.erb b/app/views/layouts/_footer.html.erb index ae0edf198..939537e2f 100644 --- a/app/views/layouts/_footer.html.erb +++ b/app/views/layouts/_footer.html.erb @@ -27,6 +27,11 @@ + <% if TeSS::Config.feature['spaces'] %> + + <% end %> 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) } %>