decidim-results 0.5.1 → 0.6.0
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/assets/images/decidim/results/icon.svg +3 -1
- data/app/forms/decidim/results/admin/result_form.rb +1 -1
- data/app/models/decidim/results/result.rb +5 -9
- data/app/views/decidim/results/admin/results/_form.html.erb +3 -3
- data/app/views/decidim/results/results/_filters.html.erb +1 -1
- data/app/views/decidim/results/results/show.html.erb +1 -0
- data/config/locales/ca.yml +3 -2
- data/config/locales/en.yml +0 -2
- data/config/locales/es.yml +4 -3
- data/config/locales/eu.yml +5 -4
- data/config/locales/fi.yml +8 -2
- data/config/locales/fr.yml +5 -4
- data/config/locales/it.yml +4 -2
- data/config/locales/nl.yml +75 -0
- data/config/locales/pl.yml +76 -0
- data/config/locales/uk.yml +82 -0
- data/lib/decidim/results/feature.rb +5 -5
- data/lib/decidim/results/test/factories.rb +2 -2
- metadata +31 -17
- data/config/i18n-tasks.yml +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 59d403b6d1326a659d1aeebe980b64b9d0769ce9
|
4
|
+
data.tar.gz: c418b06f67518df4b0f26311a53a9bc0688696db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d91bf781eb42acf696d076fd91751bb3925e42cfbceef6d21ca0222d8367767215300bf3db9538e3edb2feb6cc02a10083162c83f986322d31ec4db518ddc17
|
7
|
+
data.tar.gz: 84f9de078b878f443bf4fe93fe0ba4b230bddc33cf327f1a9c60049ff7266d50a0a4e9e10dc0974cd3a842380fa75bccbd38d2e91a5b8f706980561ca78cd1a2
|
@@ -1 +1,3 @@
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35 35"
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35 35">
|
2
|
+
<path d="M17.5 35A17.5 17.5 0 1 1 35 17.5 17.52 17.52 0 0 1 17.5 35zm0-33.06A15.56 15.56 0 1 0 33.06 17.5 15.57 15.57 0 0 0 17.5 1.94zM16 22.48a1 1 0 0 1-.68-.28l-4.08-4a1 1 0 0 1 1.36-1.39l3.4 3.3 8-8.8a1 1 0 0 1 1.44 1.31l-8.69 9.55a1 1 0 0 1-.69.32z"/>
|
3
|
+
</svg>
|
@@ -10,6 +10,7 @@ module Decidim
|
|
10
10
|
include Decidim::HasScope
|
11
11
|
include Decidim::HasCategory
|
12
12
|
include Decidim::HasReference
|
13
|
+
include Decidim::Followable
|
13
14
|
include Decidim::Comments::Commentable
|
14
15
|
|
15
16
|
feature_manifest_name "results"
|
@@ -21,7 +22,7 @@ module Decidim
|
|
21
22
|
|
22
23
|
# Public: Overrides the `accepts_new_comments?` Commentable concern method.
|
23
24
|
def accepts_new_comments?
|
24
|
-
commentable? && !feature.
|
25
|
+
commentable? && !feature.current_settings.comments_blocked
|
25
26
|
end
|
26
27
|
|
27
28
|
# Public: Overrides the `comments_have_alignment?` Commentable concern method.
|
@@ -34,14 +35,9 @@ module Decidim
|
|
34
35
|
true
|
35
36
|
end
|
36
37
|
|
37
|
-
# Public:
|
38
|
-
def
|
39
|
-
|
40
|
-
end
|
41
|
-
|
42
|
-
# Public: Overrides the `users_to_notify` Notifiable concern method.
|
43
|
-
def users_to_notify
|
44
|
-
Decidim::Admin::ProcessAdmins.for(feature.participatory_process)
|
38
|
+
# Public: Override Commentable concern method `users_to_notify_on_comment_created`
|
39
|
+
def users_to_notify_on_comment_created
|
40
|
+
(followers | feature.participatory_space.admins).uniq
|
45
41
|
end
|
46
42
|
end
|
47
43
|
end
|
@@ -12,14 +12,14 @@
|
|
12
12
|
<%= form.translated :editor, :description %>
|
13
13
|
</div>
|
14
14
|
|
15
|
-
<% if
|
15
|
+
<% if current_participatory_space.has_subscopes? %>
|
16
16
|
<div class="row column">
|
17
|
-
<%= form.scopes_select :decidim_scope_id, prompt: I18n.t("decidim.scopes.global"), remote_path: decidim.scopes_search_path(root:
|
17
|
+
<%= form.scopes_select :decidim_scope_id, prompt: I18n.t("decidim.scopes.global"), remote_path: decidim.scopes_search_path(root: current_participatory_space.scope) %>
|
18
18
|
</div>
|
19
19
|
<% end %>
|
20
20
|
|
21
21
|
<div class="row column">
|
22
|
-
<%= form.categories_select :decidim_category_id,
|
22
|
+
<%= form.categories_select :decidim_category_id, current_participatory_space.categories, include_blank: true, disable_parents: false %>
|
23
23
|
</div>
|
24
24
|
<div class="row column">
|
25
25
|
<% if @form.proposals %>
|
@@ -12,7 +12,7 @@
|
|
12
12
|
</div>
|
13
13
|
</div>
|
14
14
|
|
15
|
-
<% if
|
15
|
+
<% if current_participatory_space.has_subscopes? %>
|
16
16
|
<%= form.scopes_select :scope_id, legend_title: t(".scopes"), label: false, prompt: t('.scope_prompt'), remote_path: decidim.scopes_search_path(include_root: true), multiple: true %>
|
17
17
|
<% end %>
|
18
18
|
|
@@ -38,6 +38,7 @@
|
|
38
38
|
</div>
|
39
39
|
</div>
|
40
40
|
</div>
|
41
|
+
<%= render partial: "decidim/shared/follow_button", locals: { followable: result } %>
|
41
42
|
<%= feature_reference(result) %>
|
42
43
|
<%= render partial: "decidim/shared/share_modal" %>
|
43
44
|
<%= embed_modal_for result_result_widget_url(result, format: :js) %>
|
data/config/locales/ca.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
ca:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -13,14 +14,14 @@ ca:
|
|
13
14
|
name: Resultats
|
14
15
|
settings:
|
15
16
|
global:
|
17
|
+
announcement: Avís
|
16
18
|
comments_enabled: Comentaris habilitats
|
17
19
|
step:
|
20
|
+
announcement: Avís
|
18
21
|
comments_blocked: Comentaris bloquejats
|
19
22
|
resource_links:
|
20
23
|
included_proposals:
|
21
24
|
result_proposals: Propostes incloses en aquest resultat
|
22
|
-
meetings_through_proposals:
|
23
|
-
result_meetings: Trobades relacionades
|
24
25
|
results:
|
25
26
|
actions:
|
26
27
|
confirm_destroy: Segur que vols suprimir aquest resultat?
|
data/config/locales/en.yml
CHANGED
data/config/locales/es.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
---
|
1
2
|
es:
|
2
3
|
activemodel:
|
3
4
|
attributes:
|
@@ -13,17 +14,17 @@ es:
|
|
13
14
|
name: Resultados
|
14
15
|
settings:
|
15
16
|
global:
|
17
|
+
announcement: Aviso
|
16
18
|
comments_enabled: Comentarios habilitados
|
17
19
|
step:
|
20
|
+
announcement: Aviso
|
18
21
|
comments_blocked: Comentarios bloqueados
|
19
22
|
resource_links:
|
20
23
|
included_proposals:
|
21
24
|
result_proposals: Propuestas incluidas en este resultado
|
22
|
-
meetings_through_proposals:
|
23
|
-
result_meetings: Encuentros relacionados
|
24
25
|
results:
|
25
26
|
actions:
|
26
|
-
confirm_destroy:
|
27
|
+
confirm_destroy: "¿Está seguro de que quiere eliminar este resultado?"
|
27
28
|
destroy: Borrar
|
28
29
|
edit: Editar
|
29
30
|
new: Nuevo
|
data/config/locales/eu.yml
CHANGED
@@ -6,21 +6,21 @@ eu:
|
|
6
6
|
decidim_scope_id: Esparrua
|
7
7
|
description: Deskribapena
|
8
8
|
proposal_ids: Sartutako proposamenak
|
9
|
-
title:
|
9
|
+
title: Titulua
|
10
10
|
decidim:
|
11
11
|
features:
|
12
12
|
results:
|
13
13
|
name: Emaitzak
|
14
14
|
settings:
|
15
15
|
global:
|
16
|
+
announcement: Oharra
|
16
17
|
comments_enabled: Iruzkinak gaituta
|
17
18
|
step:
|
19
|
+
announcement: Oharra
|
18
20
|
comments_blocked: Iruzkinak blokeatuta
|
19
21
|
resource_links:
|
20
22
|
included_proposals:
|
21
23
|
result_proposals: Emaitza honetan jasotako proposamenak
|
22
|
-
meetings_through_proposals:
|
23
|
-
result_meetings: Proposamenarekin lotutako topaketak
|
24
24
|
results:
|
25
25
|
actions:
|
26
26
|
confirm_destroy: Ziur zaude emaitza hau ezabatu nahi duzula?
|
@@ -53,7 +53,7 @@ eu:
|
|
53
53
|
models:
|
54
54
|
result:
|
55
55
|
fields:
|
56
|
-
title:
|
56
|
+
title: Titulua
|
57
57
|
results:
|
58
58
|
count:
|
59
59
|
results_count:
|
@@ -62,6 +62,7 @@ eu:
|
|
62
62
|
filters:
|
63
63
|
category: Kategoria
|
64
64
|
category_prompt: Aukeratu kategoria bat
|
65
|
+
scope_prompt: Hautatu esparrua
|
65
66
|
scopes: Esparruak
|
66
67
|
search: Bilatu
|
67
68
|
filters_small_view:
|
data/config/locales/fi.yml
CHANGED
@@ -13,19 +13,21 @@ fi:
|
|
13
13
|
name: Tulokset
|
14
14
|
settings:
|
15
15
|
global:
|
16
|
+
announcement: Ilmoitus
|
16
17
|
comments_enabled: Kommentointi sallittu
|
17
18
|
step:
|
19
|
+
announcement: Ilmoitus
|
18
20
|
comments_blocked: Kommentointi estetty
|
19
21
|
resource_links:
|
20
22
|
included_proposals:
|
21
23
|
result_proposals: Projektit, jotka sisältyvät tähän tulokseen
|
22
|
-
meetings_through_proposals:
|
23
|
-
result_meetings: Liittyvät tapaamiset
|
24
24
|
results:
|
25
25
|
actions:
|
26
26
|
confirm_destroy: Oletko varma, että haluat poistaa tämän tuloksen?
|
27
27
|
destroy: Poista
|
28
28
|
edit: Muokkaa
|
29
|
+
new: Uusi
|
30
|
+
preview: Esikatsele
|
29
31
|
title: Toiminnot
|
30
32
|
admin:
|
31
33
|
models:
|
@@ -39,9 +41,11 @@ fi:
|
|
39
41
|
success: Tulos poistettu onnistuneesti
|
40
42
|
edit:
|
41
43
|
title: Muokkaa tulosta
|
44
|
+
update: Päivitä
|
42
45
|
index:
|
43
46
|
title: Tulokset
|
44
47
|
new:
|
48
|
+
create: Luo
|
45
49
|
title: Uusi tulos
|
46
50
|
update:
|
47
51
|
invalid: Tuloksen päivityksessä tapahtui virhe
|
@@ -57,6 +61,8 @@ fi:
|
|
57
61
|
other: "%{count} tulosta"
|
58
62
|
filters:
|
59
63
|
category: Kategoria
|
64
|
+
category_prompt: Valitse kategoria
|
65
|
+
scope_prompt: Valitse konteksti
|
60
66
|
scopes: Konteksti
|
61
67
|
search: Haku
|
62
68
|
filters_small_view:
|
data/config/locales/fr.yml
CHANGED
@@ -13,14 +13,14 @@ fr:
|
|
13
13
|
name: Résultats
|
14
14
|
settings:
|
15
15
|
global:
|
16
|
+
announcement: Annonce
|
16
17
|
comments_enabled: Commentaires activés
|
17
18
|
step:
|
19
|
+
announcement: Annonce
|
18
20
|
comments_blocked: Commentaires bloqués
|
19
21
|
resource_links:
|
20
22
|
included_proposals:
|
21
23
|
result_proposals: Propositions incluses dans ce résultat
|
22
|
-
meetings_through_proposals:
|
23
|
-
result_meetings: Rencontres connexes
|
24
24
|
results:
|
25
25
|
actions:
|
26
26
|
confirm_destroy: Êtes-vous sûr de vouloir supprimer ce résultat?
|
@@ -62,7 +62,8 @@ fr:
|
|
62
62
|
filters:
|
63
63
|
category: Catégorie
|
64
64
|
category_prompt: Sélectionner une catégorie
|
65
|
-
|
65
|
+
scope_prompt: Sélectionnez une portée
|
66
|
+
scopes: Zone d'application
|
66
67
|
search: Rechercher
|
67
68
|
filters_small_view:
|
68
69
|
close_modal: Fermer la fenêtre de dialogue
|
@@ -74,6 +75,6 @@ fr:
|
|
74
75
|
attendees: Participants
|
75
76
|
comments: Commentaires
|
76
77
|
contributions: Contributions
|
77
|
-
meetings:
|
78
|
+
meetings: Réunions
|
78
79
|
proposals: Propositions
|
79
80
|
votes: Soutiens
|
data/config/locales/it.yml
CHANGED
@@ -13,14 +13,14 @@ it:
|
|
13
13
|
name: Risultati
|
14
14
|
settings:
|
15
15
|
global:
|
16
|
+
announcement: Annuncio
|
16
17
|
comments_enabled: Commenti abilitati
|
17
18
|
step:
|
19
|
+
announcement: Annuncio
|
18
20
|
comments_blocked: Commenti bloccati
|
19
21
|
resource_links:
|
20
22
|
included_proposals:
|
21
23
|
result_proposals: Proposte incluse in questo risultato
|
22
|
-
meetings_through_proposals:
|
23
|
-
result_meetings: Meetin correlati
|
24
24
|
results:
|
25
25
|
actions:
|
26
26
|
confirm_destroy: Sei sicuro di voler cancellare questo risultato?
|
@@ -62,6 +62,7 @@ it:
|
|
62
62
|
filters:
|
63
63
|
category: Categoria
|
64
64
|
category_prompt: Scegli una categoria
|
65
|
+
scope_prompt: Selezionare un ambito
|
65
66
|
scopes: Visibilità
|
66
67
|
search: Cerca
|
67
68
|
filters_small_view:
|
@@ -74,5 +75,6 @@ it:
|
|
74
75
|
attendees: Partecipanti
|
75
76
|
comments: Commenti
|
76
77
|
contributions: Contributi
|
78
|
+
meetings: Riunioni
|
77
79
|
proposals: Proposte
|
78
80
|
votes: Voti
|
data/config/locales/nl.yml
CHANGED
@@ -2,4 +2,79 @@ nl:
|
|
2
2
|
activemodel:
|
3
3
|
attributes:
|
4
4
|
result:
|
5
|
+
decidim_category_id: Categorie
|
6
|
+
decidim_scope_id: Reikwijdte
|
7
|
+
description: Beschrijving
|
8
|
+
proposal_ids: Inbegrepen voorstellen
|
5
9
|
title: Titel
|
10
|
+
decidim:
|
11
|
+
features:
|
12
|
+
results:
|
13
|
+
name: Resultaten
|
14
|
+
settings:
|
15
|
+
global:
|
16
|
+
announcement: Aankondiging
|
17
|
+
comments_enabled: Reacties ingeschakeld
|
18
|
+
step:
|
19
|
+
announcement: Aankondiging
|
20
|
+
comments_blocked: Reacties geblokkeerd
|
21
|
+
resource_links:
|
22
|
+
included_proposals:
|
23
|
+
result_proposals: Voorstellen opgenomen in dit resultaat
|
24
|
+
results:
|
25
|
+
actions:
|
26
|
+
confirm_destroy: Weet u zeker dat u dit resultaat wilt verwijderen?
|
27
|
+
destroy: Verwijderen
|
28
|
+
edit: Bewerk
|
29
|
+
new: nieuwe
|
30
|
+
preview: Voorbeeld
|
31
|
+
title: Acties
|
32
|
+
admin:
|
33
|
+
models:
|
34
|
+
result:
|
35
|
+
name: Resultaat
|
36
|
+
results:
|
37
|
+
create:
|
38
|
+
invalid: Er is een probleem opgetreden bij het maken van dit resultaat
|
39
|
+
success: Resultaat met succes gemaakt
|
40
|
+
destroy:
|
41
|
+
success: Resultaat met succes verwijderd
|
42
|
+
edit:
|
43
|
+
title: Bewerk resultaat
|
44
|
+
update: Bijwerken
|
45
|
+
index:
|
46
|
+
title: Resultaten
|
47
|
+
new:
|
48
|
+
create: Creëren
|
49
|
+
title: Nieuw resultaat
|
50
|
+
update:
|
51
|
+
invalid: Er is een probleem opgetreden bij het bijwerken van dit resultaat
|
52
|
+
success: Resultaat met succes bijgewerkt
|
53
|
+
models:
|
54
|
+
result:
|
55
|
+
fields:
|
56
|
+
title: Titel
|
57
|
+
results:
|
58
|
+
count:
|
59
|
+
results_count:
|
60
|
+
one: 1 resultaat
|
61
|
+
other: "%{count} resultaten"
|
62
|
+
filters:
|
63
|
+
category: Categorie
|
64
|
+
category_prompt: Kies een categorie
|
65
|
+
scope_prompt: Selecteer een bereik
|
66
|
+
scopes: Scopes
|
67
|
+
search: Zoeken
|
68
|
+
filters_small_view:
|
69
|
+
close_modal: Dicht modaal
|
70
|
+
filter: Filter
|
71
|
+
filter_by: Filteren op
|
72
|
+
unfold: Ontvouwen
|
73
|
+
show:
|
74
|
+
stats:
|
75
|
+
attendees: Deelnemers
|
76
|
+
comments: Reacties
|
77
|
+
contributions: Bijdragen
|
78
|
+
meetings: Vergaderingen
|
79
|
+
proposals: Voorstellen
|
80
|
+
votes: Ondersteunt
|
data/config/locales/pl.yml
CHANGED
@@ -1,5 +1,81 @@
|
|
1
1
|
pl:
|
2
|
+
activemodel:
|
3
|
+
attributes:
|
4
|
+
result:
|
5
|
+
decidim_category_id: Kategoria
|
6
|
+
decidim_scope_id: Zakres
|
7
|
+
description: Opis
|
8
|
+
proposal_ids: Zawarte propozycje
|
9
|
+
title: Tytuł
|
2
10
|
decidim:
|
11
|
+
features:
|
12
|
+
results:
|
13
|
+
name: wyniki
|
14
|
+
settings:
|
15
|
+
global:
|
16
|
+
announcement: Ogłoszenie
|
17
|
+
comments_enabled: Komentarze włączone
|
18
|
+
step:
|
19
|
+
announcement: Ogłoszenie
|
20
|
+
comments_blocked: Komentarze zablokowane
|
21
|
+
resource_links:
|
22
|
+
included_proposals:
|
23
|
+
result_proposals: Propozycje zawarte w tym wyniku
|
3
24
|
results:
|
4
25
|
actions:
|
26
|
+
confirm_destroy: Czy na pewno chcesz usunąć ten wynik?
|
27
|
+
destroy: Kasować
|
28
|
+
edit: Edytuj
|
5
29
|
new: Nowy
|
30
|
+
preview: Podgląd
|
31
|
+
title: Działania
|
32
|
+
admin:
|
33
|
+
models:
|
34
|
+
result:
|
35
|
+
name: Wynik
|
36
|
+
results:
|
37
|
+
create:
|
38
|
+
invalid: Podczas tworzenia tego wyniku wystąpił problem
|
39
|
+
success: Wynik został pomyślnie utworzony
|
40
|
+
destroy:
|
41
|
+
success: Wynik został pomyślnie usunięty
|
42
|
+
edit:
|
43
|
+
title: Edytuj wynik
|
44
|
+
update: Aktualizuj
|
45
|
+
index:
|
46
|
+
title: Wyniki
|
47
|
+
new:
|
48
|
+
create: Utwórz
|
49
|
+
title: Nowy wynik
|
50
|
+
update:
|
51
|
+
invalid: Podczas aktualizowania tego wyniku wystąpił problem
|
52
|
+
success: Wynik został zaktualizowany
|
53
|
+
models:
|
54
|
+
result:
|
55
|
+
fields:
|
56
|
+
title: Tytuł
|
57
|
+
results:
|
58
|
+
count:
|
59
|
+
results_count:
|
60
|
+
one: 1 wynik
|
61
|
+
few: "%{count} wyniki"
|
62
|
+
other: "%{count} wyników"
|
63
|
+
filters:
|
64
|
+
category: Kategoria
|
65
|
+
category_prompt: Wybierz kategorię
|
66
|
+
scope_prompt: Wybierz zakres
|
67
|
+
scopes: Zakresy
|
68
|
+
search: Szukaj
|
69
|
+
filters_small_view:
|
70
|
+
close_modal: Zamknij modal
|
71
|
+
filter: Filtruj
|
72
|
+
filter_by: Filtruj według
|
73
|
+
unfold: Rozwiń
|
74
|
+
show:
|
75
|
+
stats:
|
76
|
+
attendees: Uczestnicy i uczestniczki
|
77
|
+
comments: Komentarze
|
78
|
+
contributions: Wkład
|
79
|
+
meetings: Spotkania
|
80
|
+
proposals: Propozycje
|
81
|
+
votes: Wsparcie
|
@@ -0,0 +1,82 @@
|
|
1
|
+
uk:
|
2
|
+
activemodel:
|
3
|
+
attributes:
|
4
|
+
result:
|
5
|
+
decidim_category_id: Розділ
|
6
|
+
decidim_scope_id: Обсяг
|
7
|
+
description: Опис
|
8
|
+
proposal_ids: Включені пропозиції
|
9
|
+
title: Назва
|
10
|
+
decidim:
|
11
|
+
features:
|
12
|
+
results:
|
13
|
+
name: Підсумки
|
14
|
+
settings:
|
15
|
+
global:
|
16
|
+
announcement: Оголошення
|
17
|
+
comments_enabled: Коментарі ввімкнено
|
18
|
+
step:
|
19
|
+
announcement: Оголошення
|
20
|
+
comments_blocked: Коментарі заблоковано
|
21
|
+
resource_links:
|
22
|
+
included_proposals:
|
23
|
+
result_proposals: Пропозиції, включені до цих підсумків
|
24
|
+
results:
|
25
|
+
actions:
|
26
|
+
confirm_destroy: Ви дійсно бажаєте видалити ці підсумки?
|
27
|
+
destroy: Видалити
|
28
|
+
edit: Редагувати
|
29
|
+
new: Нові
|
30
|
+
preview: Попередній перегляд
|
31
|
+
title: Дії
|
32
|
+
admin:
|
33
|
+
models:
|
34
|
+
result:
|
35
|
+
name: Підсумки
|
36
|
+
results:
|
37
|
+
create:
|
38
|
+
invalid: При створенні цих підсумків сталася помилка
|
39
|
+
success: Підсумки успішно створено
|
40
|
+
destroy:
|
41
|
+
success: Підсумки успішно видалено
|
42
|
+
edit:
|
43
|
+
title: Редагувати підсумки
|
44
|
+
update: Оновити
|
45
|
+
index:
|
46
|
+
title: Підсумки
|
47
|
+
new:
|
48
|
+
create: Створити
|
49
|
+
title: Нові підсумки
|
50
|
+
update:
|
51
|
+
invalid: При оновленні цих підсумків сталася помилка
|
52
|
+
success: Підсумки успішно оновлено
|
53
|
+
models:
|
54
|
+
result:
|
55
|
+
fields:
|
56
|
+
title: Назва
|
57
|
+
results:
|
58
|
+
count:
|
59
|
+
results_count:
|
60
|
+
one: 1 підсумок
|
61
|
+
few: "%{count} підсумки"
|
62
|
+
many: "%{count} підсумків"
|
63
|
+
other: "%{count} підсумків"
|
64
|
+
filters:
|
65
|
+
category: Розділ
|
66
|
+
category_prompt: Оберіть розділ
|
67
|
+
scope_prompt: Оберіть обсяг
|
68
|
+
scopes: Обсяги
|
69
|
+
search: Шукати
|
70
|
+
filters_small_view:
|
71
|
+
close_modal: Закрити віконце
|
72
|
+
filter: Відібрати
|
73
|
+
filter_by: 'Відібрати за ознакою:'
|
74
|
+
unfold: Розгорнути
|
75
|
+
show:
|
76
|
+
stats:
|
77
|
+
attendees: Учасники
|
78
|
+
comments: Коментарі
|
79
|
+
contributions: Внесені пропозиції
|
80
|
+
meetings: Зустрічі
|
81
|
+
proposals: Пропозиції
|
82
|
+
votes: Підтримує
|
@@ -35,19 +35,19 @@ Decidim.register_feature(:results) do |feature|
|
|
35
35
|
settings.attribute :announcement, type: :text, translated: true, editor: true
|
36
36
|
end
|
37
37
|
|
38
|
-
feature.seeds do |
|
38
|
+
feature.seeds do |participatory_space|
|
39
39
|
feature = Decidim::Feature.create!(
|
40
|
-
name: Decidim::Features::Namer.new(
|
40
|
+
name: Decidim::Features::Namer.new(participatory_space.organization.available_locales, :results).i18n_name,
|
41
41
|
manifest_name: :results,
|
42
42
|
published_at: Time.current,
|
43
|
-
|
43
|
+
participatory_space: participatory_space
|
44
44
|
)
|
45
45
|
|
46
46
|
3.times do
|
47
47
|
result = Decidim::Results::Result.create!(
|
48
48
|
feature: feature,
|
49
|
-
scope:
|
50
|
-
category:
|
49
|
+
scope: participatory_space.organization.scopes.sample,
|
50
|
+
category: participatory_space.categories.sample,
|
51
51
|
title: Decidim::Faker::Localized.sentence(2),
|
52
52
|
description: Decidim::Faker::Localized.wrapped("<p>", "</p>") do
|
53
53
|
Decidim::Faker::Localized.paragraph(3)
|
@@ -5,9 +5,9 @@ require "decidim/dev"
|
|
5
5
|
|
6
6
|
FactoryGirl.define do
|
7
7
|
factory :result_feature, parent: :feature do
|
8
|
-
name { Decidim::Features::Namer.new(
|
8
|
+
name { Decidim::Features::Namer.new(participatory_space.organization.available_locales, :results).i18n_name }
|
9
9
|
manifest_name :results
|
10
|
-
|
10
|
+
participatory_space { create(:participatory_process, :with_steps, organization: organization) }
|
11
11
|
end
|
12
12
|
|
13
13
|
factory :result, class: Decidim::Results::Result do
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-results
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.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: 2017-
|
13
|
+
date: 2017-09-15 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,28 +18,28 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.6.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.
|
28
|
+
version: 0.6.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: decidim-comments
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.
|
35
|
+
version: 0.6.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.
|
42
|
+
version: 0.6.0
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: rectify
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -88,70 +88,84 @@ dependencies:
|
|
88
88
|
requirements:
|
89
89
|
- - '='
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version: 0.
|
91
|
+
version: 0.6.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.
|
98
|
+
version: 0.6.0
|
99
99
|
- !ruby/object:Gem::Dependency
|
100
100
|
name: decidim-admin
|
101
101
|
requirement: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
103
|
- - '='
|
104
104
|
- !ruby/object:Gem::Version
|
105
|
-
version: 0.
|
105
|
+
version: 0.6.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.
|
112
|
+
version: 0.6.0
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: decidim-participatory_processes
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - '='
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: 0.6.0
|
120
|
+
type: :development
|
121
|
+
prerelease: false
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - '='
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: 0.6.0
|
113
127
|
- !ruby/object:Gem::Dependency
|
114
128
|
name: decidim-comments
|
115
129
|
requirement: !ruby/object:Gem::Requirement
|
116
130
|
requirements:
|
117
131
|
- - '='
|
118
132
|
- !ruby/object:Gem::Version
|
119
|
-
version: 0.
|
133
|
+
version: 0.6.0
|
120
134
|
type: :development
|
121
135
|
prerelease: false
|
122
136
|
version_requirements: !ruby/object:Gem::Requirement
|
123
137
|
requirements:
|
124
138
|
- - '='
|
125
139
|
- !ruby/object:Gem::Version
|
126
|
-
version: 0.
|
140
|
+
version: 0.6.0
|
127
141
|
- !ruby/object:Gem::Dependency
|
128
142
|
name: decidim-proposals
|
129
143
|
requirement: !ruby/object:Gem::Requirement
|
130
144
|
requirements:
|
131
145
|
- - '='
|
132
146
|
- !ruby/object:Gem::Version
|
133
|
-
version: 0.
|
147
|
+
version: 0.6.0
|
134
148
|
type: :development
|
135
149
|
prerelease: false
|
136
150
|
version_requirements: !ruby/object:Gem::Requirement
|
137
151
|
requirements:
|
138
152
|
- - '='
|
139
153
|
- !ruby/object:Gem::Version
|
140
|
-
version: 0.
|
154
|
+
version: 0.6.0
|
141
155
|
- !ruby/object:Gem::Dependency
|
142
156
|
name: decidim-meetings
|
143
157
|
requirement: !ruby/object:Gem::Requirement
|
144
158
|
requirements:
|
145
159
|
- - '='
|
146
160
|
- !ruby/object:Gem::Version
|
147
|
-
version: 0.
|
161
|
+
version: 0.6.0
|
148
162
|
type: :development
|
149
163
|
prerelease: false
|
150
164
|
version_requirements: !ruby/object:Gem::Requirement
|
151
165
|
requirements:
|
152
166
|
- - '='
|
153
167
|
- !ruby/object:Gem::Version
|
154
|
-
version: 0.
|
168
|
+
version: 0.6.0
|
155
169
|
description: A results component for decidim's participatory processes.
|
156
170
|
email:
|
157
171
|
- josepjaume@gmail.com
|
@@ -191,7 +205,6 @@ files:
|
|
191
205
|
- app/views/decidim/results/results/index.html.erb
|
192
206
|
- app/views/decidim/results/results/index.js.erb
|
193
207
|
- app/views/decidim/results/results/show.html.erb
|
194
|
-
- config/i18n-tasks.yml
|
195
208
|
- config/locales/ca.yml
|
196
209
|
- config/locales/en.yml
|
197
210
|
- config/locales/es.yml
|
@@ -201,6 +214,7 @@ files:
|
|
201
214
|
- config/locales/it.yml
|
202
215
|
- config/locales/nl.yml
|
203
216
|
- config/locales/pl.yml
|
217
|
+
- config/locales/uk.yml
|
204
218
|
- db/migrate/20170116104125_create_results.rb
|
205
219
|
- db/migrate/20170129164553_remove_short_description_from_results.rb
|
206
220
|
- db/migrate/20170215132624_add_reference_to_results.rb
|
data/config/i18n-tasks.yml
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
base_locale: en
|
2
|
-
ignore_unused:
|
3
|
-
- "decidim.features.results.name"
|
4
|
-
- "decidim.features.results.settings.*"
|
5
|
-
- "decidim.resource_links.*"
|
6
|
-
- activerecord.attributes.*
|
7
|
-
- activemodel.attributes.*
|
8
|
-
ignore_missing:
|
9
|
-
- decidim.scopes.global
|
10
|
-
search:
|
11
|
-
strict: false
|