decidim-proposals 0.30.4 → 0.30.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bec3bcafd4f181e4b4cec5b61945d0f998fc20252811ba408a5f96422ebc0dd2
4
- data.tar.gz: 074a714a4f84e41059ac013af05982e4d195b918f1bb055b34132d922b69c4b6
3
+ metadata.gz: 21c7daea853c31656cf5e7ec36f653d575c1499a188384e5bfa27c7b55a2d9bb
4
+ data.tar.gz: 915c7d553955d0ad6ace8b3be5c70e92cd3e512643a79894137583c71ceccc0b
5
5
  SHA512:
6
- metadata.gz: 565f8c2c2661bf620aa3d35b8cf82977b0e95e20e0c1d27e30277eadec7cd05e457a8ea26685d056adea7fdb68cf10400147a05b88d2119c8d1d1a54e5188de6
7
- data.tar.gz: 3d181e654fe81359840d6cf0d73a4835ca9f23d376dbf301142a60e5f2c1b93f49613a968f6a70885a3fc5b3efdde3efe28bbb7f451e8d50c4026490988197e3
6
+ metadata.gz: 1aa5798f0f17d8c8931f12dbe9fdcd9d65c3b7741d0c8b648ae3be877d5cb1168675f05bfa18259542634f6a5e6701158b2917ad4493e68ba19346a6c723d28d
7
+ data.tar.gz: 234d7233d34868466eb05ed82ebda3a54f7b496bc4931933392baa4b3e5c96f761a173000ca6bfbf4bdba051b40a15fe82c6dcbd06164162226c74d6a96a4e57
@@ -2,7 +2,7 @@
2
2
  <%= link_to resource_path, class: classes[:default], id: resource_id do %>
3
3
  <div class="<%= classes[:img] %>">
4
4
  <% if has_image? %>
5
- <%= image_tag resource_image_path, alt: alt_title %>
5
+ <%= image_tag resource_image_path, alt: "" %>
6
6
  <% else %>
7
7
  <%= external_icon "media/images/proposal-placeholder-card-g.svg", class: "card__proposal-placeholder-g" %>
8
8
  <% end %>
@@ -1,4 +1,4 @@
1
- <% if !current_settings.votes_hidden? && (current_component.participatory_space.can_participate?(current_user) || current_user.admin?) %>
1
+ <% if !current_settings.votes_hidden? && (current_component.participatory_space.can_participate?(current_user) || current_user&.admin?) %>
2
2
  <% if component_settings.participatory_texts_enabled? && from_proposals_list %>
3
3
  <%= render partial: "decidim/proposals/proposals/participatory_texts/proposal_votes_count", locals: { proposal: resource, from_proposals_list: true } %>
4
4
  <% else %>
@@ -174,8 +174,8 @@ module Decidim
174
174
  A: :title,
175
175
  datetime: :published_at
176
176
  },
177
- index_on_create: ->(proposal) { proposal.official? },
178
- index_on_update: ->(proposal) { proposal.visible? })
177
+ index_on_create: ->(proposal) { proposal.visible? && proposal.component&.published? },
178
+ index_on_update: ->(proposal) { proposal.visible? && proposal.component&.published? })
179
179
 
180
180
  def self.log_presenter_class_for(_log)
181
181
  Decidim::Proposals::AdminLog::ProposalPresenter
@@ -8,7 +8,6 @@ module Decidim
8
8
  class ProposalPresenter < Decidim::ResourcePresenter
9
9
  include Rails.application.routes.mounted_helpers
10
10
  include ActionView::Helpers::UrlHelper
11
- include Decidim::SanitizeHelper
12
11
 
13
12
  def author
14
13
  @author ||= if official?
@@ -1,4 +1,4 @@
1
- <% if !current_settings.votes_hidden? && (current_component.participatory_space.can_participate?(current_user) || current_user.admin?) %>
1
+ <% if !current_settings.votes_hidden? && (current_component.participatory_space.can_participate?(current_user) || current_user&.admin?) %>
2
2
  <% if component_settings.participatory_texts_enabled? && from_proposals_list %>
3
3
  <%= render partial: "decidim/proposals/proposals/participatory_texts/proposal_votes_count", locals: { proposal:, from_proposals_list: true } %>
4
4
  <% else %>
@@ -115,8 +115,8 @@ de:
115
115
  one: Anmerkung
116
116
  other: Anmerkungen
117
117
  decidim/proposals/proposal_vote:
118
- one: Abstimmung
119
- other: Abstimmungen
118
+ one: Stimme
119
+ other: Stimmen
120
120
  decidim:
121
121
  admin:
122
122
  admin_log:
@@ -385,7 +385,7 @@ eu:
385
385
  badges:
386
386
  accepted_proposals:
387
387
  conditions:
388
- - Aukeratu zure intereseko partaidetza espazioa proposamenak bidaltzeko
388
+ - Aukeratu zure intereseko partaidetza-espazioa proposamenak bidaltzeko
389
389
  - Egin daitezkeen proposamenak egiten saiatu. Horrela onartuak izateko aukera gehiago dute.
390
390
  description: Garaikur hau proposamen berriekin aktiboki parte hartzen duzunean eta horiek onartzen direnean ematen da
391
391
  description_another: Parte-hartzaile honek %{score} proposamen onartu ditu.
@@ -407,7 +407,7 @@ eu:
407
407
  unearned_own: Oraindik ez duzu proposamenik bozkatu.
408
408
  proposals:
409
409
  conditions:
410
- - Aukeratu zure interesekoa den parte hartzeko espazioa, gaitutako proposamenak aurkeztuta
410
+ - Aukeratu zure interesekoa den partaidetza-espazioa, gaitutako proposamenak aurkeztuta
411
411
  - Sortu beste proposamen bat
412
412
  description: Garaikur hau proposamen berriekin modu aktiboan parte hartzen duzunean ematen da.
413
413
  description_another: Parte-hartzaile honek %{score} proposamen sortu ditu.
@@ -609,7 +609,7 @@ eu:
609
609
  destroy:
610
610
  success: Egoera behar bezala ezabatua
611
611
  edit:
612
- title: Editatu egoera
612
+ title: Egoera editatu
613
613
  update: Eguneratu
614
614
  form:
615
615
  preview: Aurrebistaratu
@@ -732,7 +732,7 @@ eu:
732
732
  accepted: Onartuta
733
733
  evaluating: Ebaluatzen
734
734
  not_answered: Erantzun gabe
735
- rejected: Ukatua
735
+ rejected: Bazteruta
736
736
  withdrawn: Kendu
737
737
  application_helper:
738
738
  filter_origin_values:
@@ -1012,7 +1012,7 @@ eu:
1012
1012
  already_voted_hover: Kendu babesa
1013
1013
  maximum_votes_reached: Babesen muga lortua
1014
1014
  no_votes_remaining: Ez da gelditzen babesik
1015
- vote: Alde egin
1015
+ vote: Babesa eman
1016
1016
  votes_blocked: Eman botoa
1017
1017
  votes_count:
1018
1018
  count:
@@ -1035,7 +1035,7 @@ eu:
1035
1035
  title: Parte hartzeko arauak
1036
1036
  vote_limit:
1037
1037
  description: '%{limit} proposameni eman ahal diozu babesa.'
1038
- votes: Gainerako %{number} babes
1038
+ votes: '%{number} boto emateke'
1039
1039
  wizard_aside:
1040
1040
  back: Atzera
1041
1041
  back_from_step_1: Itzuli proposamenetara
@@ -55,10 +55,12 @@ it:
55
55
  attributes:
56
56
  base:
57
57
  not_official: Non sono ufficiali
58
+ voted: Hanno ricevuto supporto o appoggi
58
59
  proposals_split:
59
60
  attributes:
60
61
  base:
61
62
  not_official: Non sono ufficiali
63
+ voted: Hanno ricevuto supporto o appoggi
62
64
  models:
63
65
  decidim/proposals/creation_enabled_event: Creazione della proposta abilitata
64
66
  decidim/proposals/endorsing_enabled_event: Approvazione della proposta abilitata
@@ -194,6 +196,7 @@ it:
194
196
  email_intro: 'Puoi sostenere proposte in %{participatory_space_title}! Inizia a partecipare a questa pagina:'
195
197
  email_outro: Hai ricevuto questa notifica perché stai seguendo %{participatory_space_title}. È possibile interrompere la ricezione di notifiche facendo click su pulsante Smetti di seguire nella pagina del processo che stai seguendo.
196
198
  email_subject: L'approvazione delle proposte è iniziata per %{participatory_space_title}
199
+ notification_title: Da adesso puoi iniziare <a href="%{resource_path}">a sottoscrivere proposte</a> su <a href="%{participatory_space_url}">%{participatory_space_title}</a>.
197
200
  proposal_mentioned:
198
201
  email_intro: La tua proposta%{mentioned_proposal_title}" è stata menzionata <a href="%{resource_url}">in questo spazio</a> nei commenti.
199
202
  email_outro: Hai ricevuto questa notifica perché sei un autore di "%{resource_title}".
@@ -251,6 +254,8 @@ it:
251
254
  object: proposte
252
255
  title: Proposte
253
256
  votes:
257
+ description: Numero di voti sulle proposte
258
+ object: voti
254
259
  title: Voti
255
260
  participatory_spaces:
256
261
  highlighted_proposals:
@@ -327,6 +332,7 @@ it:
327
332
  publish: Pubblica
328
333
  publish_answers: Pubblica risposte
329
334
  select_component: Seleziona un componente
335
+ select_valuators: Seleziona uno o più valutatori
330
336
  selected: selezionato
331
337
  split: Proposte divise
332
338
  split_button: Diviso
@@ -362,6 +368,11 @@ it:
362
368
  proposals_splits:
363
369
  create:
364
370
  success: Suddiviso con successo le proposte in nuove.
371
+ valuation_assignments:
372
+ create:
373
+ success: Proposte assegnate ad un valutatore con successo.
374
+ delete:
375
+ success: Valutatore disassegnato dalle proposte con successo.
365
376
  admin_log:
366
377
  proposal:
367
378
  answer: "%{user_name} ha risposto alla proposta %{resource_name} sullo spazio %{space_name}"