From 9c9d2c2ea85b9c5a05abd7fe22ac98ff22ecaa85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baz=C3=A1n?= Date: Sat, 12 Sep 2015 12:38:12 +0200 Subject: [PATCH] adds max_votes_for_proposal_edit to Settings --- config/locales/settings.en.yml | 3 ++- config/locales/settings.es.yml | 3 ++- db/dev_seeds.rb | 1 + db/seeds.rb | 3 +++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/config/locales/settings.en.yml b/config/locales/settings.en.yml index 78e1a9e9e..0a6ddfa0a 100644 --- a/config/locales/settings.en.yml +++ b/config/locales/settings.en.yml @@ -5,4 +5,5 @@ en: official_level_3_name: "Level 3 official positions" official_level_4_name: "Level 4 official positions" official_level_5_name: "Level 5 official positions" - max_ratio_anon_votes_on_debates: "Max allowed percentage of anonymous votes per debate" \ No newline at end of file + max_ratio_anon_votes_on_debates: "Max allowed percentage of anonymous votes per Debate" + max_votes_for_proposal_edit: "Number of votes where a Proposal is not editable anymore" \ No newline at end of file diff --git a/config/locales/settings.es.yml b/config/locales/settings.es.yml index 36adb02af..59193a286 100644 --- a/config/locales/settings.es.yml +++ b/config/locales/settings.es.yml @@ -5,4 +5,5 @@ es: official_level_3_name: "Cargos públicos de nivel 3" official_level_4_name: "Cargos públicos de nivel 4" official_level_5_name: "Cargos públicos de nivel 5" - max_ratio_anon_votes_on_debates: "Porcentaje máximo de votos anónimos por debate" \ No newline at end of file + max_ratio_anon_votes_on_debates: "Porcentaje máximo de votos anónimos por Debate" + max_votes_for_proposal_edit: "Número de votos en que una Propuesta deja de poderse editar" \ No newline at end of file diff --git a/db/dev_seeds.rb b/db/dev_seeds.rb index 64cc190cd..0c312f2a3 100644 --- a/db/dev_seeds.rb +++ b/db/dev_seeds.rb @@ -9,6 +9,7 @@ Setting.create(key: 'official_level_3_name', value: 'Directores generales') Setting.create(key: 'official_level_4_name', value: 'Concejales') Setting.create(key: 'official_level_5_name', value: 'Alcaldesa') Setting.create(key: 'max_ratio_anon_votes_on_debates', value: '50') +Setting.create(key: 'max_votes_for_proposal_edit', value: '1000') puts "Creating Users" diff --git a/db/seeds.rb b/db/seeds.rb index 3c51a947f..69baa97e0 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -14,3 +14,6 @@ Setting.create(key: 'official_level_5_name', value: 'Alcaldesa') # Max percentage of allowed anonymous votes on a debate Setting.create(key: 'max_ratio_anon_votes_on_debates', value: '50') + +# Max votes where a proposal is still editable +Setting.create(key: 'max_votes_for_proposal_edit', value: '1000')