Merge pull request #3081 from consul/featured-proposals

[Backport] Featured proposals
This commit is contained in:
Alberto
2018-12-10 22:17:51 +01:00
committed by GitHub
8 changed files with 36 additions and 14 deletions

View File

@@ -30,6 +30,7 @@ section "Creating Settings" do
Setting.create(key: 'feature.debates', value: "true")
Setting.create(key: 'feature.proposals', value: "true")
Setting.create(key: 'feature.featured_proposals', value: "true")
Setting.create(key: 'feature.polls', value: "true")
Setting.create(key: 'feature.spending_proposals', value: nil)
Setting.create(key: 'feature.spending_proposal_features.voting_allowed', value: nil)
@@ -65,6 +66,8 @@ section "Creating Settings" do
Setting.create(key: 'map_latitude', value: 40.41)
Setting.create(key: 'map_longitude', value: -3.7)
Setting.create(key: 'map_zoom', value: 10)
Setting.create(key: 'featured_proposals_number', value: 3)
Setting.create(key: 'related_content_score_threshold', value: -0.3)
Setting['feature.homepage.widgets.feeds.proposals'] = true

View File

@@ -72,6 +72,7 @@ Setting["meta_keywords"] = nil
# Feature flags
Setting['feature.debates'] = true
Setting['feature.proposals'] = true
Setting['feature.featured_proposals'] = true
Setting['feature.spending_proposals'] = nil
Setting['feature.polls'] = true
Setting['feature.twitter_login'] = true
@@ -115,6 +116,9 @@ Setting['mailer_from_address'] = 'noreply@consul.dev'
Setting['verification_offices_url'] = 'http://oficinas-atencion-ciudadano.url/'
Setting['min_age_to_participate'] = 16
# Featured proposals
Setting['featured_proposals_number'] = 3
# Proposal improvement url path ('/help/proposal-improvement')
Setting['proposal_improvement_path'] = nil