Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Admin settings section #3328

Merged
merged 7 commits into from
Feb 27, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
Add missing settings to dev seeds
  • Loading branch information
decabeza committed Feb 25, 2019
commit 6fd13c1701b4d33a3e36e8c6fa2bd2ea5a7347ed
4 changes: 4 additions & 0 deletions config/locales/en/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ en:
min_age_to_participate_description: "Users over this age can participate in all processes where a user verified account is needed"
analytics_url: "Analytics URL"
verification_offices_url: Verification offices URL
proposal_notification_minimum_interval_in_days: "Minimum interval (in days) for authors of proposals to send new proposal notifications"
proposal_notification_minimum_interval_in_days_description: "The number of days user can send a notification for all supporters of their proposal"
direct_message_max_per_day: "Direct Message max number per day"
direct_message_max_per_day_description: "Number max of direct messages one user can send per day"
feature:
budgets: "Participatory budgeting"
budgets_description: "With participatory budgets, citizens decide which projects presented by their neighbours will receive a part of the municipal budget"
Expand Down
4 changes: 4 additions & 0 deletions config/locales/es/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ es:
min_age_to_participate_description: "Los usuarios mayores de esta edad podrán participar en todos los procesos donde se necesite una cueta verificada"
analytics_url: "URL de estadísticas externas"
verification_offices_url: URL oficinas verificación
proposal_notification_minimum_interval_in_days: "Intervalo mínimo (en días) para que los autores de propuestas puedan enviar nuevas notificaciones de propuesta"
proposal_notification_minimum_interval_in_days_description: "El número de días en los que un usuario puede enviar una notificación a todos los que apoyan su propuesta"
direct_message_max_per_day: "Mensajes directos máximos por día"
direct_message_max_per_day_description: "Número de mensajes directos máximos que un usuario puede enviar por día"
feature:
budgets: "Presupuestos participativos"
budgets_description: "Con los presupuestos participativos la ciudadanía decide a qué proyectos presentados por los vecinos y vecinas va destinada una parte del presupuesto municipal"
Expand Down
2 changes: 2 additions & 0 deletions db/dev_seeds/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@
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: 'proposal_notification_minimum_interval_in_days', value: 0)
Setting.create(key: 'direct_message_max_per_day', value: 3)

Setting.create(key: 'related_content_score_threshold', value: -0.3)
Setting.create(key: 'hot_score_period_in_days', value: 31)
Expand Down