diff --git a/app/views/welcome/index.html.erb b/app/views/welcome/index.html.erb index 0e1ee58a3..6e1a39efe 100644 --- a/app/views/welcome/index.html.erb +++ b/app/views/welcome/index.html.erb @@ -23,7 +23,7 @@ -<% if current_user.present? %> +<% if current_user.present? && feature?(:recommendeds) %> <% recommended_debates = current_user.recommended_debates %> <% recommended_proposals = current_user.recommended_proposals %> diff --git a/config/locales/en/settings.yml b/config/locales/en/settings.yml index 008349826..419fe9fd0 100644 --- a/config/locales/en/settings.yml +++ b/config/locales/en/settings.yml @@ -39,6 +39,7 @@ en: spending_proposal_features: voting_allowed: Voting on investment projects legislation: Legislation + recommendeds: Recommendeds mailer_from_name: Origin email name mailer_from_address: Origin email address meta_description: "Site description (SEO)" diff --git a/config/locales/es/settings.yml b/config/locales/es/settings.yml index c5a304253..b755080b1 100644 --- a/config/locales/es/settings.yml +++ b/config/locales/es/settings.yml @@ -39,6 +39,7 @@ es: spending_proposal_features: voting_allowed: Votaciones sobre propuestas de inversión legislation: Legislación + recommendeds: Recomendaciones mailer_from_name: Nombre email remitente mailer_from_address: Dirección email remitente meta_description: "Descripción del sitio (SEO)" diff --git a/db/dev_seeds.rb b/db/dev_seeds.rb index 69a3cf926..493d09858 100644 --- a/db/dev_seeds.rb +++ b/db/dev_seeds.rb @@ -36,6 +36,7 @@ Setting.create(key: 'feature.facebook_login', value: "true") Setting.create(key: 'feature.google_login', value: "true") Setting.create(key: 'feature.signature_sheets', value: "true") Setting.create(key: 'feature.legislation', value: "true") +Setting.create(key: 'feature.recommendeds', value: "true") Setting.create(key: 'per_page_code_head', value: "") Setting.create(key: 'per_page_code_body', value: "") Setting.create(key: 'comments_body_max_length', value: '1000') diff --git a/db/seeds.rb b/db/seeds.rb index eebea2461..4995ff35a 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -79,6 +79,7 @@ Setting['feature.public_stats'] = true Setting['feature.budgets'] = true Setting['feature.signature_sheets'] = true Setting['feature.legislation'] = true +Setting['feature.recommendeds'] = nil # Spending proposals feature flags Setting['feature.spending_proposal_features.voting_allowed'] = nil