decidim-budgets 0.12.2 → 0.13.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/decidim/budgets/order.rb +9 -0
- data/app/serializers/decidim/budgets/data_portability_budgets_order_serializer.rb +43 -0
- data/app/views/decidim/budgets/admin/projects/index.html.erb +1 -1
- data/config/locales/ca.yml +5 -5
- data/config/locales/en.yml +5 -5
- data/config/locales/es-PY.yml +5 -5
- data/config/locales/es.yml +5 -5
- data/config/locales/eu.yml +5 -5
- data/config/locales/fi.yml +5 -5
- data/config/locales/fr.yml +8 -8
- data/config/locales/gl.yml +5 -5
- data/config/locales/it.yml +5 -5
- data/config/locales/nl.yml +4 -4
- data/config/locales/pl.yml +5 -5
- data/config/locales/pt-BR.yml +5 -5
- data/config/locales/pt.yml +5 -5
- data/config/locales/ru.yml +2 -2
- data/config/locales/sv.yml +5 -5
- data/config/locales/uk.yml +2 -2
- data/lib/decidim/budgets/component.rb +2 -0
- data/lib/decidim/budgets/version.rb +1 -1
- metadata +25 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67d4bef49a469f381d9907986285272380326406327f861ea032149850fbdffc
|
4
|
+
data.tar.gz: 71266d2a15b5caf3b521d872e0a4a288064a2ed5bbfe79b4cf25e7ca41de19dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51618ffcb2149b4cc26e529facc3cc56e163ab30d52ec06c5dfe6ad58f3647f329c6520234881966ef75f167aa20d6138783668f4924b90a664a8dcf1a033d29
|
7
|
+
data.tar.gz: fad3b64549144e5f64bd1db8847c013939e8e8092dd2dfdc35f6d724a7e545857375060142d79074090892b20b5be659944f9a9e8113d0cfedbed085052348e9
|
@@ -6,6 +6,7 @@ module Decidim
|
|
6
6
|
# user and component and contains a collection of projects
|
7
7
|
class Order < Budgets::ApplicationRecord
|
8
8
|
include Decidim::HasComponent
|
9
|
+
include Decidim::DataPortability
|
9
10
|
|
10
11
|
component_manifest_name "budgets"
|
11
12
|
|
@@ -60,6 +61,14 @@ module Decidim
|
|
60
61
|
component.settings.total_budget.to_f
|
61
62
|
end
|
62
63
|
|
64
|
+
def self.user_collection(user)
|
65
|
+
where(decidim_user_id: user.id)
|
66
|
+
end
|
67
|
+
|
68
|
+
def self.export_serializer
|
69
|
+
Decidim::Budgets::DataPortabilityBudgetsOrderSerializer
|
70
|
+
end
|
71
|
+
|
63
72
|
private
|
64
73
|
|
65
74
|
def user_belongs_to_organization
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module Budgets
|
5
|
+
class DataPortabilityBudgetsOrderSerializer < Decidim::Exporters::Serializer
|
6
|
+
# Public: Initializes the serializer with a conversation.
|
7
|
+
def initialize(order)
|
8
|
+
@order = order
|
9
|
+
end
|
10
|
+
|
11
|
+
# Serializes a Debate for data portability
|
12
|
+
def serialize
|
13
|
+
{
|
14
|
+
id: order.id,
|
15
|
+
component: order.component.name,
|
16
|
+
checked_out_at: order.checked_out_at,
|
17
|
+
projects: all_projects,
|
18
|
+
created_at: order.created_at,
|
19
|
+
updated_at: order.updated_at
|
20
|
+
}
|
21
|
+
end
|
22
|
+
|
23
|
+
private
|
24
|
+
|
25
|
+
attr_reader :order
|
26
|
+
|
27
|
+
def all_projects
|
28
|
+
order.projects.map do |project|
|
29
|
+
{
|
30
|
+
id: project.id,
|
31
|
+
title: project.title,
|
32
|
+
description: project.description,
|
33
|
+
budget: project.budget,
|
34
|
+
scope: project.try(:scope).try(:name),
|
35
|
+
reference: project.reference,
|
36
|
+
created_at: project.created_at,
|
37
|
+
updated_at: project.updated_at
|
38
|
+
}
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="card-divider">
|
3
3
|
<h2 class="card-title">
|
4
4
|
<%= t(".title") %>
|
5
|
-
<%= link_to t("actions.new", scope: "decidim.budgets"
|
5
|
+
<%= link_to t("actions.new", scope: "decidim.budgets"), new_project_path, class: "button tiny button--title" if allowed_to? :create, :project %>
|
6
6
|
</h2>
|
7
7
|
</div>
|
8
8
|
|
data/config/locales/ca.yml
CHANGED
@@ -16,12 +16,12 @@ ca:
|
|
16
16
|
decidim:
|
17
17
|
budgets:
|
18
18
|
actions:
|
19
|
-
attachment_collections:
|
19
|
+
attachment_collections: Carpetes
|
20
20
|
attachments: Adjunts
|
21
21
|
confirm_destroy: Segur que vols eliminar aquest projecte?
|
22
22
|
destroy: Esborrar
|
23
23
|
edit: Editar
|
24
|
-
new: Nou
|
24
|
+
new: Nou projecte
|
25
25
|
preview: Previsualitzar
|
26
26
|
title: Accions
|
27
27
|
admin:
|
@@ -33,7 +33,7 @@ ca:
|
|
33
33
|
invalid: Hi ha hagut un problema creant aquest projecte
|
34
34
|
success: Projecte creat correctament
|
35
35
|
destroy:
|
36
|
-
success:
|
36
|
+
success: El projecte s'ha eliminat correctament
|
37
37
|
edit:
|
38
38
|
title: Editar projecte
|
39
39
|
update: Actualitzar
|
@@ -43,7 +43,7 @@ ca:
|
|
43
43
|
title: Projectes
|
44
44
|
new:
|
45
45
|
create: Crear
|
46
|
-
title: Nou
|
46
|
+
title: Nou projecte
|
47
47
|
update:
|
48
48
|
invalid: Hi ha hagut un problema actualitzant aquest projecte
|
49
49
|
success: Projecte actualitzat correctament
|
@@ -127,7 +127,7 @@ ca:
|
|
127
127
|
announcement: Anunci
|
128
128
|
comments_blocked: Comentaris bloquejats
|
129
129
|
show_votes: Mostra els suports
|
130
|
-
votes_enabled:
|
130
|
+
votes_enabled: S'ha habilitat la votació
|
131
131
|
orders:
|
132
132
|
checkout:
|
133
133
|
error: S'ha produït un error en processar el teu vot
|
data/config/locales/en.yml
CHANGED
@@ -17,12 +17,12 @@ en:
|
|
17
17
|
decidim:
|
18
18
|
budgets:
|
19
19
|
actions:
|
20
|
-
attachment_collections:
|
20
|
+
attachment_collections: Folders
|
21
21
|
attachments: Attachments
|
22
22
|
confirm_destroy: Are you sure you want to delete this project?
|
23
23
|
destroy: Delete
|
24
24
|
edit: Edit
|
25
|
-
new: New
|
25
|
+
new: New project
|
26
26
|
preview: Preview
|
27
27
|
title: Actions
|
28
28
|
admin:
|
@@ -34,7 +34,7 @@ en:
|
|
34
34
|
invalid: There's been a problem creating this project
|
35
35
|
success: Project successfully created
|
36
36
|
destroy:
|
37
|
-
success: Project successfully
|
37
|
+
success: Project successfully deleted
|
38
38
|
edit:
|
39
39
|
title: Edit project
|
40
40
|
update: Update
|
@@ -44,7 +44,7 @@ en:
|
|
44
44
|
title: Projects
|
45
45
|
new:
|
46
46
|
create: Create
|
47
|
-
title: New
|
47
|
+
title: New project
|
48
48
|
update:
|
49
49
|
invalid: There's been a problem updating this project
|
50
50
|
success: Project successfully updated
|
@@ -128,7 +128,7 @@ en:
|
|
128
128
|
announcement: Announcement
|
129
129
|
comments_blocked: Comments blocked
|
130
130
|
show_votes: Show votes
|
131
|
-
votes_enabled:
|
131
|
+
votes_enabled: Voting enabled
|
132
132
|
orders:
|
133
133
|
checkout:
|
134
134
|
error: An error ocurred while processing your vote
|
data/config/locales/es-PY.yml
CHANGED
@@ -16,12 +16,12 @@ es-PY:
|
|
16
16
|
decidim:
|
17
17
|
budgets:
|
18
18
|
actions:
|
19
|
-
attachment_collections:
|
19
|
+
attachment_collections: Carpetas
|
20
20
|
attachments: Archivos adjuntos
|
21
21
|
confirm_destroy: '¿Estás seguro de que deseas eliminar este proyecto?'
|
22
22
|
destroy: Borrar
|
23
23
|
edit: Editar
|
24
|
-
new: Nuevo
|
24
|
+
new: Nuevo proyecto
|
25
25
|
preview: Previsualizar
|
26
26
|
title: Acciones
|
27
27
|
admin:
|
@@ -33,7 +33,7 @@ es-PY:
|
|
33
33
|
invalid: Ha habido un problema al crear este proyecto
|
34
34
|
success: Proyecto creado con éxito
|
35
35
|
destroy:
|
36
|
-
success: Proyecto eliminado
|
36
|
+
success: Proyecto eliminado con éxito
|
37
37
|
edit:
|
38
38
|
title: Editar proyecto
|
39
39
|
update: Actualizar
|
@@ -43,7 +43,7 @@ es-PY:
|
|
43
43
|
title: Proyectos
|
44
44
|
new:
|
45
45
|
create: Crear
|
46
|
-
title: Nuevo
|
46
|
+
title: Nuevo proyecto
|
47
47
|
update:
|
48
48
|
invalid: Ha habido un problema al actualizar este proyecto
|
49
49
|
success: Proyecto actualizado correctamente
|
@@ -127,7 +127,7 @@ es-PY:
|
|
127
127
|
announcement: Anuncio
|
128
128
|
comments_blocked: Comentarios bloqueados
|
129
129
|
show_votes: Mostrar los votos
|
130
|
-
votes_enabled:
|
130
|
+
votes_enabled: Votación habilitada
|
131
131
|
orders:
|
132
132
|
checkout:
|
133
133
|
error: Se ha producido un error al procesar tu voto
|
data/config/locales/es.yml
CHANGED
@@ -16,12 +16,12 @@ es:
|
|
16
16
|
decidim:
|
17
17
|
budgets:
|
18
18
|
actions:
|
19
|
-
attachment_collections:
|
19
|
+
attachment_collections: Carpetas
|
20
20
|
attachments: Archivos adjuntos
|
21
21
|
confirm_destroy: '¿Estás seguro de que deseas eliminar este proyecto?'
|
22
22
|
destroy: Borrar
|
23
23
|
edit: Editar
|
24
|
-
new: Nuevo
|
24
|
+
new: Nuevo proyecto
|
25
25
|
preview: Previsualizar
|
26
26
|
title: Acciones
|
27
27
|
admin:
|
@@ -33,7 +33,7 @@ es:
|
|
33
33
|
invalid: Ha habido un problema al crear este proyecto
|
34
34
|
success: Proyecto creado con éxito
|
35
35
|
destroy:
|
36
|
-
success: Proyecto eliminado
|
36
|
+
success: Proyecto eliminado con éxito
|
37
37
|
edit:
|
38
38
|
title: Editar proyecto
|
39
39
|
update: Actualizar
|
@@ -43,7 +43,7 @@ es:
|
|
43
43
|
title: Proyectos
|
44
44
|
new:
|
45
45
|
create: Crear
|
46
|
-
title: Nuevo
|
46
|
+
title: Nuevo proyecto
|
47
47
|
update:
|
48
48
|
invalid: Ha habido un problema al actualizar este proyecto
|
49
49
|
success: Proyecto actualizado correctamente
|
@@ -127,7 +127,7 @@ es:
|
|
127
127
|
announcement: Anuncio
|
128
128
|
comments_blocked: Comentarios bloqueados
|
129
129
|
show_votes: Mostrar los votos
|
130
|
-
votes_enabled:
|
130
|
+
votes_enabled: Votación habilitada
|
131
131
|
orders:
|
132
132
|
checkout:
|
133
133
|
error: Se ha producido un error al procesar tu voto
|
data/config/locales/eu.yml
CHANGED
@@ -16,12 +16,12 @@ eu:
|
|
16
16
|
decidim:
|
17
17
|
budgets:
|
18
18
|
actions:
|
19
|
-
attachment_collections:
|
19
|
+
attachment_collections: Karpetak
|
20
20
|
attachments: Fitxategi erantsiak
|
21
21
|
confirm_destroy: Ziur zaude proiektu hau ezabatu nahi duzula?
|
22
22
|
destroy: Ezabatu
|
23
23
|
edit: Editatu
|
24
|
-
new:
|
24
|
+
new: Proiektu berria
|
25
25
|
preview: Aurreikusi
|
26
26
|
title: Ekintzak
|
27
27
|
admin:
|
@@ -33,7 +33,7 @@ eu:
|
|
33
33
|
invalid: Arazo bat izan da proiektu hau sortzean
|
34
34
|
success: Proiektua ongi sortu da
|
35
35
|
destroy:
|
36
|
-
success: Proiektua
|
36
|
+
success: Proiektua behar bezala ezabatu da
|
37
37
|
edit:
|
38
38
|
title: Editatu proiektua
|
39
39
|
update: Eguneratu
|
@@ -43,7 +43,7 @@ eu:
|
|
43
43
|
title: Proiektuak
|
44
44
|
new:
|
45
45
|
create: Sortu
|
46
|
-
title:
|
46
|
+
title: Proiektu berria
|
47
47
|
update:
|
48
48
|
invalid: Arazo bat izan da proiektu hau eguneratzean
|
49
49
|
success: Proiektua zuzen eguneratu da
|
@@ -127,7 +127,7 @@ eu:
|
|
127
127
|
announcement: Anuntzio
|
128
128
|
comments_blocked: Iruzkinak blokeatuta
|
129
129
|
show_votes: Erakutsi botoak
|
130
|
-
votes_enabled:
|
130
|
+
votes_enabled: Botoak gaituta
|
131
131
|
orders:
|
132
132
|
checkout:
|
133
133
|
error: Errorea gertatu da zure botoa prozesatzean
|
data/config/locales/fi.yml
CHANGED
@@ -16,12 +16,12 @@ fi:
|
|
16
16
|
decidim:
|
17
17
|
budgets:
|
18
18
|
actions:
|
19
|
-
attachment_collections:
|
19
|
+
attachment_collections: kansiot
|
20
20
|
attachments: Liitteet
|
21
21
|
confirm_destroy: Haluatko varmasti poistaa tämän projektin?
|
22
22
|
destroy: Poista
|
23
23
|
edit: Muokkaa
|
24
|
-
new: Uusi
|
24
|
+
new: Uusi projekti
|
25
25
|
preview: Esikatsele
|
26
26
|
title: Toiminnot
|
27
27
|
admin:
|
@@ -33,7 +33,7 @@ fi:
|
|
33
33
|
invalid: Tämän projektin lisäyksessä tapahtui virhe
|
34
34
|
success: Projekti lisätty onnistuneesti
|
35
35
|
destroy:
|
36
|
-
success:
|
36
|
+
success: Hanke poistettiin onnistuneesti
|
37
37
|
edit:
|
38
38
|
title: Muokkaa projektia
|
39
39
|
update: Päivitä
|
@@ -43,7 +43,7 @@ fi:
|
|
43
43
|
title: Projektit
|
44
44
|
new:
|
45
45
|
create: Luo
|
46
|
-
title: Uusi
|
46
|
+
title: Uusi projekti
|
47
47
|
update:
|
48
48
|
invalid: Tämän projektin päivityksessä tapahtui virhe
|
49
49
|
success: Projekti päivitetty onnistuneesti
|
@@ -127,7 +127,7 @@ fi:
|
|
127
127
|
announcement: Ilmoitus
|
128
128
|
comments_blocked: Kommentit on estetty
|
129
129
|
show_votes: Näytä äänet
|
130
|
-
votes_enabled:
|
130
|
+
votes_enabled: Äänestys on käytössä
|
131
131
|
orders:
|
132
132
|
checkout:
|
133
133
|
error: Äänesi käsittelyssä tapahtui virhe
|
data/config/locales/fr.yml
CHANGED
@@ -17,11 +17,11 @@ fr:
|
|
17
17
|
budgets:
|
18
18
|
actions:
|
19
19
|
attachment_collections: Dossiers
|
20
|
-
attachments:
|
20
|
+
attachments: Pièces jointes
|
21
21
|
confirm_destroy: Êtes-vous certain de vouloir supprimer ce projet?
|
22
22
|
destroy: Supprimer
|
23
23
|
edit: Modifier
|
24
|
-
new: Nouveau
|
24
|
+
new: Nouveau projet
|
25
25
|
preview: Aperçu
|
26
26
|
title: Actions
|
27
27
|
admin:
|
@@ -43,7 +43,7 @@ fr:
|
|
43
43
|
title: Projets
|
44
44
|
new:
|
45
45
|
create: Créer
|
46
|
-
title: Nouveau
|
46
|
+
title: Nouveau projet
|
47
47
|
update:
|
48
48
|
invalid: Il y a eu un problème lors de la mise à jour de ce projet
|
49
49
|
success: Projet mis à jour avec succès
|
@@ -58,7 +58,7 @@ fr:
|
|
58
58
|
title: Titre
|
59
59
|
projects:
|
60
60
|
budget_confirm:
|
61
|
-
are_you_sure: Êtes-vous d'accord ? Une fois que vous aurez confirmé votre vote,
|
61
|
+
are_you_sure: Êtes-vous d'accord ? Une fois que vous aurez confirmé votre vote, vous ne pourrez plus le modifier.
|
62
62
|
cancel: Annuler
|
63
63
|
confirm: Confirmer
|
64
64
|
description: Voici les projets que vous avez choisis pour le budget.
|
@@ -89,7 +89,7 @@ fr:
|
|
89
89
|
close_modal: Fermez la fenêtre
|
90
90
|
filter: Filtrer
|
91
91
|
filter_by: Filtrer par
|
92
|
-
unfold:
|
92
|
+
unfold: Dérouler
|
93
93
|
order_progress:
|
94
94
|
vote: Voter
|
95
95
|
order_selected_projects:
|
@@ -118,16 +118,16 @@ fr:
|
|
118
118
|
name: Budgets
|
119
119
|
settings:
|
120
120
|
global:
|
121
|
-
announcement:
|
121
|
+
announcement: Message d'annonce
|
122
122
|
comments_enabled: Activer le module de commentaire
|
123
123
|
projects_per_page: Projets par page
|
124
124
|
total_budget: Budget total
|
125
125
|
vote_threshold_percent: Pourcentage du budget à atteindre pour voter
|
126
126
|
step:
|
127
127
|
announcement: Annonce
|
128
|
-
comments_blocked:
|
128
|
+
comments_blocked: Bloquer la création de nouveaux commentaires
|
129
129
|
show_votes: Afficher les votes
|
130
|
-
votes_enabled:
|
130
|
+
votes_enabled: Votes activés
|
131
131
|
orders:
|
132
132
|
checkout:
|
133
133
|
error: Une erreur s'est produite lors du traitement de votre vote
|
data/config/locales/gl.yml
CHANGED
@@ -16,12 +16,12 @@ gl:
|
|
16
16
|
decidim:
|
17
17
|
budgets:
|
18
18
|
actions:
|
19
|
-
attachment_collections:
|
19
|
+
attachment_collections: Carpetas
|
20
20
|
attachments: Anexos
|
21
21
|
confirm_destroy: Estás seguro de que queres eliminar este proxecto?
|
22
22
|
destroy: Eliminar
|
23
23
|
edit: Editar
|
24
|
-
new: Novo
|
24
|
+
new: Novo proxecto
|
25
25
|
preview: Vista previa
|
26
26
|
title: Accións
|
27
27
|
admin:
|
@@ -33,7 +33,7 @@ gl:
|
|
33
33
|
invalid: Produciuse un problema ao crear este proxecto
|
34
34
|
success: O proxecto foi creado con éxito
|
35
35
|
destroy:
|
36
|
-
success: Proxecto
|
36
|
+
success: Proxecto eliminado con éxito
|
37
37
|
edit:
|
38
38
|
title: Editar proxecto
|
39
39
|
update: Actualización
|
@@ -43,7 +43,7 @@ gl:
|
|
43
43
|
title: Proxectos
|
44
44
|
new:
|
45
45
|
create: Crear
|
46
|
-
title: Novo
|
46
|
+
title: Novo proxecto
|
47
47
|
update:
|
48
48
|
invalid: Produciuse un problema ao actualizar este proxecto
|
49
49
|
success: Proxecto actualizado correctamente
|
@@ -127,7 +127,7 @@ gl:
|
|
127
127
|
announcement: Anuncio
|
128
128
|
comments_blocked: Comentarios bloqueados
|
129
129
|
show_votes: Mostrar votos
|
130
|
-
votes_enabled:
|
130
|
+
votes_enabled: Votación habilitada
|
131
131
|
orders:
|
132
132
|
checkout:
|
133
133
|
error: Produciuse un erro ao procesar o teu voto
|
data/config/locales/it.yml
CHANGED
@@ -16,12 +16,12 @@ it:
|
|
16
16
|
decidim:
|
17
17
|
budgets:
|
18
18
|
actions:
|
19
|
-
attachment_collections:
|
19
|
+
attachment_collections: Cartelle
|
20
20
|
attachments: Allegati
|
21
21
|
confirm_destroy: Sei certo di voler cancellare questo progetto?
|
22
22
|
destroy: Cancella
|
23
23
|
edit: Modifica
|
24
|
-
new: Nuovo
|
24
|
+
new: Nuovo progetto
|
25
25
|
preview: Anteprima
|
26
26
|
title: Azioni
|
27
27
|
admin:
|
@@ -33,7 +33,7 @@ it:
|
|
33
33
|
invalid: C'è stato un problema durante la creazione di questo progetto.
|
34
34
|
success: OK, progetto creato.
|
35
35
|
destroy:
|
36
|
-
success:
|
36
|
+
success: Progetto eliminato con successo
|
37
37
|
edit:
|
38
38
|
title: Modifica il progetto
|
39
39
|
update: Aggiorna
|
@@ -43,7 +43,7 @@ it:
|
|
43
43
|
title: Progetti
|
44
44
|
new:
|
45
45
|
create: Crea
|
46
|
-
title: Nuovo
|
46
|
+
title: Nuovo progetto
|
47
47
|
update:
|
48
48
|
invalid: C'è stato un problema durante l'aggiornamento di questo progetto.
|
49
49
|
success: OK, progetto aggiornato.
|
@@ -127,7 +127,7 @@ it:
|
|
127
127
|
announcement: Annuncio
|
128
128
|
comments_blocked: Commenti bloccati
|
129
129
|
show_votes: Mostra voti
|
130
|
-
votes_enabled:
|
130
|
+
votes_enabled: Voto abilitato
|
131
131
|
orders:
|
132
132
|
checkout:
|
133
133
|
error: C'è stato un errore durante l'acquisizione del voto.
|
data/config/locales/nl.yml
CHANGED
@@ -16,12 +16,12 @@ nl:
|
|
16
16
|
decidim:
|
17
17
|
budgets:
|
18
18
|
actions:
|
19
|
-
attachment_collections:
|
19
|
+
attachment_collections: folders
|
20
20
|
attachments: Bijlagen
|
21
21
|
confirm_destroy: Weet u zeker dat u dit project wilt verwijderen?
|
22
22
|
destroy: Verwijderen
|
23
23
|
edit: Bewerk
|
24
|
-
new:
|
24
|
+
new: Nieuw project
|
25
25
|
preview: Voorbeeld
|
26
26
|
title: Acties
|
27
27
|
admin:
|
@@ -33,7 +33,7 @@ nl:
|
|
33
33
|
invalid: Er is een probleem opgetreden met het creëren van dit project
|
34
34
|
success: Voorstel succesvol aangemaakt
|
35
35
|
destroy:
|
36
|
-
success: Project succesvol
|
36
|
+
success: Project succesvol verwijderd
|
37
37
|
edit:
|
38
38
|
title: Bewerk project
|
39
39
|
update: Bijwerken
|
@@ -43,7 +43,7 @@ nl:
|
|
43
43
|
title: Projecten
|
44
44
|
new:
|
45
45
|
create: Creëren
|
46
|
-
title: Nieuw
|
46
|
+
title: Nieuw project
|
47
47
|
update:
|
48
48
|
invalid: Er is een probleem opgetreden bij het bijwerken van dit project
|
49
49
|
success: Project succesvol bijgewerkt
|
data/config/locales/pl.yml
CHANGED
@@ -18,12 +18,12 @@ pl:
|
|
18
18
|
decidim:
|
19
19
|
budgets:
|
20
20
|
actions:
|
21
|
-
attachment_collections:
|
21
|
+
attachment_collections: Lornetka składana
|
22
22
|
attachments: Załączniki
|
23
23
|
confirm_destroy: Czy na pewno chcesz usunąć ten projekt?
|
24
24
|
destroy: Kasować
|
25
25
|
edit: Edytować
|
26
|
-
new: Nowy
|
26
|
+
new: Nowy projekt
|
27
27
|
preview: Zapowiedź
|
28
28
|
title: działania
|
29
29
|
admin:
|
@@ -35,7 +35,7 @@ pl:
|
|
35
35
|
invalid: Podczas tworzenia tego projektu wystąpił problem
|
36
36
|
success: Projekt został pomyślnie utworzony
|
37
37
|
destroy:
|
38
|
-
success: Projekt pomyślnie
|
38
|
+
success: Projekt został pomyślnie usunięty
|
39
39
|
edit:
|
40
40
|
title: Edytuj projekt
|
41
41
|
update: Aktualizacja
|
@@ -45,7 +45,7 @@ pl:
|
|
45
45
|
title: Projektowanie
|
46
46
|
new:
|
47
47
|
create: Stwórz
|
48
|
-
title: Nowy
|
48
|
+
title: Nowy projekt
|
49
49
|
update:
|
50
50
|
invalid: Wystąpił problem z aktualizacją tego projektu
|
51
51
|
success: Zaktualizowano projekt
|
@@ -135,7 +135,7 @@ pl:
|
|
135
135
|
announcement: Ogłoszenie
|
136
136
|
comments_blocked: Komentarze zablokowane
|
137
137
|
show_votes: Pokaż głosy
|
138
|
-
votes_enabled:
|
138
|
+
votes_enabled: Włączone głosowanie
|
139
139
|
orders:
|
140
140
|
checkout:
|
141
141
|
error: Podczas przetwarzania Twojego głosu wystąpił błąd
|
data/config/locales/pt-BR.yml
CHANGED
@@ -16,12 +16,12 @@ pt-BR:
|
|
16
16
|
decidim:
|
17
17
|
budgets:
|
18
18
|
actions:
|
19
|
-
attachment_collections:
|
19
|
+
attachment_collections: Pastas
|
20
20
|
attachments: Anexos
|
21
21
|
confirm_destroy: Tem certeza de que deseja excluir esse projeto?
|
22
22
|
destroy: Excluir
|
23
23
|
edit: Editar
|
24
|
-
new: Novo
|
24
|
+
new: Novo projeto
|
25
25
|
preview: Visualização
|
26
26
|
title: Ações
|
27
27
|
admin:
|
@@ -33,7 +33,7 @@ pt-BR:
|
|
33
33
|
invalid: Tem havido um problema ao criar este projeto
|
34
34
|
success: Projeto criado com sucesso
|
35
35
|
destroy:
|
36
|
-
success: Projeto
|
36
|
+
success: Projeto excluído com sucesso
|
37
37
|
edit:
|
38
38
|
title: Editar projeto
|
39
39
|
update: Atualizar
|
@@ -43,7 +43,7 @@ pt-BR:
|
|
43
43
|
title: Projetos
|
44
44
|
new:
|
45
45
|
create: Criar
|
46
|
-
title: Novo
|
46
|
+
title: Novo projeto
|
47
47
|
update:
|
48
48
|
invalid: Ocorreu um problema ao atualizar este projeto
|
49
49
|
success: Projeto atualizado com sucesso
|
@@ -127,7 +127,7 @@ pt-BR:
|
|
127
127
|
announcement: Anúncio
|
128
128
|
comments_blocked: Comentários bloqueados
|
129
129
|
show_votes: Mostrar votos
|
130
|
-
votes_enabled:
|
130
|
+
votes_enabled: Votação habilitada
|
131
131
|
orders:
|
132
132
|
checkout:
|
133
133
|
error: Ocorreu um erro ao processar seu voto
|
data/config/locales/pt.yml
CHANGED
@@ -16,12 +16,12 @@ pt:
|
|
16
16
|
decidim:
|
17
17
|
budgets:
|
18
18
|
actions:
|
19
|
-
attachment_collections:
|
19
|
+
attachment_collections: Pastas
|
20
20
|
attachments: Anexos
|
21
21
|
confirm_destroy: Tem certeza de que deseja excluir esse projeto?
|
22
22
|
destroy: Excluir
|
23
23
|
edit: Editar
|
24
|
-
new: Novo
|
24
|
+
new: Novo projeto
|
25
25
|
preview: Visualização
|
26
26
|
title: Ações
|
27
27
|
admin:
|
@@ -33,7 +33,7 @@ pt:
|
|
33
33
|
invalid: Tem havido um problema ao criar este projeto
|
34
34
|
success: Projeto criado com sucesso
|
35
35
|
destroy:
|
36
|
-
success: Projeto
|
36
|
+
success: Projeto excluído com sucesso
|
37
37
|
edit:
|
38
38
|
title: Editar projeto
|
39
39
|
update: Actualizar
|
@@ -43,7 +43,7 @@ pt:
|
|
43
43
|
title: Projetos
|
44
44
|
new:
|
45
45
|
create: Criar
|
46
|
-
title: Novo
|
46
|
+
title: Novo projeto
|
47
47
|
update:
|
48
48
|
invalid: Ocorreu um problema ao atualizar este projeto
|
49
49
|
success: Projeto atualizado com sucesso
|
@@ -127,7 +127,7 @@ pt:
|
|
127
127
|
announcement: Anúncio
|
128
128
|
comments_blocked: Comentários bloqueados
|
129
129
|
show_votes: Mostrar votos
|
130
|
-
votes_enabled:
|
130
|
+
votes_enabled: Votação habilitada
|
131
131
|
orders:
|
132
132
|
checkout:
|
133
133
|
error: Ocorreu um erro ao processar seu voto
|
data/config/locales/ru.yml
CHANGED
@@ -23,7 +23,7 @@ ru:
|
|
23
23
|
confirm_destroy: Вы действительно хотите удалить этот проект?
|
24
24
|
destroy: Удалить
|
25
25
|
edit: Редактировать
|
26
|
-
new:
|
26
|
+
new: Новый проект
|
27
27
|
preview: Предпросмотр
|
28
28
|
title: Действия
|
29
29
|
admin:
|
@@ -45,7 +45,7 @@ ru:
|
|
45
45
|
title: Проекты
|
46
46
|
new:
|
47
47
|
create: Создать
|
48
|
-
title:
|
48
|
+
title: Новый проект
|
49
49
|
update:
|
50
50
|
invalid: При попытке обновить этот проект произошла ошибка
|
51
51
|
success: Проект успешно обновлен
|
data/config/locales/sv.yml
CHANGED
@@ -16,12 +16,12 @@ sv:
|
|
16
16
|
decidim:
|
17
17
|
budgets:
|
18
18
|
actions:
|
19
|
-
attachment_collections:
|
19
|
+
attachment_collections: mappar
|
20
20
|
attachments: Bifogade filer
|
21
21
|
confirm_destroy: Är du säker på att du vill radera detta projekt?
|
22
22
|
destroy: Radera
|
23
23
|
edit: Redigera
|
24
|
-
new:
|
24
|
+
new: Nytt projekt
|
25
25
|
preview: Förhandsvisa
|
26
26
|
title: Handlingar
|
27
27
|
admin:
|
@@ -33,7 +33,7 @@ sv:
|
|
33
33
|
invalid: Det här har uppstått ett problem
|
34
34
|
success: Projekt skapades med framgång
|
35
35
|
destroy:
|
36
|
-
success: Projektet
|
36
|
+
success: Projektet har tagits bort
|
37
37
|
edit:
|
38
38
|
title: Redigera projekt
|
39
39
|
update: Uppdatera
|
@@ -43,7 +43,7 @@ sv:
|
|
43
43
|
title: Projekt
|
44
44
|
new:
|
45
45
|
create: Skapa
|
46
|
-
title: Nytt
|
46
|
+
title: Nytt projekt
|
47
47
|
update:
|
48
48
|
invalid: Det har varit ett problem att uppdatera projektet
|
49
49
|
success: Projektet har blivit uppdaterat
|
@@ -127,7 +127,7 @@ sv:
|
|
127
127
|
announcement: Meddelande
|
128
128
|
comments_blocked: Kommentarer blockerade
|
129
129
|
show_votes: Visa röster
|
130
|
-
votes_enabled:
|
130
|
+
votes_enabled: Röstning aktiverad
|
131
131
|
orders:
|
132
132
|
checkout:
|
133
133
|
error: Ett fel uppstod när du behandlade din röst
|
data/config/locales/uk.yml
CHANGED
@@ -23,7 +23,7 @@ uk:
|
|
23
23
|
confirm_destroy: Ви дійсно бажаєте видалити цей задум?
|
24
24
|
destroy: Видалити
|
25
25
|
edit: Редагувати
|
26
|
-
new: Додати
|
26
|
+
new: Додати новий задум
|
27
27
|
preview: Попередній перегляд
|
28
28
|
title: Дії
|
29
29
|
admin:
|
@@ -45,7 +45,7 @@ uk:
|
|
45
45
|
title: Задуми
|
46
46
|
new:
|
47
47
|
create: Додати
|
48
|
-
title: Додати
|
48
|
+
title: Додати новий задум
|
49
49
|
update:
|
50
50
|
invalid: При спробі оновити цей задум сталася помилка
|
51
51
|
success: Задум успішно оновлено
|
@@ -9,6 +9,8 @@ Decidim.register_component(:budgets) do |component|
|
|
9
9
|
component.stylesheet = "decidim/budgets/budgets"
|
10
10
|
component.permissions_class_name = "Decidim::Budgets::Permissions"
|
11
11
|
|
12
|
+
component.data_portable_entities = ["Decidim::Budgets::Order"]
|
13
|
+
|
12
14
|
component.actions = %(vote)
|
13
15
|
|
14
16
|
component.on(:before_destroy) do |instance|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-budgets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0.pre1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -10,36 +10,36 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-06-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-comments
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- -
|
19
|
+
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.13.a
|
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.13.a
|
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.
|
35
|
+
version: 0.13.a
|
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.13.a
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: kaminari
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,44 +72,44 @@ dependencies:
|
|
72
72
|
name: decidim-admin
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
|
-
- -
|
75
|
+
- - "~>"
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.
|
77
|
+
version: 0.13.a
|
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.
|
84
|
+
version: 0.13.a
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: decidim-dev
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
|
-
- -
|
89
|
+
- - "~>"
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version: 0.
|
91
|
+
version: 0.13.a
|
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.13.a
|
99
99
|
- !ruby/object:Gem::Dependency
|
100
100
|
name: decidim-proposals
|
101
101
|
requirement: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
|
-
- -
|
103
|
+
- - "~>"
|
104
104
|
- !ruby/object:Gem::Version
|
105
|
-
version: 0.
|
105
|
+
version: 0.13.a
|
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.13.a
|
113
113
|
description: A budgets component for decidim's participatory spaces.
|
114
114
|
email:
|
115
115
|
- josepjaume@gmail.com
|
@@ -160,6 +160,7 @@ files:
|
|
160
160
|
- app/permissions/decidim/budgets/permissions.rb
|
161
161
|
- app/presenters/decidim/budgets/admin_log/project_presenter.rb
|
162
162
|
- app/queries/decidim/budgets/filtered_projects.rb
|
163
|
+
- app/serializers/decidim/budgets/data_portability_budgets_order_serializer.rb
|
163
164
|
- app/services/decidim/budgets/project_search.rb
|
164
165
|
- app/views/decidim/budgets/admin/projects/_form.html.erb
|
165
166
|
- app/views/decidim/budgets/admin/projects/edit.html.erb
|
@@ -230,9 +231,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
230
231
|
version: '2.3'
|
231
232
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
232
233
|
requirements:
|
233
|
-
- - "
|
234
|
+
- - ">"
|
234
235
|
- !ruby/object:Gem::Version
|
235
|
-
version:
|
236
|
+
version: 1.3.1
|
236
237
|
requirements: []
|
237
238
|
rubyforge_project:
|
238
239
|
rubygems_version: 2.7.6
|