Add Settings flag recommendations

This commit is contained in:
taitus
2017-07-28 13:27:46 +02:00
parent c6a9ffc19c
commit 01a41b4706
5 changed files with 5 additions and 1 deletions

View File

@@ -23,7 +23,7 @@
</div>
</div>
<% if current_user.present? %>
<% if current_user.present? && feature?(:recommendeds) %>
<% recommended_debates = current_user.recommended_debates %>
<% recommended_proposals = current_user.recommended_proposals %>

View File

@@ -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)"

View File

@@ -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)"

View File

@@ -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')

View File

@@ -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