decidim-accountability 0.15.2 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/accountability/highlighted_results/show.erb +3 -0
  3. data/app/cells/decidim/accountability/highlighted_results_cell.rb +23 -0
  4. data/app/cells/decidim/accountability/highlighted_results_for_component/show.erb +21 -0
  5. data/app/cells/decidim/accountability/highlighted_results_for_component_cell.rb +36 -0
  6. data/app/commands/decidim/accountability/admin/create_result.rb +2 -1
  7. data/app/commands/decidim/accountability/admin/update_result.rb +21 -0
  8. data/app/controllers/decidim/accountability/results_controller.rb +4 -0
  9. data/app/events/decidim/accountability/proposal_linked_event.rb +4 -0
  10. data/app/events/decidim/accountability/result_progress_updated_event.rb +29 -0
  11. data/config/locales/ca.yml +8 -2
  12. data/config/locales/de.yml +7 -4
  13. data/config/locales/en.yml +8 -2
  14. data/config/locales/es-PY.yml +8 -2
  15. data/config/locales/es.yml +8 -2
  16. data/config/locales/eu.yml +8 -2
  17. data/config/locales/fi-pl.yml +8 -2
  18. data/config/locales/fi.yml +8 -2
  19. data/config/locales/fr.yml +8 -2
  20. data/config/locales/gl.yml +8 -2
  21. data/config/locales/hu.yml +8 -2
  22. data/config/locales/id-ID.yml +0 -4
  23. data/config/locales/it.yml +8 -2
  24. data/config/locales/nl.yml +8 -2
  25. data/config/locales/pl.yml +8 -2
  26. data/config/locales/pt-BR.yml +8 -2
  27. data/config/locales/pt.yml +8 -2
  28. data/config/locales/ru.yml +0 -4
  29. data/config/locales/sv.yml +8 -2
  30. data/config/locales/tr-TR.yml +0 -4
  31. data/config/locales/uk.yml +0 -4
  32. data/lib/decidim/accountability/component.rb +2 -0
  33. data/lib/decidim/accountability/engine.rb +15 -18
  34. data/lib/decidim/accountability/version.rb +1 -1
  35. metadata +26 -22
  36. data/app/views/decidim/participatory_spaces/_highlighted_results.html.erb +0 -14
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8d72ca287a9234e9add598d64c2dd8c35bd5f04233c6e53dbf96bb9d19264c84
4
- data.tar.gz: d38e766b02dda41d5fe63dea2c547814d87c444dccab0fb99f5b485dcf13af27
3
+ metadata.gz: 4df49e783fb99fdbb4d6b550d94a4cd3142cc2b6da5e83f0ead8af1a38f9b357
4
+ data.tar.gz: 6c112782954768275909fba99f9904660410e4ac76bf312ae00d2739695308e3
5
5
  SHA512:
6
- metadata.gz: 9b26b7362548e0ae38cbe0194dce5403dd16a168e6278432df921d5b6e2be422a066da71691ffcec3ca33662d4c57acc956a6b28416c9def682155cfcf2cb195
7
- data.tar.gz: d6c03c470974cdc250dbad0540f03c5626d4eb1e227d102553c3c9f38eb78d27c1d654ef10eac909a9164bf3309d143fded5589084cba545a43892c4334d010b
6
+ metadata.gz: 522c217be0d619d7b384b8210881a1ca3da0b3a2c686d10fba4d15e597c12e146f908a285e68c1c425ca4913d59f4977c4ce73a91544ddc115fbe68f3d612458
7
+ data.tar.gz: 89986e59c7ccd920d80f02af4ecad0b1913780326372ad0099e78a7e73f7c2fcce9aa08ec94f248c9d645efd102945ce138714717b686ca8f61bea7c847ef94b
@@ -0,0 +1,3 @@
1
+ <% published_components.each do |component| %>
2
+ <%= cell "decidim/accountability/highlighted_results_for_component", component %>
3
+ <% end %>
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "cell/partial"
4
+
5
+ module Decidim
6
+ module Accountability
7
+ # This cell renders the highlighted results for a given participatory
8
+ # space. It is intended to be used in the `participatory_space_highlighted_elements`
9
+ # view hook.
10
+ class HighlightedResultsCell < Decidim::ViewModel
11
+ private
12
+
13
+ def published_components
14
+ Decidim::Component
15
+ .where(
16
+ participatory_space: model,
17
+ manifest_name: :accountability
18
+ )
19
+ .published
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,21 @@
1
+ <section class="section row collapse highlighted_results">
2
+ <h4 class="section-heading">
3
+ <%= translated_attribute(model.name) %> <a href="<%= main_component_path(model) %>" class="text-small"><%= t("decidim.participatory_spaces.highlighted_results.see_all", count: results_count) %></a>
4
+ </h4>
5
+
6
+ <div class="row">
7
+ <div class="columns accountability">
8
+ <div class="card card--action card--list">
9
+ <% results_to_render.each do |result| %>
10
+ <%= render partial: "decidim/participatory_spaces/result.html", locals: { result: result } %>
11
+ <% end %>
12
+ </div>
13
+ </div>
14
+ </div>
15
+
16
+ <%= link_to(
17
+ t("decidim.participatory_spaces.highlighted_results.see_all", count: results_count),
18
+ main_component_path(model),
19
+ class: "button button--sc light secondary button--right"
20
+ ) %>
21
+ </section>
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "cell/partial"
4
+
5
+ module Decidim
6
+ module Accountability
7
+ # This cell renders the highlighted results for a given component.
8
+ # It is intended to be used in the `participatory_space_highlighted_elements`
9
+ # view hook.
10
+ class HighlightedResultsForComponentCell < Decidim::ViewModel
11
+ include ActiveSupport::NumberHelper
12
+ include Decidim::Accountability::ApplicationHelper
13
+ include Decidim::ComponentPathHelper
14
+ include Decidim::LayoutHelper
15
+ include Cell::ViewModel::Partial
16
+
17
+ def show
18
+ render unless results_count.zero?
19
+ end
20
+
21
+ private
22
+
23
+ def results
24
+ @results ||= Decidim::Accountability::Result.where(component: model).order_randomly(rand * 2 - 1)
25
+ end
26
+
27
+ def results_to_render
28
+ @results_to_render ||= results.limit(4)
29
+ end
30
+
31
+ def results_count
32
+ @results_count ||= results.count
33
+ end
34
+ end
35
+ end
36
+ end
@@ -91,7 +91,8 @@ module Decidim
91
91
  event: "decidim.events.accountability.proposal_linked",
92
92
  event_class: Decidim::Accountability::ProposalLinkedEvent,
93
93
  resource: result,
94
- recipient_ids: proposal.followers.pluck(:id),
94
+ affected_users: proposal.notifiable_identities,
95
+ followers: proposal.followers - proposal.notifiable_identities,
95
96
  extra: {
96
97
  proposal_id: proposal.id
97
98
  }
@@ -26,6 +26,7 @@ module Decidim
26
26
  link_proposals
27
27
  link_meetings
28
28
  link_projects
29
+ send_notifications if should_notify_followers?
29
30
  end
30
31
 
31
32
  broadcast(:ok)
@@ -82,6 +83,26 @@ module Decidim
82
83
  def link_meetings
83
84
  result.link_resources(meetings, "meetings_through_proposals")
84
85
  end
86
+
87
+ def send_notifications
88
+ result.linked_resources(:proposals, "included_proposals").each do |proposal|
89
+ Decidim::EventsManager.publish(
90
+ event: "decidim.events.accountability.result_progress_updated",
91
+ event_class: Decidim::Accountability::ResultProgressUpdatedEvent,
92
+ resource: result,
93
+ affected_users: proposal.notifiable_identities,
94
+ followers: proposal.followers - proposal.notifiable_identities,
95
+ extra: {
96
+ progress: result.progress,
97
+ proposal_id: proposal.id
98
+ }
99
+ )
100
+ end
101
+ end
102
+
103
+ def should_notify_followers?
104
+ result.previous_changes["progress"].present?
105
+ end
85
106
  end
86
107
  end
87
108
  end
@@ -11,6 +11,10 @@ module Decidim
11
11
 
12
12
  helper_method :results, :result, :first_class_categories, :count_calculator
13
13
 
14
+ def show
15
+ raise ActionController::RoutingError, "Not Found" unless result
16
+ end
17
+
14
18
  private
15
19
 
16
20
  def results
@@ -16,6 +16,10 @@ module Decidim
16
16
  def proposal
17
17
  @proposal ||= resource.linked_resources(:proposals, "included_proposals").find_by(id: extra[:proposal_id])
18
18
  end
19
+
20
+ def resource_text
21
+ translated_attribute(resource.description)
22
+ end
19
23
  end
20
24
  end
21
25
  end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Accountability
5
+ class ResultProgressUpdatedEvent < Decidim::Events::SimpleEvent
6
+ i18n_attributes :proposal_title, :proposal_path, :progress
7
+
8
+ def proposal_path
9
+ @proposal_path ||= Decidim::ResourceLocatorPresenter.new(proposal).path
10
+ end
11
+
12
+ def proposal_title
13
+ @proposal_title ||= proposal.title
14
+ end
15
+
16
+ def proposal
17
+ @proposal ||= resource.linked_resources(:proposals, "included_proposals").find_by(id: extra[:proposal_id])
18
+ end
19
+
20
+ def progress
21
+ extra[:progress]
22
+ end
23
+
24
+ def resource_text
25
+ translated_attribute(resource.description)
26
+ end
27
+ end
28
+ end
29
+ end
@@ -23,6 +23,7 @@ ca:
23
23
  entry_date: Data
24
24
  models:
25
25
  decidim/accountability/proposal_linked_event: Proposta inclosa en un resultat
26
+ decidim/accountability/result_progress_updated_event: Progrés del resultat actualitzat
26
27
  activerecord:
27
28
  models:
28
29
  decidim/accountability/result:
@@ -201,8 +202,14 @@ ca:
201
202
  email_outro: Has rebut aquesta notificació perquè estàs seguint "%{proposal_title}". Pots deixar de rebre notificacions seguint l'enllaç anterior.
202
203
  email_subject: Una actualització a %{proposal_title}
203
204
  notification_title: La proposta <a href="%{proposal_path}">%{proposal_title}</a> s'ha inclòs al resultat <a href="%{resource_path}">%{resource_title}</a>.
205
+ result_progress_updated:
206
+ email_intro: 'El resultat "%{resource_title}", que inclou la proposta "%{proposal_title}", s''ha completat en un %{progress}%. Pots veure-ho des d''aquesta pàgina:'
207
+ email_outro: Has rebut aquesta notificació perquè estàs seguint "%{proposal_title}", i aquesta proposta s'inclou al resultat "%{resource_title}". Pots deixar de rebre notificacions seguint l'enllaç anterior.
208
+ email_subject: Una actualització sobre el progrés de %{resource_title}
209
+ notification_title: El resultat <a href="%{resource_path}">%{resource_title}</a>, que inclou la proposta <a href="%{proposal_path}">%{proposal_title}</a>, s'ha completat en un %{progress}%.
204
210
  metrics:
205
211
  results:
212
+ description: Nombre de resultats generats
206
213
  object: resultats
207
214
  title: Resultats
208
215
  participatory_processes:
@@ -211,8 +218,7 @@ ca:
211
218
  results: Resultats
212
219
  participatory_spaces:
213
220
  highlighted_results:
214
- results: Resultats
215
- see_all_results: Veure tots els resultats
221
+ see_all: Veure tots (%{count})
216
222
  resource_links:
217
223
  included_projects:
218
224
  result_project: Projectes inclosos en aquest resultat
@@ -23,6 +23,7 @@ de:
23
23
  entry_date: Datum
24
24
  models:
25
25
  decidim/accountability/proposal_linked_event: Vorschlag in einem Ergebnis enthalten
26
+ decidim/accountability/result_progress_updated_event: Ergebnisfortschritt aktualisiert
26
27
  activerecord:
27
28
  models:
28
29
  decidim/accountability/result:
@@ -201,18 +202,20 @@ de:
201
202
  email_outro: Sie haben diese Benachrichtigung erhalten, weil Sie "%{proposal_title}" folgen. Sie können den Erhalt von Benachrichtigungen über den vorherigen Link beenden.
202
203
  email_subject: Ein Update auf %{proposal_title}
203
204
  notification_title: Der Vorschlag <a href="%{proposal_path}">%{proposal_title}</a> wurde in das Ergebnis <a href="%{resource_path}">%{resource_title}</a>.
205
+ result_progress_updated:
206
+ email_intro: 'Das Ergebnis "%{resource_title}", das den Vorschlag "%{proposal_title}" enthält, ist jetzt zu %{progress}% abgeschlossen. Sie können es auf dieser Seite sehen:'
207
+ email_outro: Sie haben diese Benachrichtigung erhalten, weil Sie "%{proposal_title}" folgen und dieser Vorschlag in das Ergebnis "%{resource_title}" aufgenommen wird. Sie können den Erhalt von Benachrichtigungen über den vorherigen Link beenden.
208
+ email_subject: Ein Update auf %{resource_title} Fortschritt
209
+ notification_title: Das Ergebnis <a href="%{resource_path}">%{resource_title}</a>, das den Vorschlag <a href="%{proposal_path}">%{proposal_title}</a>, ist jetzt zu %{progress}% abgeschlossen.
204
210
  metrics:
205
211
  results:
212
+ description: Anzahl der erzeugten Verantwortlichkeitsergebnisse
206
213
  object: Ergebnisse
207
214
  title: Ergebnisse
208
215
  participatory_processes:
209
216
  participatory_process_groups:
210
217
  highlighted_results:
211
218
  results: Ergebnisse
212
- participatory_spaces:
213
- highlighted_results:
214
- results: Ergebnisse
215
- see_all_results: Alle Ergebnisse anzeigen
216
219
  resource_links:
217
220
  included_projects:
218
221
  result_project: Projekte in diesem Ergebnis enthalten
@@ -23,6 +23,7 @@ en:
23
23
  entry_date: Date
24
24
  models:
25
25
  decidim/accountability/proposal_linked_event: Proposal included in a result
26
+ decidim/accountability/result_progress_updated_event: Result progress updated
26
27
  activerecord:
27
28
  models:
28
29
  decidim/accountability/result:
@@ -201,8 +202,14 @@ en:
201
202
  email_outro: You have received this notification because you are following "%{proposal_title}". You can stop receiving notifications following the previous link.
202
203
  email_subject: An update to %{proposal_title}
203
204
  notification_title: The proposal <a href="%{proposal_path}">%{proposal_title}</a> has been included in the <a href="%{resource_path}">%{resource_title}</a> result.
205
+ result_progress_updated:
206
+ email_intro: 'The result "%{resource_title}", which includes the proposal "%{proposal_title}", is now %{progress}% complete. You can see it from this page:'
207
+ email_outro: You have received this notification because you are following "%{proposal_title}", and this proposal is included in the result "%{resource_title}". You can stop receiving notifications following the previous link.
208
+ email_subject: An update to %{resource_title} progress
209
+ notification_title: The result <a href="%{resource_path}">%{resource_title}</a>, which includes the proposal <a href="%{proposal_path}">%{proposal_title}</a>, is now %{progress}% complete.
204
210
  metrics:
205
211
  results:
212
+ description: Number of accountability results generated
206
213
  object: results
207
214
  title: Results
208
215
  participatory_processes:
@@ -211,8 +218,7 @@ en:
211
218
  results: Results
212
219
  participatory_spaces:
213
220
  highlighted_results:
214
- results: Results
215
- see_all_results: See all results
221
+ see_all: See all (%{count})
216
222
  resource_links:
217
223
  included_projects:
218
224
  result_project: Projects included in this result
@@ -23,6 +23,7 @@ es-PY:
23
23
  entry_date: Fecha
24
24
  models:
25
25
  decidim/accountability/proposal_linked_event: Propuesta incluida en un resultado
26
+ decidim/accountability/result_progress_updated_event: Progreso del resultado actualizado
26
27
  activerecord:
27
28
  models:
28
29
  decidim/accountability/result:
@@ -201,8 +202,14 @@ es-PY:
201
202
  email_outro: Has recibido esta notificación porque estás siguiendo "%{proposal_title}". Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
202
203
  email_subject: Una actualización en %{proposal_title}
203
204
  notification_title: Se ha incluido la propuesta <a href="%{proposal_path}">%{proposal_title}</a> en el resultado <a href="%{resource_path}">%{resource_title}</a>.
205
+ result_progress_updated:
206
+ email_intro: 'El resultado "%{resource_title}", que incluye la propuesta "%{proposal_title}", ahora está completo al %{progress}%. Puedes verlo desde esta página:'
207
+ email_outro: Ha recibido esta notificación porque está siguiendo "%{proposal_title}" y esta propuesta se incluye en el resultado "%{resource_title}". Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
208
+ email_subject: Una actualización a %{resource_title} progreso
209
+ notification_title: El resultado <a href="%{resource_path}">%{resource_title}</a>, que incluye la propuesta <a href="%{proposal_path}">%{proposal_title}</a>, ahora está completo al %{progress}%.
204
210
  metrics:
205
211
  results:
212
+ description: Número de resultados de responsabilidad generados
206
213
  object: resultados
207
214
  title: Resultados
208
215
  participatory_processes:
@@ -211,8 +218,7 @@ es-PY:
211
218
  results: Resultados
212
219
  participatory_spaces:
213
220
  highlighted_results:
214
- results: Resultados
215
- see_all_results: Ver todos los resultados
221
+ see_all: Ver todo (%{count})
216
222
  resource_links:
217
223
  included_projects:
218
224
  result_project: Proyectos incluidos en este resultado
@@ -23,6 +23,7 @@ es:
23
23
  entry_date: Fecha
24
24
  models:
25
25
  decidim/accountability/proposal_linked_event: Propuesta incluida en un resultado
26
+ decidim/accountability/result_progress_updated_event: Progreso del resultado actualizado
26
27
  activerecord:
27
28
  models:
28
29
  decidim/accountability/result:
@@ -201,8 +202,14 @@ es:
201
202
  email_outro: Has recibido esta notificación porque estás siguiendo "%{proposal_title}". Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
202
203
  email_subject: Una actualización en %{proposal_title}
203
204
  notification_title: Se ha incluido la propuesta <a href="%{proposal_path}">%{proposal_title}</a> en el resultado <a href="%{resource_path}">%{resource_title}</a>.
205
+ result_progress_updated:
206
+ email_intro: 'El resultado "%{resource_title}", que incluye la propuesta "%{proposal_title}", está completado al %{progress}%. Puedes verlo desde esta página:'
207
+ email_outro: Has recibido esta notificación porque estás siguiendo "%{proposal_title}" y esta propuesta se incluye en el resultado "%{resource_title}". Puedes dejar de recibir notificaciones siguiendo el enlace anterior.
208
+ email_subject: Una actualización sobre el progreso de %{resource_title}
209
+ notification_title: El resultado <a href="%{resource_path}">%{resource_title}</a>, que incluye la propuesta <a href="%{proposal_path}">%{proposal_title}</a>, ahora está completado al %{progress}%.
204
210
  metrics:
205
211
  results:
212
+ description: Número de resultados generados
206
213
  object: resultados
207
214
  title: Resultados
208
215
  participatory_processes:
@@ -211,8 +218,7 @@ es:
211
218
  results: Resultados
212
219
  participatory_spaces:
213
220
  highlighted_results:
214
- results: Resultados
215
- see_all_results: Ver todos los resultados
221
+ see_all: Ver todo (%{count})
216
222
  resource_links:
217
223
  included_projects:
218
224
  result_project: Proyectos incluidos en este resultado
@@ -23,6 +23,7 @@ eu:
23
23
  entry_date: Data
24
24
  models:
25
25
  decidim/accountability/proposal_linked_event: Emaitza batean sartutako proposamena
26
+ decidim/accountability/result_progress_updated_event: Emaitzen aurrerapena eguneratu da
26
27
  activerecord:
27
28
  models:
28
29
  decidim/accountability/result:
@@ -201,8 +202,14 @@ eu:
201
202
  email_outro: Jakinarazpena jaso duzu "%{proposal_title}" jarraitzen ari zarenagatik. Aurreko esteka jarraituz jakinarazpenak jasotzeari uztea erabaki dezakezu.
202
203
  email_subject: '%{proposal_title} eguneratzea'
203
204
  notification_title: <a href="%{proposal_path}">%{proposal_title}</a> <a href="%{resource_path}">%{resource_title}</a> emaitza izan da.
205
+ result_progress_updated:
206
+ email_intro: '"%{resource_title}" emaitza, "%{proposal_title}" proposamena barne, orain% %{progress}osatuta dago. Orrialde hau ikusi dezakezu:'
207
+ email_outro: Jakinarazpen hori jaso duzu "%{proposal_title}" jarraitzen duzulako eta proposamen hau "%{resource_title}" emaitza da. Aurreko esteka jarraituz jakinarazpenak jasotzeari uztea erabaki dezakezu.
208
+ email_subject: '%{resource_title} aurrerapen eguneratzea'
209
+ notification_title: Emaitza <a href="%{resource_path}">%{resource_title}</a>, <a href="%{proposal_path}">%{proposal_title}</a>proposamena biltzen duena, orain% %{progress}osatu da.
204
210
  metrics:
205
211
  results:
212
+ description: Kontuak sortzeko emaitza kopurua
206
213
  object: emaitzak
207
214
  title: Emaitzak
208
215
  participatory_processes:
@@ -211,8 +218,7 @@ eu:
211
218
  results: Emaitzak
212
219
  participatory_spaces:
213
220
  highlighted_results:
214
- results: Emaitzak
215
- see_all_results: Ikusi emaitza guztiak
221
+ see_all: Ikusi dena (%{count})
216
222
  resource_links:
217
223
  included_projects:
218
224
  result_project: Emaitza honetan sartutako proiektuak
@@ -23,6 +23,7 @@ fi-pl:
23
23
  entry_date: Päivämäärä
24
24
  models:
25
25
  decidim/accountability/proposal_linked_event: Ehdotus sisältyy tulokseen
26
+ decidim/accountability/result_progress_updated_event: Tuloksen edistyminen päivitetty
26
27
  activerecord:
27
28
  models:
28
29
  decidim/accountability/result:
@@ -201,8 +202,14 @@ fi-pl:
201
202
  email_outro: Tämä ilmoitus on lähetetty sinulle, koska seuraat "%{proposal_title}". Voit lopettaa ilmoitusten vastaanottamisen edellä esitetyn linkin kautta.
202
203
  email_subject: Päivitys kohtaan %{proposal_title}
203
204
  notification_title: Ehdotus <a href="%{proposal_path}">%{proposal_title}</a> on sisällytetty tulokseen <a href="%{resource_path}">%{resource_title}</a>.
205
+ result_progress_updated:
206
+ email_intro: 'Tulos "%{resource_title}", joka sisältää ehdotuksen "%{proposal_title}", on nyt %{progress}% valmis. Voit nähdä sen tällä sivulla:'
207
+ email_outro: Saat tämän ilmoituksen, koska seuraat ehdotusta "%{proposal_title}" ja se sisältyy tulokseen "%{resource_title}". Voit lopettaa ilmoitusten vastaanottamisen edellä esitetyn linkin kautta.
208
+ email_subject: Päivitys kohteen %{resource_title} edistykseen
209
+ notification_title: Tulos <a href="%{resource_path}">%{resource_title}</a>, joka sisältää ehdotuksen <a href="%{proposal_path}">%{proposal_title}</a>, on nyt %{progress}% valmis.
204
210
  metrics:
205
211
  results:
212
+ description: Vastuullisuustulosten määrä
206
213
  object: tulokset
207
214
  title: Tulokset
208
215
  participatory_processes:
@@ -211,8 +218,7 @@ fi-pl:
211
218
  results: Tulokset
212
219
  participatory_spaces:
213
220
  highlighted_results:
214
- results: Tulokset
215
- see_all_results: Katso kaikki tulokset
221
+ see_all: Näytä kaikki (%{count})
216
222
  resource_links:
217
223
  included_projects:
218
224
  result_project: Tähän tulokseen liittyvät suunnitelmat
@@ -23,6 +23,7 @@ fi:
23
23
  entry_date: Päivämäärä
24
24
  models:
25
25
  decidim/accountability/proposal_linked_event: Ehdotus sisältyy tulokseen
26
+ decidim/accountability/result_progress_updated_event: Tuloksen edistyminen päivitetty
26
27
  activerecord:
27
28
  models:
28
29
  decidim/accountability/result:
@@ -201,8 +202,14 @@ fi:
201
202
  email_outro: Tämä ilmoitus on lähetetty sinulle, koska seuraat "%{proposal_title}". Voit lopettaa ilmoitusten vastaanottamisen edellä esitetyn linkin kautta.
202
203
  email_subject: Päivitys kohtaan %{proposal_title}
203
204
  notification_title: Ehdotus <a href="%{proposal_path}">%{proposal_title}</a> on sisällytetty tulokseen <a href="%{resource_path}">%{resource_title}</a>.
205
+ result_progress_updated:
206
+ email_intro: 'Tulos "%{resource_title}", joka sisältää ehdotuksen "%{proposal_title}", on nyt %{progress}% valmis. Voit nähdä sen tällä sivulla:'
207
+ email_outro: Saat tämän ilmoituksen, koska seuraat ehdotusta "%{proposal_title}" ja se sisältyy tulokseen "%{resource_title}". Voit lopettaa ilmoitusten vastaanottamisen edellä esitetyn linkin kautta.
208
+ email_subject: Päivitys kohteen %{resource_title} edistykseen
209
+ notification_title: Tulos <a href="%{resource_path}">%{resource_title}</a>, joka sisältää ehdotuksen <a href="%{proposal_path}">%{proposal_title}</a>, on nyt %{progress}% valmis.
204
210
  metrics:
205
211
  results:
212
+ description: Vastuullisuustulosten määrä
206
213
  object: tulokset
207
214
  title: Tulokset
208
215
  participatory_processes:
@@ -211,8 +218,7 @@ fi:
211
218
  results: Tulokset
212
219
  participatory_spaces:
213
220
  highlighted_results:
214
- results: Tulokset
215
- see_all_results: Katso kaikki tulokset
221
+ see_all: Näytä kaikki (%{count})
216
222
  resource_links:
217
223
  included_projects:
218
224
  result_project: Tähän tulokseen liittyvät suunnitelmat
@@ -23,6 +23,7 @@ fr:
23
23
  entry_date: Date
24
24
  models:
25
25
  decidim/accountability/proposal_linked_event: Proposition incluse dans une réalisation
26
+ decidim/accountability/result_progress_updated_event: Résultat du progrès mis à jour
26
27
  activerecord:
27
28
  models:
28
29
  decidim/accountability/result:
@@ -201,8 +202,14 @@ fr:
201
202
  email_outro: Vous avez reçu cette notification parce que vous suivez "%{proposal_title}". Vous pouvez arrêter de recevoir des notifications à partir du lien précédent.
202
203
  email_subject: Une mise à jour de %{proposal_title}
203
204
  notification_title: La proposition <a href="%{proposal_path}">%{proposal_title}</a> a été incluse dans la réalisation <a href="%{resource_path}">%{resource_title}</a>.
205
+ result_progress_updated:
206
+ email_intro: 'Le résultat "%{resource_title}", qui inclut la proposition "%{proposal_title}", est maintenant terminé à %{progress}%. Vous pouvez le voir sur cette page:'
207
+ email_outro: Vous avez reçu cette notification car vous suivez "%{proposal_title}" et cette proposition est incluse dans le résultat "%{resource_title}". Vous pouvez cesser de recevoir des notifications en suivant le lien précédent.
208
+ email_subject: Une mise à jour à %{resource_title} progress
209
+ notification_title: Le résultat <a href="%{resource_path}">%{resource_title}</a>, qui inclut la proposition <a href="%{proposal_path}">%{proposal_title}</a>, est désormais achevé à %{progress}%.
204
210
  metrics:
205
211
  results:
212
+ description: Nombre de résultats de responsabilité générés
206
213
  object: résultats
207
214
  title: Résultats
208
215
  participatory_processes:
@@ -211,8 +218,7 @@ fr:
211
218
  results: Réalisations
212
219
  participatory_spaces:
213
220
  highlighted_results:
214
- results: Réalisations
215
- see_all_results: Voir toutes les réalisations
221
+ see_all: Tout voir (%{count})
216
222
  resource_links:
217
223
  included_projects:
218
224
  result_project: Projets inclus dans cette réalisation
@@ -23,6 +23,7 @@ gl:
23
23
  entry_date: Data
24
24
  models:
25
25
  decidim/accountability/proposal_linked_event: Proposta incluída nun resultado
26
+ decidim/accountability/result_progress_updated_event: Progreso de resultados actualizado
26
27
  activerecord:
27
28
  models:
28
29
  decidim/accountability/result:
@@ -201,8 +202,14 @@ gl:
201
202
  email_outro: Recibiches esta notificación porque estás seguindo "%{proposal_title}". Podes deixar de recibir notificacións seguindo a ligazón anterior.
202
203
  email_subject: Unha actualización a %{proposal_title}
203
204
  notification_title: A proposta <a href="%{proposal_path}">%{proposal_title}</a> foi incluída no <a href="%{resource_path}">%{resource_title}</a> resultado.
205
+ result_progress_updated:
206
+ email_intro: 'O resultado "%{resource_title}", que inclúe a proposta "%{proposal_title}", agora é o %{progress}% completo. Podes velo desde esta páxina:'
207
+ email_outro: Recibiches esta notificación porque estás seguindo "%{proposal_title}" e esta proposta inclúese no resultado "%{resource_title}". Podes deixar de recibir notificacións seguindo a ligazón anterior.
208
+ email_subject: Unha actualización a %{resource_title} avances
209
+ notification_title: O resultado <a href="%{resource_path}">%{resource_title}</a>, que inclúe a proposta <a href="%{proposal_path}">%{proposal_title}</a>, agora é o %{progress}% completo.
204
210
  metrics:
205
211
  results:
212
+ description: Número de resultados de rendemento xerado
206
213
  object: resultados
207
214
  title: Resultados
208
215
  participatory_processes:
@@ -211,8 +218,7 @@ gl:
211
218
  results: Resultados
212
219
  participatory_spaces:
213
220
  highlighted_results:
214
- results: Resultados
215
- see_all_results: Ver todos os resultados
221
+ see_all: Ver todos (%{count})
216
222
  resource_links:
217
223
  included_projects:
218
224
  result_project: Proxectos incluídos neste resultado
@@ -23,6 +23,7 @@ hu:
23
23
  entry_date: Dátum
24
24
  models:
25
25
  decidim/accountability/proposal_linked_event: Az eredményhez kapcsolódó javaslat
26
+ decidim/accountability/result_progress_updated_event: Az eredmények eredményei frissítve
26
27
  activerecord:
27
28
  models:
28
29
  decidim/accountability/result:
@@ -201,8 +202,14 @@ hu:
201
202
  email_outro: Ezt az értesítést azért kaptad, mert követed a(z) "%{proposal_title}" nevű ajánlást. Az értesítéseket a következő linkre kattintva kapcsolhatod ki.
202
203
  email_subject: A %{proposal_title} frissítve lett
203
204
  notification_title: 'A(z) <a href="%{proposal_path}">%{proposal_title}</a> javaslat szerepel ebben a(z) eredményben: <a href="%{resource_path}">%{resource_title}</a>.'
205
+ result_progress_updated:
206
+ email_intro: 'A "%{resource_title}" eredmény, amely magában foglalja az "%{proposal_title}" javaslatot, most már %{progress}% -ban teljes. Láthatja ezt az oldalról:'
207
+ email_outro: Ezt az értesítést azért kapta, mert "%{proposal_title}" -t követ, és ez a javaslat szerepel az "%{resource_title}" eredményben. Leállíthatja az értesítések fogadását az előző link után.
208
+ email_subject: '%{resource_title} frissítés frissítése'
209
+ notification_title: Az eredmény <a href="%{resource_path}">%{resource_title}</a>, amely magában foglalja a <a href="%{proposal_path}">%{proposal_title}</a>javaslatot, most %{progress}%.
204
210
  metrics:
205
211
  results:
212
+ description: Az elszámoltathatósági eredmények száma
206
213
  object: eredmények
207
214
  title: Eredmények
208
215
  participatory_processes:
@@ -211,8 +218,7 @@ hu:
211
218
  results: Eredmények
212
219
  participatory_spaces:
213
220
  highlighted_results:
214
- results: Eredmények
215
- see_all_results: Minden eredmény megtekintése
221
+ see_all: Összes (%{count})
216
222
  resource_links:
217
223
  included_projects:
218
224
  result_project: Ebben az eredményben szereplő projektek
@@ -1,5 +1 @@
1
1
  id:
2
- decidim:
3
- participatory_spaces:
4
- highlighted_results:
5
- see_all_results: Lihat semua hasil
@@ -23,6 +23,7 @@ it:
23
23
  entry_date: Data
24
24
  models:
25
25
  decidim/accountability/proposal_linked_event: Proposta inclusa in un risultato
26
+ decidim/accountability/result_progress_updated_event: Avanzamento dei risultati aggiornato
26
27
  activerecord:
27
28
  models:
28
29
  decidim/accountability/result:
@@ -201,8 +202,14 @@ it:
201
202
  email_outro: Hai ricevuto questa notifica perché stai seguendo "%{proposal_title}". È possibile interrompere la ricezione di notifiche seguendo il collegamento precedente.
202
203
  email_subject: Un aggiornamento a %{proposal_title}
203
204
  notification_title: La proposta <a href="%{proposal_path}">%{proposal_title}</a> è stata inclusa nel risultato <a href="%{resource_path}">%{resource_title}</a>.
205
+ result_progress_updated:
206
+ email_intro: 'Il risultato "%{resource_title}", che include la proposta "%{proposal_title}", è ora completo al %{progress}%. Puoi vederlo da questa pagina:'
207
+ email_outro: Hai ricevuto questa notifica perché stai seguendo "%{proposal_title}" e questa proposta è inclusa nel risultato "%{resource_title}". È possibile interrompere la ricezione di notifiche seguendo il collegamento precedente.
208
+ email_subject: Un aggiornamento a %{resource_title} progressi
209
+ notification_title: Il risultato <a href="%{resource_path}">%{resource_title}</a>, che include la proposta <a href="%{proposal_path}">%{proposal_title}</a>, è ora completo al %{progress}%.
204
210
  metrics:
205
211
  results:
212
+ description: Numero di risultati di responsabilità generati
206
213
  object: risultati
207
214
  title: risultati
208
215
  participatory_processes:
@@ -211,8 +218,7 @@ it:
211
218
  results: risultati
212
219
  participatory_spaces:
213
220
  highlighted_results:
214
- results: Risultati
215
- see_all_results: Tutti i risultati
221
+ see_all: Vedi tutto (%{count})
216
222
  resource_links:
217
223
  included_projects:
218
224
  result_project: Progetti inclusi in questo risultato
@@ -23,6 +23,7 @@ nl:
23
23
  entry_date: Datum
24
24
  models:
25
25
  decidim/accountability/proposal_linked_event: Voorstel opgenomen in een resultaat
26
+ decidim/accountability/result_progress_updated_event: Resultaat voortgang bijgewerkt
26
27
  activerecord:
27
28
  models:
28
29
  decidim/accountability/result:
@@ -201,8 +202,14 @@ nl:
201
202
  email_outro: Je hebt deze melding ontvangen omdat je "%{proposal_title}" volgt. Je kan de meldingen deactiveren door te klikken op de vorige link.
202
203
  email_subject: Een update voor %{proposal_title}
203
204
  notification_title: Het voorstel <a href="%{proposal_path}">%{proposal_title}</a> is opgenomen in het <a href="%{resource_path}">%{resource_title}</a> resultaat.
205
+ result_progress_updated:
206
+ email_intro: 'Het resultaat "%{resource_title}", dat het voorstel "%{proposal_title}" bevat, is nu voor %{progress}% gereed. Je kunt het vanaf deze pagina bekijken:'
207
+ email_outro: U hebt deze melding ontvangen omdat u "%{proposal_title}" volgt en dit voorstel is opgenomen in resultaat "%{resource_title}". Je kunt stoppen met het ontvangen van meldingen na de vorige link.
208
+ email_subject: Een update naar %{resource_title} voortgang
209
+ notification_title: Het resultaat <a href="%{resource_path}">%{resource_title}</a>, inclusief het voorstel <a href="%{proposal_path}">%{proposal_title}</a>, is nu %{progress}% voltooid.
204
210
  metrics:
205
211
  results:
212
+ description: Aantal gegenereerde verantwoordingsresultaten
206
213
  object: uitslagen
207
214
  title: resultaten
208
215
  participatory_processes:
@@ -211,8 +218,7 @@ nl:
211
218
  results: resultaten
212
219
  participatory_spaces:
213
220
  highlighted_results:
214
- results: Resultaten
215
- see_all_results: Bekijk alle resultaten
221
+ see_all: Alles zien (%{count})
216
222
  resource_links:
217
223
  included_projects:
218
224
  result_project: Projecten opgenomen in dit resultaat
@@ -23,6 +23,7 @@ pl:
23
23
  entry_date: Data
24
24
  models:
25
25
  decidim/accountability/proposal_linked_event: Wniosek zawarty w wyniku
26
+ decidim/accountability/result_progress_updated_event: Aktualizacja wyników
26
27
  activerecord:
27
28
  models:
28
29
  decidim/accountability/result:
@@ -205,8 +206,14 @@ pl:
205
206
  email_outro: Otrzymałeś to powiadomienie, ponieważ obserwujesz "%{proposal_title}". Możesz przestać otrzymywać powiadomienia po poprzednim linku.
206
207
  email_subject: Aktualizacja do %{proposal_title}
207
208
  notification_title: Wniosek <a href="%{proposal_path}">%{proposal_title}</a> został uwzględniony w wyniku <a href="%{resource_path}">%{resource_title}</a>.
209
+ result_progress_updated:
210
+ email_intro: 'Wynik "%{resource_title}", który obejmuje propozycję "%{proposal_title}", jest teraz %{progress}% ukończony. Możesz go zobaczyć na tej stronie:'
211
+ email_outro: Otrzymałeś to powiadomienie, ponieważ obserwujesz "%{proposal_title}", a ta propozycja jest uwzględniona w wyniku "%{resource_title}". Możesz przestać otrzymywać powiadomienia po poprzednim linku.
212
+ email_subject: Aktualizacja do %{resource_title} postępów
213
+ notification_title: Wynik <a href="%{resource_path}">%{resource_title}</a>, który obejmuje wniosek <a href="%{proposal_path}">%{proposal_title}</a>, jest teraz ukończony w %{progress}%.
208
214
  metrics:
209
215
  results:
216
+ description: Liczba wygenerowanych wyników rozliczalności
210
217
  object: wyniki
211
218
  title: Wyniki
212
219
  participatory_processes:
@@ -215,8 +222,7 @@ pl:
215
222
  results: Wyniki
216
223
  participatory_spaces:
217
224
  highlighted_results:
218
- results: wyniki
219
- see_all_results: Zobacz wszystkie wyniki
225
+ see_all: Zobacz wszystko (%{count})
220
226
  resource_links:
221
227
  included_projects:
222
228
  result_project: Projekty uwzględnione w tym wyniku
@@ -23,6 +23,7 @@ pt-BR:
23
23
  entry_date: Encontro
24
24
  models:
25
25
  decidim/accountability/proposal_linked_event: Proposta incluída em um resultado
26
+ decidim/accountability/result_progress_updated_event: Progresso do resultado atualizado
26
27
  activerecord:
27
28
  models:
28
29
  decidim/accountability/result:
@@ -201,8 +202,14 @@ pt-BR:
201
202
  email_outro: Você recebeu esta notificação porque está seguindo "%{proposal_title}". Você pode parar de receber notificações após o link anterior.
202
203
  email_subject: Uma atualização para %{proposal_title}
203
204
  notification_title: A proposta <a href="%{proposal_path}">%{proposal_title}</a> foi incluída no resultado <a href="%{resource_path}">%{resource_title}</a>.
205
+ result_progress_updated:
206
+ email_intro: 'O resultado "%{resource_title}", que inclui a proposta "%{proposal_title}", está agora com %{progress}% de conclusão. Você pode ver a partir desta página:'
207
+ email_outro: Você recebeu esta notificação porque está seguindo "%{proposal_title}" e esta proposta está incluída no resultado "%{resource_title}". Você pode parar de receber notificações após o link anterior.
208
+ email_subject: Uma atualização para %{resource_title} progresso
209
+ notification_title: O resultado <a href="%{resource_path}">%{resource_title}</a>, que inclui a proposta <a href="%{proposal_path}">%{proposal_title}</a>, está agora com %{progress}% de conclusão.
204
210
  metrics:
205
211
  results:
212
+ description: Número de resultados de responsabilidade gerados
206
213
  object: resultados
207
214
  title: Resultados
208
215
  participatory_processes:
@@ -211,8 +218,7 @@ pt-BR:
211
218
  results: Resultados
212
219
  participatory_spaces:
213
220
  highlighted_results:
214
- results: Resultados
215
- see_all_results: Ver todos os resultados
221
+ see_all: Ver todos (%{count})
216
222
  resource_links:
217
223
  included_projects:
218
224
  result_project: Projetos incluídos neste resultado
@@ -23,6 +23,7 @@ pt:
23
23
  entry_date: Encontro
24
24
  models:
25
25
  decidim/accountability/proposal_linked_event: Proposta incluída em um resultado
26
+ decidim/accountability/result_progress_updated_event: Progresso do resultado atualizado
26
27
  activerecord:
27
28
  models:
28
29
  decidim/accountability/result:
@@ -201,8 +202,14 @@ pt:
201
202
  email_outro: Você recebeu esta notificação porque está seguindo "%{proposal_title}". Você pode parar de receber notificações após o link anterior.
202
203
  email_subject: Uma atualização para %{proposal_title}
203
204
  notification_title: A proposta <a href="%{proposal_path}">%{proposal_title}</a> foi incluída no resultado <a href="%{resource_path}">%{resource_title}</a>.
205
+ result_progress_updated:
206
+ email_intro: 'O resultado "%{resource_title}", que inclui a proposta "%{proposal_title}", está agora com %{progress}% de conclusão. Você pode ver a partir desta página:'
207
+ email_outro: Você recebeu esta notificação porque está seguindo "%{proposal_title}" e esta proposta está incluída no resultado "%{resource_title}". Você pode parar de receber notificações após o link anterior.
208
+ email_subject: Uma atualização para %{resource_title} progresso
209
+ notification_title: O resultado <a href="%{resource_path}">%{resource_title}</a>, que inclui a proposta <a href="%{proposal_path}">%{proposal_title}</a>, está agora com %{progress}% de conclusão.
204
210
  metrics:
205
211
  results:
212
+ description: Número de resultados de responsabilidade gerados
206
213
  object: resultados
207
214
  title: Resultados
208
215
  participatory_processes:
@@ -211,8 +218,7 @@ pt:
211
218
  results: Resultados
212
219
  participatory_spaces:
213
220
  highlighted_results:
214
- results: Resultados
215
- see_all_results: Ver todos os resultados
221
+ see_all: Ver todos (%{count})
216
222
  resource_links:
217
223
  included_projects:
218
224
  result_project: Projetos incluídos neste resultado
@@ -207,10 +207,6 @@ ru:
207
207
  participatory_process_groups:
208
208
  highlighted_results:
209
209
  results: Итоги
210
- participatory_spaces:
211
- highlighted_results:
212
- results: Итоги
213
- see_all_results: Просмотреть все итоги
214
210
  resource_links:
215
211
  included_projects:
216
212
  result_project: Проекты, включенные в эти итоги
@@ -23,6 +23,7 @@ sv:
23
23
  entry_date: Datum
24
24
  models:
25
25
  decidim/accountability/proposal_linked_event: Förslaget ingår i ett resultat
26
+ decidim/accountability/result_progress_updated_event: Resultatutveckling uppdaterad
26
27
  activerecord:
27
28
  models:
28
29
  decidim/accountability/result:
@@ -201,8 +202,14 @@ sv:
201
202
  email_outro: Du har fått den här meddelandet eftersom du följer "%{proposal_title}". Du kan sluta ta emot meddelanden vid föregående länk.
202
203
  email_subject: En uppdatering till %{proposal_title}
203
204
  notification_title: Förslaget <a href="%{proposal_path}">%{proposal_title}</a> har inkluderats i resultat <a href="%{resource_path}">%{resource_title}</a>.
205
+ result_progress_updated:
206
+ email_intro: 'Resultatet "%{resource_title}", som innehåller förslaget "%{proposal_title}", är nu %{progress}% färdigt. Du kan se den från den här sidan:'
207
+ email_outro: Du har fått den här meddelandet eftersom du följer "%{proposal_title}", och detta förslag ingår i resultatet "%{resource_title}". Du kan sluta ta emot meddelanden efter föregående länk.
208
+ email_subject: En uppdatering till %{resource_title} framsteg
209
+ notification_title: Resultatet <a href="%{resource_path}">%{resource_title}</a>, som innehåller förslaget <a href="%{proposal_path}">%{proposal_title}</a>, är nu %{progress}% färdigt.
204
210
  metrics:
205
211
  results:
212
+ description: Antal resultat som genererats
206
213
  object: resultat
207
214
  title: Resultat
208
215
  participatory_processes:
@@ -211,8 +218,7 @@ sv:
211
218
  results: Resultat
212
219
  participatory_spaces:
213
220
  highlighted_results:
214
- results: Resultat
215
- see_all_results: Se alla resultat
221
+ see_all: Se alla (%{count})
216
222
  resource_links:
217
223
  included_projects:
218
224
  result_project: Projekt som ingår i detta resultat
@@ -1,5 +1 @@
1
1
  tr:
2
- decidim:
3
- participatory_spaces:
4
- highlighted_results:
5
- see_all_results: Tüm sonuçları göster
@@ -207,10 +207,6 @@ uk:
207
207
  participatory_process_groups:
208
208
  highlighted_results:
209
209
  results: Підсумки
210
- participatory_spaces:
211
- highlighted_results:
212
- results: Підсумки
213
- see_all_results: Переглянути всі підсумки
214
210
  resource_links:
215
211
  included_projects:
216
212
  result_project: Проекти, включені до цих підсумків
@@ -44,6 +44,8 @@ Decidim.register_component(:accountability) do |component|
44
44
  .includes(:category, component: { participatory_space: :organization })
45
45
  end
46
46
 
47
+ exports.include_in_open_data = true
48
+
47
49
  exports.serializer Decidim::Accountability::ResultSerializer
48
50
  end
49
51
 
@@ -25,18 +25,7 @@ module Decidim
25
25
 
26
26
  initializer "decidim_accountability.view_hooks" do
27
27
  Decidim.view_hooks.register(:participatory_space_highlighted_elements, priority: Decidim::ViewHooks::LOW_PRIORITY) do |view_context|
28
- published_components = Decidim::Component.where(participatory_space: view_context.current_participatory_space).published
29
- results = Decidim::Accountability::Result.where(component: published_components).order_randomly(rand * 2 - 1).limit(4)
30
-
31
- next unless results.any?
32
-
33
- view_context.extend Decidim::Accountability::ApplicationHelper
34
- view_context.render(
35
- partial: "decidim/participatory_spaces/highlighted_results",
36
- locals: {
37
- results: results
38
- }
39
- )
28
+ view_context.cell("decidim/accountability/highlighted_results", view_context.current_participatory_space)
40
29
  end
41
30
 
42
31
  if defined? Decidim::ParticipatoryProcesses
@@ -57,13 +46,21 @@ module Decidim
57
46
  end
58
47
  end
59
48
 
49
+ initializer "decidim_accountability.add_cells_view_paths" do
50
+ Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Accountability::Engine.root}/app/cells")
51
+ Cell::ViewModel.view_paths << File.expand_path("#{Decidim::Accountability::Engine.root}/app/views")
52
+ end
53
+
60
54
  initializer "decidim_accountability.register_metrics" do
61
- Decidim.metrics_registry.register(
62
- :results,
63
- "Decidim::Accountability::Metrics::ResultsMetricManage",
64
- Decidim::MetricRegistry::NOT_HIGHLIGHTED,
65
- 4
66
- )
55
+ Decidim.metrics_registry.register(:results) do |metric_registry|
56
+ metric_registry.manager_class = "Decidim::Accountability::Metrics::ResultsMetricManage"
57
+
58
+ metric_registry.settings do |settings|
59
+ settings.attribute :highlighted, type: :boolean, default: false
60
+ settings.attribute :scopes, type: :array, default: %w(home)
61
+ settings.attribute :weight, type: :integer, default: 4
62
+ end
63
+ end
67
64
  end
68
65
  end
69
66
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds decidim-accountability version.
5
5
  module Accountability
6
6
  def self.version
7
- "0.15.2"
7
+ "0.16.0"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-accountability
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.2
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-01-08 00:00:00.000000000 Z
13
+ date: 2019-01-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-comments
@@ -18,28 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.15.2
21
+ version: 0.16.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.15.2
28
+ version: 0.16.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: decidim-core
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.15.2
35
+ version: 0.16.0
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.15.2
42
+ version: 0.16.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: kaminari
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -74,98 +74,98 @@ dependencies:
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.15.2
77
+ version: 0.16.0
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - '='
83
83
  - !ruby/object:Gem::Version
84
- version: 0.15.2
84
+ version: 0.16.0
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: decidim-assemblies
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - '='
90
90
  - !ruby/object:Gem::Version
91
- version: 0.15.2
91
+ version: 0.16.0
92
92
  type: :development
93
93
  prerelease: false
94
94
  version_requirements: !ruby/object:Gem::Requirement
95
95
  requirements:
96
96
  - - '='
97
97
  - !ruby/object:Gem::Version
98
- version: 0.15.2
98
+ version: 0.16.0
99
99
  - !ruby/object:Gem::Dependency
100
100
  name: decidim-comments
101
101
  requirement: !ruby/object:Gem::Requirement
102
102
  requirements:
103
103
  - - '='
104
104
  - !ruby/object:Gem::Version
105
- version: 0.15.2
105
+ version: 0.16.0
106
106
  type: :development
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - '='
111
111
  - !ruby/object:Gem::Version
112
- version: 0.15.2
112
+ version: 0.16.0
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: decidim-dev
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - '='
118
118
  - !ruby/object:Gem::Version
119
- version: 0.15.2
119
+ version: 0.16.0
120
120
  type: :development
121
121
  prerelease: false
122
122
  version_requirements: !ruby/object:Gem::Requirement
123
123
  requirements:
124
124
  - - '='
125
125
  - !ruby/object:Gem::Version
126
- version: 0.15.2
126
+ version: 0.16.0
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: decidim-meetings
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
131
  - - '='
132
132
  - !ruby/object:Gem::Version
133
- version: 0.15.2
133
+ version: 0.16.0
134
134
  type: :development
135
135
  prerelease: false
136
136
  version_requirements: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - '='
139
139
  - !ruby/object:Gem::Version
140
- version: 0.15.2
140
+ version: 0.16.0
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: decidim-participatory_processes
143
143
  requirement: !ruby/object:Gem::Requirement
144
144
  requirements:
145
145
  - - '='
146
146
  - !ruby/object:Gem::Version
147
- version: 0.15.2
147
+ version: 0.16.0
148
148
  type: :development
149
149
  prerelease: false
150
150
  version_requirements: !ruby/object:Gem::Requirement
151
151
  requirements:
152
152
  - - '='
153
153
  - !ruby/object:Gem::Version
154
- version: 0.15.2
154
+ version: 0.16.0
155
155
  - !ruby/object:Gem::Dependency
156
156
  name: decidim-proposals
157
157
  requirement: !ruby/object:Gem::Requirement
158
158
  requirements:
159
159
  - - '='
160
160
  - !ruby/object:Gem::Version
161
- version: 0.15.2
161
+ version: 0.16.0
162
162
  type: :development
163
163
  prerelease: false
164
164
  version_requirements: !ruby/object:Gem::Requirement
165
165
  requirements:
166
166
  - - '='
167
167
  - !ruby/object:Gem::Version
168
- version: 0.15.2
168
+ version: 0.16.0
169
169
  description: An accountability component for decidim's participatory spaces.
170
170
  email:
171
171
  - josepjaume@gmail.com
@@ -189,6 +189,10 @@ files:
189
189
  - app/assets/stylesheets/decidim/accountability/accountability/_lines_breadcrumb.scss
190
190
  - app/assets/stylesheets/decidim/accountability/accountability/_results.scss
191
191
  - app/assets/stylesheets/decidim/accountability/accountability/_versions.scss
192
+ - app/cells/decidim/accountability/highlighted_results/show.erb
193
+ - app/cells/decidim/accountability/highlighted_results_cell.rb
194
+ - app/cells/decidim/accountability/highlighted_results_for_component/show.erb
195
+ - app/cells/decidim/accountability/highlighted_results_for_component_cell.rb
192
196
  - app/cells/decidim/accountability/result_activity_cell.rb
193
197
  - app/commands/decidim/accountability/admin/create_result.rb
194
198
  - app/commands/decidim/accountability/admin/create_status.rb
@@ -206,6 +210,7 @@ files:
206
210
  - app/controllers/decidim/accountability/results_controller.rb
207
211
  - app/controllers/decidim/accountability/versions_controller.rb
208
212
  - app/events/decidim/accountability/proposal_linked_event.rb
213
+ - app/events/decidim/accountability/result_progress_updated_event.rb
209
214
  - app/forms/decidim/accountability/admin/result_form.rb
210
215
  - app/forms/decidim/accountability/admin/status_form.rb
211
216
  - app/forms/decidim/accountability/admin/timeline_entry_form.rb
@@ -261,7 +266,6 @@ files:
261
266
  - app/views/decidim/accountability/versions/show.html.erb
262
267
  - app/views/decidim/participatory_processes/participatory_process_groups/_highlighted_results.html.erb
263
268
  - app/views/decidim/participatory_processes/participatory_process_groups/_result.html.erb
264
- - app/views/decidim/participatory_spaces/_highlighted_results.html.erb
265
269
  - app/views/decidim/participatory_spaces/_result.html.erb
266
270
  - config/locales/ca.yml
267
271
  - config/locales/de.yml
@@ -323,7 +327,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
323
327
  version: '0'
324
328
  requirements: []
325
329
  rubyforge_project:
326
- rubygems_version: 2.7.7
330
+ rubygems_version: 2.7.6
327
331
  signing_key:
328
332
  specification_version: 4
329
333
  summary: Decidim accountability module
@@ -1,14 +0,0 @@
1
- <% if results.any? %>
2
- <section class="section row collapse highlighted_results">
3
- <h4 class="section-heading">
4
- <%= t(".results") %> <a href="<%= main_component_path(results.first.component) %>" class="text-small"><%= t(".see_all_results") %></a>
5
- </h4>
6
- <div class="row">
7
- <div class="columns accountability">
8
- <div class="card card--action card--list">
9
- <%= render partial: "decidim/participatory_spaces/result", collection: results %>
10
- </div>
11
- </div>
12
- </div>
13
- </section>
14
- <% end %>