decidim-accountability 0.9.3 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/decidim/accountability/admin/accountability_admin.js.es6 +46 -0
  3. data/app/assets/javascripts/decidim/accountability/version_diff.js.es6 +2 -6
  4. data/app/commands/decidim/accountability/admin/create_result.rb +15 -0
  5. data/app/commands/decidim/accountability/admin/update_status.rb +1 -1
  6. data/app/commands/decidim/accountability/admin/update_timeline_entry.rb +1 -1
  7. data/app/controllers/decidim/accountability/admin/results_controller.rb +20 -0
  8. data/app/events/decidim/accountability/proposal_linked_event.rb +21 -0
  9. data/app/forms/decidim/accountability/admin/result_form.rb +13 -3
  10. data/app/models/decidim/accountability/result.rb +8 -1
  11. data/app/presenters/decidim/accountability/admin_log/result_presenter.rb +44 -0
  12. data/app/views/decidim/accountability/admin/results/_form.html.erb +3 -5
  13. data/app/views/decidim/accountability/admin/results/_proposals.html.erb +12 -0
  14. data/app/views/decidim/accountability/results/_home_categories.html.erb +3 -3
  15. data/app/views/decidim/accountability/results/_home_header.html.erb +1 -1
  16. data/app/views/decidim/accountability/results/_nav_breadcrumb.html.erb +12 -4
  17. data/app/views/decidim/accountability/results/_results_leaf.html.erb +1 -1
  18. data/app/views/decidim/accountability/results/_results_parent.html.erb +1 -1
  19. data/app/views/decidim/accountability/results/_show_leaf.html.erb +1 -1
  20. data/app/views/decidim/accountability/results/_show_parent.html.erb +1 -1
  21. data/app/views/decidim/accountability/results/_stats_box.html.erb +20 -2
  22. data/app/views/decidim/participatory_processes/participatory_process_groups/_highlighted_results.html.erb +12 -0
  23. data/app/views/decidim/participatory_processes/participatory_process_groups/_result.html.erb +32 -0
  24. data/app/views/decidim/participatory_spaces/_highlighted_results.html.erb +14 -0
  25. data/app/views/decidim/participatory_spaces/_result.html.erb +32 -0
  26. data/config/locales/ca.yml +28 -1
  27. data/config/locales/en.yml +28 -1
  28. data/config/locales/es.yml +28 -1
  29. data/config/locales/eu.yml +28 -1
  30. data/config/locales/fi.yml +28 -1
  31. data/config/locales/fr.yml +28 -1
  32. data/config/locales/gl.yml +28 -1
  33. data/config/locales/it.yml +28 -1
  34. data/config/locales/nl.yml +28 -1
  35. data/config/locales/pl.yml +28 -6
  36. data/config/locales/pt-BR.yml +28 -1
  37. data/config/locales/pt.yml +28 -1
  38. data/config/locales/ru.yml +0 -1
  39. data/config/locales/sv.yml +28 -1
  40. data/config/locales/uk.yml +3 -3
  41. data/lib/decidim/accountability/admin_engine.rb +3 -0
  42. data/lib/decidim/accountability/engine.rb +34 -0
  43. data/lib/decidim/accountability/feature.rb +1 -0
  44. data/lib/decidim/accountability/version.rb +1 -1
  45. metadata +29 -22
  46. data/app/assets/javascripts/decidim/accountability/admin/accountability_admin.js +0 -9
@@ -1,9 +0,0 @@
1
- // = require_self
2
-
3
- $("#result_decidim_accountability_status_id").change(function () {
4
- /* eslint-disable no-invalid-this */
5
- const progress = $(this).find(':selected').data('progress')
6
- if (progress || progress === 0) {
7
- $("#result_progress").val(progress);
8
- }
9
- });