decidim-proposals 0.31.0 → 0.31.1
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 +4 -4
- data/app/cells/decidim/proposals/proposal_g/show.erb +1 -1
- data/app/cells/decidim/proposals/proposal_vote/show.erb +2 -2
- data/app/models/decidim/proposals/proposal.rb +2 -2
- data/app/packs/stylesheets/decidim/proposals/proposals.scss +1 -1
- data/app/presenters/decidim/proposals/proposal_presenter.rb +0 -1
- data/app/views/decidim/proposals/proposals/_votes_count.html.erb +1 -1
- data/config/locales/cs.yml +6 -0
- data/config/locales/de.yml +2 -2
- data/config/locales/eu.yml +6 -6
- data/config/locales/pt-BR.yml +470 -1
- data/config/locales/ro-RO.yml +8 -0
- data/config/locales/ru.yml +4 -0
- data/config/locales/sv.yml +37 -24
- data/lib/decidim/proposals/component.rb +12 -0
- data/lib/decidim/proposals/seeds.rb +1 -1
- data/lib/decidim/proposals/version.rb +1 -1
- metadata +20 -20
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be7a2b8e7861c220b8ab1b1bff9145e8f985e9a912036c4cf6e01196446deab2
|
|
4
|
+
data.tar.gz: a01f558a091e5714c506289ad89204b8dfe5f02c10304e57b97024dc717402f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aab0f50962aacf6f619e1271632e2d772f493d1da9a5e5339ef382d9d85846a6b2a67cfe3dcc258b5197097f14474d5befdadf8542229db3f42cd562af5dcaf0
|
|
7
|
+
data.tar.gz: 865b61a13d3c090276e0b7c19e272d6f501665382a2f58e0770832a91fdc1227c26d7df21a7ea7d2cf57df25087da06a24810f32a6824a1f6234b4e140903f62
|
|
@@ -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:
|
|
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
|
|
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 %>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<% end %>
|
|
16
16
|
<% end %>
|
|
17
17
|
|
|
18
|
-
<% button_classes = "button
|
|
18
|
+
<% button_classes = "button button__sm button__secondary w-full" %>
|
|
19
19
|
|
|
20
20
|
<% unless resource.rejected? || resource.withdrawn? %>
|
|
21
21
|
<% if component_settings.participatory_texts_enabled? && from_proposals_list %>
|
|
@@ -174,8 +174,8 @@ module Decidim
|
|
|
174
174
|
A: :title,
|
|
175
175
|
datetime: :published_at
|
|
176
176
|
},
|
|
177
|
-
index_on_create: ->(proposal) { proposal.
|
|
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
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
@apply md:gap-4;
|
|
218
218
|
|
|
219
219
|
.card__proposals-item {
|
|
220
|
-
@apply flex flex-col justify-between border-solid border-[#D3D5D9] border rounded;
|
|
220
|
+
@apply flex flex-col mt-6 justify-between border-solid border-[#D3D5D9] border rounded;
|
|
221
221
|
|
|
222
222
|
.card__grid {
|
|
223
223
|
@apply mb-2.5 md:mb-0 flex-1 justify-between;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<% if !current_settings.votes_hidden? && (current_component.participatory_space.can_participate?(current_user) || current_user
|
|
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 %>
|
data/config/locales/cs.yml
CHANGED
|
@@ -151,6 +151,10 @@ cs:
|
|
|
151
151
|
values:
|
|
152
152
|
state_not_published: Nezodpovězeno
|
|
153
153
|
state_published: Odpovězeno
|
|
154
|
+
search_placeholder:
|
|
155
|
+
id_string_or_title_cont: Hledat %{collection} podle ID nebo názvu
|
|
156
|
+
tooltips:
|
|
157
|
+
deleted_proposals_info: Tento návrh nelze odstranit
|
|
154
158
|
application:
|
|
155
159
|
geocoding:
|
|
156
160
|
not_configured: Geocoding není nakonfigurován!
|
|
@@ -334,6 +338,8 @@ cs:
|
|
|
334
338
|
email_outro: Toto oznámení jste obdrželi, protože jste sledovali %{participatory_space_title}. Po předchozím propojení můžete přestat přijímat oznámení.
|
|
335
339
|
email_subject: Návrhy jsou nyní k dispozici v %{participatory_space_title}
|
|
336
340
|
notification_title: Nyní můžete předložit <a href="%{resource_path}">nové návrhy</a> v <a href="%{participatory_space_url}">%{participatory_space_title}</a>.
|
|
341
|
+
liking_enabled:
|
|
342
|
+
email_outro: Obdrželi jste toto oznámení, protože sledujete %{participatory_space_title}. Můžete přestat přijímat oznámení na předchozím odkazu.
|
|
337
343
|
proposal_mentioned:
|
|
338
344
|
email_intro: Váš návrh "%{mentioned_proposal_title}" byl zmíněn <a href="%{resource_url}">v této skupině</a> v komentářích.
|
|
339
345
|
email_outro: Toto oznámení jste obdrželi, protože jste autorem položky "%{resource_title}".
|
data/config/locales/de.yml
CHANGED
data/config/locales/eu.yml
CHANGED
|
@@ -389,7 +389,7 @@ eu:
|
|
|
389
389
|
badges:
|
|
390
390
|
accepted_proposals:
|
|
391
391
|
conditions:
|
|
392
|
-
- Aukeratu zure intereseko partaidetza
|
|
392
|
+
- Aukeratu zure intereseko partaidetza-espazioa proposamenak bidaltzeko
|
|
393
393
|
- Egin daitezkeen proposamenak egiten saiatu. Horrela onartuak izateko aukera gehiago dute.
|
|
394
394
|
description: Garaikur hau proposamen berriekin aktiboki parte hartzen duzunean eta horiek onartzen direnean ematen da
|
|
395
395
|
description_another: Parte-hartzaile honek %{score} proposamen onartu ditu.
|
|
@@ -411,7 +411,7 @@ eu:
|
|
|
411
411
|
unearned_own: Oraindik ez duzu proposamenik bozkatu.
|
|
412
412
|
proposals:
|
|
413
413
|
conditions:
|
|
414
|
-
- Aukeratu zure interesekoa den
|
|
414
|
+
- Aukeratu zure interesekoa den partaidetza-espazioa, gaitutako proposamenak aurkeztuta
|
|
415
415
|
- Sortu beste proposamen bat
|
|
416
416
|
description: Garaikur hau proposamen berriekin modu aktiboan parte hartzen duzunean ematen da.
|
|
417
417
|
description_another: Parte-hartzaile honek %{score} proposamen sortu ditu.
|
|
@@ -603,7 +603,7 @@ eu:
|
|
|
603
603
|
destroy:
|
|
604
604
|
success: Egoera behar bezala ezabatua
|
|
605
605
|
edit:
|
|
606
|
-
title:
|
|
606
|
+
title: Egoera editatu
|
|
607
607
|
update: Eguneratu
|
|
608
608
|
form:
|
|
609
609
|
preview: Aurrebistaratu
|
|
@@ -724,7 +724,7 @@ eu:
|
|
|
724
724
|
accepted: Onartuta
|
|
725
725
|
evaluating: Ebaluatzen
|
|
726
726
|
not_answered: Erantzun gabe
|
|
727
|
-
rejected:
|
|
727
|
+
rejected: Bazteruta
|
|
728
728
|
withdrawn: Kendu
|
|
729
729
|
application_helper:
|
|
730
730
|
filter_origin_values:
|
|
@@ -1003,7 +1003,7 @@ eu:
|
|
|
1003
1003
|
already_voted_hover: Kendu babesa
|
|
1004
1004
|
maximum_votes_reached: Babesen muga lortua
|
|
1005
1005
|
no_votes_remaining: Ez da gelditzen babesik
|
|
1006
|
-
vote:
|
|
1006
|
+
vote: Babesa eman
|
|
1007
1007
|
votes_blocked: Eman botoa
|
|
1008
1008
|
votes_count:
|
|
1009
1009
|
count:
|
|
@@ -1026,7 +1026,7 @@ eu:
|
|
|
1026
1026
|
title: Parte hartzeko arauak
|
|
1027
1027
|
vote_limit:
|
|
1028
1028
|
description: '%{limit} proposameni eman ahal diozu babesa.'
|
|
1029
|
-
votes:
|
|
1029
|
+
votes: '%{number} babes emateke'
|
|
1030
1030
|
wizard_aside:
|
|
1031
1031
|
back: Atzera
|
|
1032
1032
|
back_from_step_1: Itzuli proposamenetara
|