decidim-accountability 0.21.0 → 0.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/decidim/accountability/admin/accountability_admin.js.es6 +6 -42
  3. data/app/assets/stylesheets/decidim/accountability/accountability/_categories.scss +8 -1
  4. data/app/assets/stylesheets/decidim/accountability/accountability/_lines_breadcrumb.scss +8 -0
  5. data/app/assets/stylesheets/decidim/accountability/accountability/_results.scss +0 -3
  6. data/app/cells/decidim/accountability/highlighted_results_for_component/show.erb +3 -3
  7. data/app/cells/decidim/accountability/highlighted_results_for_component_cell.rb +1 -1
  8. data/app/commands/decidim/accountability/admin/create_imported_result.rb +106 -0
  9. data/app/commands/decidim/accountability/admin/update_imported_result.rb +110 -0
  10. data/app/controllers/decidim/accountability/admin/import_results_controller.rb +34 -0
  11. data/app/controllers/decidim/accountability/admin/results_controller.rb +2 -20
  12. data/app/controllers/decidim/accountability/versions_controller.rb +7 -8
  13. data/app/jobs/application_job.rb +4 -0
  14. data/app/jobs/decidim/accountability/admin/import_results_csv_job.rb +19 -0
  15. data/app/mailers/decidim/accountability/import_mailer.rb +26 -0
  16. data/app/queries/decidim/accountability/metrics/results_metric_manage.rb +2 -8
  17. data/app/services/decidim/accountability/results_csv_importer.rb +139 -0
  18. data/app/views/decidim/accountability/admin/import_results/new.html.erb +22 -0
  19. data/app/views/decidim/accountability/admin/results/_form.html.erb +1 -5
  20. data/app/views/decidim/accountability/admin/results/index.html.erb +1 -0
  21. data/app/views/decidim/accountability/admin/results/proposals_picker.html.erb +1 -0
  22. data/app/views/decidim/accountability/import_mailer/import.html.erb +25 -0
  23. data/app/views/decidim/accountability/results/_linked_results.html.erb +1 -1
  24. data/app/views/decidim/accountability/results/_results_leaf.html.erb +5 -5
  25. data/app/views/decidim/accountability/results/_results_parent.html.erb +2 -2
  26. data/app/views/decidim/accountability/results/_scope_filters.html.erb +16 -3
  27. data/app/views/decidim/accountability/results/_search.html.erb +3 -3
  28. data/app/views/decidim/accountability/results/_stats_box.html.erb +11 -4
  29. data/app/views/decidim/accountability/results/_timeline.html.erb +2 -2
  30. data/app/views/decidim/accountability/versions/index.html.erb +7 -25
  31. data/app/views/decidim/accountability/versions/show.html.erb +9 -31
  32. data/app/views/decidim/participatory_spaces/_result.html.erb +3 -3
  33. data/config/locales/ar.yml +1 -24
  34. data/config/locales/bg-BG.yml +220 -0
  35. data/config/locales/ca.yml +19 -22
  36. data/config/locales/cs.yml +44 -47
  37. data/config/locales/da-DK.yml +1 -0
  38. data/config/locales/de.yml +19 -22
  39. data/config/locales/el.yml +222 -0
  40. data/config/locales/en.yml +19 -22
  41. data/config/locales/es-MX.yml +19 -22
  42. data/config/locales/es-PY.yml +19 -22
  43. data/config/locales/es.yml +19 -22
  44. data/config/locales/et-EE.yml +1 -0
  45. data/config/locales/eu.yml +1 -24
  46. data/config/locales/fi-plain.yml +19 -22
  47. data/config/locales/fi.yml +32 -35
  48. data/config/locales/fr-CA.yml +222 -0
  49. data/config/locales/fr.yml +18 -22
  50. data/config/locales/ga-IE.yml +1 -0
  51. data/config/locales/gl.yml +1 -24
  52. data/config/locales/hr-HR.yml +1 -0
  53. data/config/locales/hu.yml +18 -22
  54. data/config/locales/id-ID.yml +1 -24
  55. data/config/locales/is-IS.yml +1 -21
  56. data/config/locales/it.yml +37 -40
  57. data/config/locales/ja-JP.yml +221 -0
  58. data/config/locales/lt-LT.yml +1 -0
  59. data/config/locales/lv-LV.yml +218 -0
  60. data/config/locales/mt-MT.yml +1 -0
  61. data/config/locales/nl.yml +18 -22
  62. data/config/locales/no.yml +25 -28
  63. data/config/locales/pl.yml +46 -49
  64. data/config/locales/pt-BR.yml +2 -25
  65. data/config/locales/pt.yml +59 -62
  66. data/config/locales/ro-RO.yml +223 -0
  67. data/config/locales/ru.yml +1 -24
  68. data/config/locales/sk-SK.yml +224 -0
  69. data/config/locales/sk.yml +207 -0
  70. data/config/locales/sl.yml +129 -0
  71. data/config/locales/sr-CS.yml +205 -0
  72. data/config/locales/sv.yml +21 -24
  73. data/config/locales/tr-TR.yml +1 -24
  74. data/config/locales/uk.yml +1 -21
  75. data/db/migrate/20200320105903_index_foreign_keys_in_decidim_accountability_results.rb +7 -0
  76. data/lib/decidim/accountability/admin_engine.rb +4 -3
  77. data/lib/decidim/accountability/version.rb +1 -1
  78. metadata +54 -24
  79. data/app/views/decidim/accountability/admin/results/_proposals.html.erb +0 -12
  80. data/app/views/decidim/accountability/versions/_version.html.erb +0 -20
@@ -1,12 +0,0 @@
1
- <div class="picker-header">
2
- <h1><%= t(".current_selection") %></h1>
3
- </div>
4
- <div class="picker-content">
5
- <input type="text" name="proposal-search" id="data_picker-autocomplete">
6
- </div>
7
- <div class="picker-footer">
8
- <div class="buttons button--double">
9
- <a id="proposal-picker-choose" class="button mute" href="<%= proposals_results_path(current_component, format: :json) %>" data-picker-value="" data-picker-text="" data-picker-choose><%= t(".select") %></a>
10
- <a class="button clear" data-close=""><%= t(".close") %></a>
11
- </div>
12
- </div>
@@ -1,20 +0,0 @@
1
- <div class="card--list__item">
2
- <div class="card--list__text">
3
- <div>
4
- <%= link_to result_version_path(result, index + 1) do %>
5
- <h6 class="card--list__heading heading6">
6
- <%= t(".version_index", index: index + 1) %>
7
- </h6>
8
- <% end %>
9
- <div class="author-data">
10
- <%= render_resource_editor(version) %>
11
- <%= l version.created_at, format: :decidim_short %>
12
- </div>
13
- </div>
14
- </div>
15
- <div class="card--list__data">
16
- <%= link_to result_version_path(result, index + 1), class: "card--list__data__icon" do %>
17
- <%= icon "chevron-right" %>
18
- <% end %>
19
- </div>
20
- </div>