decidim-assemblies 0.10.1 → 0.11.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/app/assets/config/decidim_assemblies_manifest.js +1 -0
  4. data/app/assets/javascripts/decidim/assemblies/admin/assemblies.js.es6 +57 -4
  5. data/app/assets/javascripts/decidim/assemblies/assemblies.js.es6 +18 -0
  6. data/app/commands/decidim/assemblies/admin/copy_assembly.rb +9 -9
  7. data/app/commands/decidim/assemblies/admin/create_assembly.rb +33 -1
  8. data/app/commands/decidim/assemblies/admin/create_assembly_admin.rb +2 -2
  9. data/app/commands/decidim/assemblies/admin/update_assembly.rb +31 -1
  10. data/app/constraints/decidim/assemblies/{current_feature.rb → current_component.rb} +7 -7
  11. data/app/controllers/decidim/assemblies/admin/assemblies_controller.rb +17 -6
  12. data/app/controllers/decidim/assemblies/admin/{feature_permissions_controller.rb → component_permissions_controller.rb} +2 -2
  13. data/app/controllers/decidim/assemblies/admin/{features_controller.rb → components_controller.rb} +2 -2
  14. data/app/controllers/decidim/assemblies/admin/participatory_space_private_users_controller.rb +26 -0
  15. data/app/controllers/decidim/assemblies/assemblies_controller.rb +10 -4
  16. data/app/controllers/decidim/assemblies/assembly_widgets_controller.rb +1 -1
  17. data/app/forms/decidim/assemblies/admin/assembly_copy_form.rb +1 -1
  18. data/app/forms/decidim/assemblies/admin/assembly_form.rb +63 -2
  19. data/app/helpers/decidim/assemblies/admin/assemblies_helper.rb +20 -0
  20. data/app/helpers/decidim/assemblies/assemblies_helper.rb +51 -0
  21. data/app/models/decidim/assemblies/abilities/admin/admin_ability.rb +1 -0
  22. data/app/models/decidim/assemblies/abilities/admin/assembly_admin_ability.rb +3 -3
  23. data/app/models/decidim/assemblies/abilities/admin/assembly_moderator_ability.rb +1 -1
  24. data/app/models/decidim/assembly.rb +102 -2
  25. data/app/presenters/decidim/assemblies/admin_log/assembly_presenter.rb +20 -1
  26. data/app/presenters/decidim/assemblies/assembly_stats_presenter.rb +9 -9
  27. data/app/presenters/decidim/log/value_types/assembly_presenter.rb +28 -0
  28. data/app/queries/decidim/assemblies/organization_prioritized_assemblies.rb +3 -2
  29. data/app/queries/decidim/assemblies/organization_published_assemblies.rb +3 -1
  30. data/app/queries/decidim/assemblies/visible_assemblies.rb +20 -0
  31. data/app/views/decidim/assemblies/_assembly.html.erb +1 -1
  32. data/app/views/decidim/assemblies/admin/assemblies/_form.html.erb +76 -1
  33. data/app/views/decidim/assemblies/admin/assemblies/edit.html.erb +3 -4
  34. data/app/views/decidim/assemblies/admin/assemblies/index.html.erb +20 -4
  35. data/app/views/decidim/assemblies/admin/assemblies/new.html.erb +2 -2
  36. data/app/views/decidim/assemblies/admin/assembly_copies/_form.html.erb +1 -1
  37. data/app/views/decidim/assemblies/admin/assembly_copies/new.html.erb +1 -1
  38. data/app/views/decidim/assemblies/admin/assembly_user_roles/edit.html.erb +1 -1
  39. data/app/views/decidim/assemblies/admin/assembly_user_roles/index.html.erb +1 -1
  40. data/app/views/decidim/assemblies/admin/assembly_user_roles/new.html.erb +1 -1
  41. data/app/views/decidim/assemblies/assemblies/_nav_breadcumb.html.erb +11 -0
  42. data/app/views/decidim/assemblies/assemblies/_promoted_assembly.html.erb +1 -1
  43. data/app/views/decidim/assemblies/assemblies/_statistics.html.erb +1 -1
  44. data/app/views/decidim/assemblies/assemblies/index.html.erb +1 -1
  45. data/app/views/decidim/assemblies/assemblies/show.html.erb +129 -7
  46. data/app/views/decidim/assemblies/assembly_widgets/show.html.erb +1 -1
  47. data/app/views/layouts/decidim/_assembly_header.html.erb +13 -13
  48. data/app/views/layouts/decidim/admin/assemblies.html.erb +1 -1
  49. data/app/views/layouts/decidim/admin/assembly.html.erb +15 -10
  50. data/app/views/layouts/decidim/assembly.html.erb +2 -2
  51. data/config/locales/ca.yml +71 -1
  52. data/config/locales/en.yml +71 -1
  53. data/config/locales/es.yml +71 -1
  54. data/config/locales/eu.yml +71 -1
  55. data/config/locales/fi.yml +71 -1
  56. data/config/locales/fr.yml +88 -18
  57. data/config/locales/gl.yml +71 -1
  58. data/config/locales/it.yml +71 -1
  59. data/config/locales/nl.yml +105 -35
  60. data/config/locales/pl.yml +71 -1
  61. data/config/locales/pt-BR.yml +71 -1
  62. data/config/locales/pt.yml +71 -1
  63. data/config/locales/ru.yml +0 -1
  64. data/config/locales/sv.yml +71 -1
  65. data/config/locales/uk.yml +0 -1
  66. data/db/migrate/20180124083729_add_private_to_assemblies.rb +7 -0
  67. data/db/migrate/20180226103942_add_parent_child_relation_to_assemblies.rb +22 -0
  68. data/db/migrate/20180302121116_add_fields_to_assemblies.rb +25 -0
  69. data/lib/decidim/assemblies/admin_engine.rb +11 -5
  70. data/lib/decidim/assemblies/engine.rb +7 -7
  71. data/lib/decidim/assemblies/participatory_space.rb +89 -34
  72. data/lib/decidim/assemblies/test/factories.rb +24 -0
  73. data/lib/decidim/assemblies/version.rb +1 -1
  74. metadata +23 -13
@@ -3,22 +3,40 @@ pl:
3
3
  attributes:
4
4
  assembly:
5
5
  area_id: Powierzchnia
6
+ assembly_type: Typ zespołu
7
+ assembly_type_other: Typ zespołu inny
6
8
  banner_image: Obraz baneru
9
+ closing_date: Data zamknięcia
10
+ closing_date_reason: Termin zamknięcia terminu
11
+ composition: Kompozycja
7
12
  copy_categories: Kopiuj kategorie
13
+ copy_components: Skopiuj komponenty
8
14
  copy_features: Kopiuj funkcje
15
+ created_by: Stworzone przez
16
+ created_by_other: Stworzony przez inne
17
+ creation_date: Data utworzenia
9
18
  decidim_area_id: Powierzchnia
10
19
  decidim_scope_id: Zakres
11
20
  description: Opis
12
21
  developer_group: Grupa programistyczna
13
22
  domain: Domena
23
+ duration: Trwanie
24
+ facebook: Facebook
25
+ github: GitHub
14
26
  hashtag: Hasztag
15
27
  hero_image: Obraz w domu
28
+ included_at: Zawarte w
29
+ instagram: Instagram
30
+ internal_organisation: Organizacja wewnętrzna
31
+ is_transparent: Jest przezroczysty
16
32
  local_area: Okolica
17
33
  meta_scope: Zakres metadanych
34
+ participatory_processes_ids: Powiązane procesy uczestnictwa
18
35
  participatory_scope: Zakres partycypacji
19
36
  participatory_structure: Struktura partycypacji
20
37
  promoted: Lansowany
21
38
  published_at: Opublikowano na
39
+ purpose_of_action: Cel działania
22
40
  scope_id: Zakres
23
41
  scopes_enabled: Zakresy włączone
24
42
  short_description: Krótki opis
@@ -27,6 +45,12 @@ pl:
27
45
  subtitle: Podtytuł
28
46
  target: Cel
29
47
  title: Tytuł
48
+ twitter: Świergot
49
+ youtube: Youtube
50
+ assembly_user_role:
51
+ email: E-mail
52
+ name: Nazwa
53
+ role: Rola
30
54
  decidim:
31
55
  admin:
32
56
  assemblies:
@@ -41,6 +65,8 @@ pl:
41
65
  title: Informacje ogólne
42
66
  index:
43
67
  not_published: Nie opublikowane
68
+ private: Prywatny
69
+ public: Publiczny
44
70
  published: Opublikowany
45
71
  new:
46
72
  create: Utwórz
@@ -89,13 +115,15 @@ pl:
89
115
  attachment_files: Akta
90
116
  attachments: Załączniki
91
117
  categories: Kategorie
92
- features: cechy
118
+ components: składniki
93
119
  info: Informacje
94
120
  moderations: Modernizacje
121
+ private_users: Użytkownicy prywatni
95
122
  models:
96
123
  assembly:
97
124
  fields:
98
125
  created_at: Utworzono w
126
+ private: Prywatny
99
127
  promoted: Podświetlony
100
128
  published: Opublikowany
101
129
  title: Tytuł
@@ -126,11 +154,26 @@ pl:
126
154
  admin:
127
155
  assemblies:
128
156
  form:
157
+ select_a_created_by: Wybierz utworzony przez
129
158
  select_an_area: Wybierz obszar
159
+ select_an_assembly_type: Wybierz typ zespołu
130
160
  slug_help: 'Ślimaki URL służą do generowania adresów URL wskazujących ten zespół. Akceptuje tylko litery, cyfry i myślniki i musi zaczynać się od litery. Przykład: %{url}'
161
+ social_handlers: Społeczny
131
162
  assembly_copies:
132
163
  form:
133
164
  slug_help: 'Ślimaki URL służą do generowania adresów URL wskazujących ten zespół. Akceptuje tylko litery, cyfry i myślniki i musi zaczynać się od litery. Przykład: %{url}'
165
+ assembly_types:
166
+ commission: Prowizja
167
+ consultative_advisory: Konsultacyjne / doradcze
168
+ executive: Wykonawczy
169
+ government: Rząd
170
+ others: Inni
171
+ participatory: Uczestniczy
172
+ working_group: Grupa robocza
173
+ created_by:
174
+ city_council: Rada Miejska
175
+ others: Inni
176
+ public: Publiczny
134
177
  index:
135
178
  title: Zespoły
136
179
  pages:
@@ -140,16 +183,36 @@ pl:
140
183
  see_all_assemblies: Zobacz wszystkie zespoły
141
184
  show:
142
185
  area: Powierzchnia
186
+ assembly_type: Typ zespołu
187
+ children: Złożenia
188
+ closing_date: Data zamknięcia
189
+ composition: Kompozycja
190
+ created_by: Stworzone przez
191
+ creation_date: Data utworzenia
143
192
  developer_group: Grupa programistyczna
193
+ duration: Trwanie
194
+ included_at: Zawarte w
195
+ indefinite_duration: Nieokreślony
196
+ internal_organisation: Organizacja wewnętrzna
197
+ is_transparent:
198
+ 'false': nieprzezroczysty
199
+ 'true': przezroczysty
144
200
  local_area: Okolica
145
201
  participatory_scope: Zakres partycypacji
146
202
  participatory_structure: Struktura partycypacji
203
+ private_space: To jest prywatne zgromadzenie
204
+ purpose_of_action: Cel działania
205
+ read_less: Mniej czytać
206
+ read_more: Czytaj więcej
207
+ related_participatory_processes: Powiązane procesy uczestnictwa
147
208
  scope: Zakres
209
+ social_networks: Portale społecznościowe
148
210
  target: Cel
149
211
  statistics:
150
212
  answers_count: Odpowiedzi
151
213
  assemblies_count: Zespoły
152
214
  comments_count: Komentarze
215
+ debates_count: Debaty
153
216
  endorsements_count: Adnotacje
154
217
  headline: Czynność
155
218
  meetings_count: Spotkania
@@ -161,8 +224,15 @@ pl:
161
224
  surveys_count: Ankiety
162
225
  users_count: Uczestnicy
163
226
  votes_count: Głosowania
227
+ log:
228
+ value_types:
229
+ assembly_presenter:
230
+ not_found: 'Zestaw nie został znaleziony w bazie danych (ID: %{id})'
164
231
  menu:
165
232
  assemblies: Zespoły
233
+ errors:
234
+ messages:
235
+ cannot_be_blank: nie może być puste
166
236
  layouts:
167
237
  decidim:
168
238
  assemblies:
@@ -3,22 +3,40 @@ pt-BR:
3
3
  attributes:
4
4
  assembly:
5
5
  area_id: Área
6
+ assembly_type: Tipo de montagem
7
+ assembly_type_other: Tipo de montagem outro
6
8
  banner_image: Imagem da bandeira
9
+ closing_date: Data de encerramento
10
+ closing_date_reason: Razão da data de encerramento
11
+ composition: Composição
7
12
  copy_categories: Cópiar categorias
13
+ copy_components: Copiar componentes
8
14
  copy_features: Recursos de cópia
15
+ created_by: Criado por
16
+ created_by_other: Criado por outro
17
+ creation_date: Data Criada
9
18
  decidim_area_id: Área
10
19
  decidim_scope_id: Escopo
11
20
  description: Descrição
12
21
  developer_group: Grupo de desenvolvedores
13
22
  domain: Domínio
23
+ duration: Duração
24
+ facebook: Facebook
25
+ github: GitHub
14
26
  hashtag: Hashtag
15
27
  hero_image: Imagem inicial
28
+ included_at: Incluído em
29
+ instagram: Instagram
30
+ internal_organisation: Organização interna
31
+ is_transparent: É transparente
16
32
  local_area: Área Local
17
33
  meta_scope: Metadados do âmbito
34
+ participatory_processes_ids: Processos participativos relacionados
18
35
  participatory_scope: Âmbito participativo
19
36
  participatory_structure: Estrutura participativa
20
37
  promoted: Destacado
21
38
  published_at: Publicado em
39
+ purpose_of_action: Objetivo da ação
22
40
  scope_id: Âmbito
23
41
  scopes_enabled: Âmbitos ativados
24
42
  short_description: Pequena descrição
@@ -27,6 +45,12 @@ pt-BR:
27
45
  subtitle: Subtítulo
28
46
  target: Alvo
29
47
  title: Título
48
+ twitter: Twitter
49
+ youtube: Youtube
50
+ assembly_user_role:
51
+ email: O email
52
+ name: Nome
53
+ role: Função
30
54
  decidim:
31
55
  admin:
32
56
  assemblies:
@@ -41,6 +65,8 @@ pt-BR:
41
65
  title: Informação geral
42
66
  index:
43
67
  not_published: Não publicado
68
+ private: Privado
69
+ public: Público
44
70
  published: Publicados
45
71
  new:
46
72
  create: Criar
@@ -89,13 +115,15 @@ pt-BR:
89
115
  attachment_files: arquivos
90
116
  attachments: Anexos
91
117
  categories: Categorias
92
- features: Características
118
+ components: Componentes
93
119
  info: Info
94
120
  moderations: Moderação
121
+ private_users: Usuários privados
95
122
  models:
96
123
  assembly:
97
124
  fields:
98
125
  created_at: Criado em
126
+ private: Privado
99
127
  promoted: Em destaque
100
128
  published: Publicados
101
129
  title: Título
@@ -126,11 +154,26 @@ pt-BR:
126
154
  admin:
127
155
  assemblies:
128
156
  form:
157
+ select_a_created_by: Selecione um criado por
129
158
  select_an_area: Selecione uma Área
159
+ select_an_assembly_type: Selecione um tipo de montagem
130
160
  slug_help: 'Os slugs de URL são usados ​​para gerar os URLs que apontam para essa assembléia. Apenas aceita letras, números e traços, e deve começar com uma carta. Exemplo: %{url}'
161
+ social_handlers: Social
131
162
  assembly_copies:
132
163
  form:
133
164
  slug_help: 'Os slugs de URL são usados ​​para gerar os URLs que apontam para essa assembléia. Apenas aceita letras, números e traços, e deve começar com uma carta. Exemplo: %{url}'
165
+ assembly_types:
166
+ commission: Comissão
167
+ consultative_advisory: Consultivo / Consultivo
168
+ executive: Executivo
169
+ government: Governo
170
+ others: Outras
171
+ participatory: Participativo
172
+ working_group: Grupo de trabalho
173
+ created_by:
174
+ city_council: Câmara Municipal
175
+ others: Outras
176
+ public: Público
134
177
  index:
135
178
  title: Assembléias
136
179
  pages:
@@ -140,16 +183,36 @@ pt-BR:
140
183
  see_all_assemblies: Veja todas as assembléias
141
184
  show:
142
185
  area: Área
186
+ assembly_type: Tipo de montagem
187
+ children: Assemblies
188
+ closing_date: Data de encerramento
189
+ composition: Composição
190
+ created_by: Criado por
191
+ creation_date: Data Criada
143
192
  developer_group: Grupo de desenvolvedores
193
+ duration: Duração
194
+ included_at: Incluído em
195
+ indefinite_duration: Indeterminado
196
+ internal_organisation: Organização interna
197
+ is_transparent:
198
+ 'false': opaco
199
+ 'true': transparente
144
200
  local_area: Área Local
145
201
  participatory_scope: Âmbito participativo
146
202
  participatory_structure: Estrutura participativa
203
+ private_space: Esta é uma assembléia privada
204
+ purpose_of_action: Objetivo da ação
205
+ read_less: Leia menos
206
+ read_more: Consulte Mais informação
207
+ related_participatory_processes: Processos participativos relacionados
147
208
  scope: Âmbito
209
+ social_networks: Redes sociais
148
210
  target: Alvo
149
211
  statistics:
150
212
  answers_count: Respostas
151
213
  assemblies_count: Assembléias
152
214
  comments_count: Comentários
215
+ debates_count: Debates
153
216
  endorsements_count: Endossos
154
217
  headline: Atividade
155
218
  meetings_count: Reuniões
@@ -161,8 +224,15 @@ pt-BR:
161
224
  surveys_count: pesquisas
162
225
  users_count: Participantes
163
226
  votes_count: Votos
227
+ log:
228
+ value_types:
229
+ assembly_presenter:
230
+ not_found: 'O assembly não foi encontrado no banco de dados (ID: %{id})'
164
231
  menu:
165
232
  assemblies: Assembléias
233
+ errors:
234
+ messages:
235
+ cannot_be_blank: nao pode estar em branco
166
236
  layouts:
167
237
  decidim:
168
238
  assemblies:
@@ -3,22 +3,40 @@ pt:
3
3
  attributes:
4
4
  assembly:
5
5
  area_id: Área
6
+ assembly_type: Tipo de montagem
7
+ assembly_type_other: Tipo de montagem outro
6
8
  banner_image: Imagem da bandeira
9
+ closing_date: Data de encerramento
10
+ closing_date_reason: Razão da data de encerramento
11
+ composition: Composição
7
12
  copy_categories: Cópiar categorias
13
+ copy_components: Copiar componentes
8
14
  copy_features: Recursos de cópia
15
+ created_by: Criado por
16
+ created_by_other: Criado por outro
17
+ creation_date: Data Criada
9
18
  decidim_area_id: Área
10
19
  decidim_scope_id: Escopo
11
20
  description: Descrição
12
21
  developer_group: Grupo de desenvolvedores
13
22
  domain: Domínio
23
+ duration: Duração
24
+ facebook: Facebook
25
+ github: GitHub
14
26
  hashtag: Hashtag
15
27
  hero_image: Imagem inicial
28
+ included_at: Incluído em
29
+ instagram: Instagram
30
+ internal_organisation: Organização interna
31
+ is_transparent: É transparente
16
32
  local_area: Área Local
17
33
  meta_scope: Metadados do âmbito
34
+ participatory_processes_ids: Processos participativos relacionados
18
35
  participatory_scope: Âmbito participativo
19
36
  participatory_structure: Estrutura participativa
20
37
  promoted: Destacado
21
38
  published_at: Publicado em
39
+ purpose_of_action: Objetivo da ação
22
40
  scope_id: Âmbito
23
41
  scopes_enabled: Âmbitos ativados
24
42
  short_description: Pequena descrição
@@ -27,6 +45,12 @@ pt:
27
45
  subtitle: Subtítulo
28
46
  target: Alvo
29
47
  title: Título
48
+ twitter: Twitter
49
+ youtube: Youtube
50
+ assembly_user_role:
51
+ email: O email
52
+ name: Nome
53
+ role: Função
30
54
  decidim:
31
55
  admin:
32
56
  assemblies:
@@ -41,6 +65,8 @@ pt:
41
65
  title: Informação geral
42
66
  index:
43
67
  not_published: Não publicado
68
+ private: Privado
69
+ public: Público
44
70
  published: Publicados
45
71
  new:
46
72
  create: Criar
@@ -89,13 +115,15 @@ pt:
89
115
  attachment_files: arquivos
90
116
  attachments: Anexos
91
117
  categories: Categorias
92
- features: Características
118
+ components: Componentes
93
119
  info: Info
94
120
  moderations: Moderação
121
+ private_users: Usuários privados
95
122
  models:
96
123
  assembly:
97
124
  fields:
98
125
  created_at: Criado em
126
+ private: Privado
99
127
  promoted: Em destaque
100
128
  published: Publicados
101
129
  title: Título
@@ -126,11 +154,26 @@ pt:
126
154
  admin:
127
155
  assemblies:
128
156
  form:
157
+ select_a_created_by: Selecione um criado por
129
158
  select_an_area: Selecione uma Área
159
+ select_an_assembly_type: Selecione um tipo de montagem
130
160
  slug_help: 'Os slugs de URL são usados ​​para gerar os URLs que apontam para essa assembléia. Apenas aceita letras, números e traços, e deve começar com uma carta. Exemplo: %{url}'
161
+ social_handlers: Social
131
162
  assembly_copies:
132
163
  form:
133
164
  slug_help: 'Os slugs de URL são usados ​​para gerar os URLs que apontam para essa assembléia. Apenas aceita letras, números e traços, e deve começar com uma carta. Exemplo: %{url}'
165
+ assembly_types:
166
+ commission: Comissão
167
+ consultative_advisory: Consultivo / Consultivo
168
+ executive: Executivo
169
+ government: Governo
170
+ others: Outras
171
+ participatory: Participativo
172
+ working_group: Grupo de trabalho
173
+ created_by:
174
+ city_council: Câmara Municipal
175
+ others: Outras
176
+ public: Público
134
177
  index:
135
178
  title: Assembléias
136
179
  pages:
@@ -140,16 +183,36 @@ pt:
140
183
  see_all_assemblies: Veja todas as assembléias
141
184
  show:
142
185
  area: Área
186
+ assembly_type: Tipo de montagem
187
+ children: Assemblies
188
+ closing_date: Data de encerramento
189
+ composition: Composição
190
+ created_by: Criado por
191
+ creation_date: Data Criada
143
192
  developer_group: Grupo de desenvolvedores
193
+ duration: Duração
194
+ included_at: Incluído em
195
+ indefinite_duration: Indeterminado
196
+ internal_organisation: Organização interna
197
+ is_transparent:
198
+ 'false': opaco
199
+ 'true': transparente
144
200
  local_area: Área Local
145
201
  participatory_scope: Âmbito participativo
146
202
  participatory_structure: Estrutura participativa
203
+ private_space: Esta é uma assembléia privada
204
+ purpose_of_action: Objetivo da ação
205
+ read_less: Leia menos
206
+ read_more: Consulte Mais informação
207
+ related_participatory_processes: Processos participativos relacionados
147
208
  scope: Âmbito
209
+ social_networks: Redes sociais
148
210
  target: Alvo
149
211
  statistics:
150
212
  answers_count: Respostas
151
213
  assemblies_count: Assembléias
152
214
  comments_count: Comentários
215
+ debates_count: Debates
153
216
  endorsements_count: Endossos
154
217
  headline: Atividade
155
218
  meetings_count: Reuniões
@@ -161,8 +224,15 @@ pt:
161
224
  surveys_count: pesquisas
162
225
  users_count: Participantes
163
226
  votes_count: Votos
227
+ log:
228
+ value_types:
229
+ assembly_presenter:
230
+ not_found: 'O assembly não foi encontrado no banco de dados (ID: %{id})'
164
231
  menu:
165
232
  assemblies: Assembléias
233
+ errors:
234
+ messages:
235
+ cannot_be_blank: nao pode estar em branco
166
236
  layouts:
167
237
  decidim:
168
238
  assemblies:
@@ -64,7 +64,6 @@ ru:
64
64
  assemblies_submenu:
65
65
  attachments: Вложения
66
66
  categories: Категории
67
- features: Составляющие
68
67
  info: Информация
69
68
  moderations: Действия по модерации
70
69
  models:
@@ -3,22 +3,40 @@ sv:
3
3
  attributes:
4
4
  assembly:
5
5
  area_id: Område
6
+ assembly_type: Monteringstyp
7
+ assembly_type_other: Monteringstyp annat
6
8
  banner_image: Bannerbild
9
+ closing_date: Slutdatum
10
+ closing_date_reason: Slutdatum årsskäl
11
+ composition: Sammansättning
7
12
  copy_categories: Kopiera kategorier
13
+ copy_components: Kopiera komponenter
8
14
  copy_features: Kopiera funktioner
15
+ created_by: Skapad av
16
+ created_by_other: Skapat av andra
17
+ creation_date: Skapat datum
9
18
  decidim_area_id: Område
10
19
  decidim_scope_id: Omfattning
11
20
  description: Beskrivning
12
21
  developer_group: Utvecklargrupp
13
22
  domain: Domän
23
+ duration: Varaktighet
24
+ facebook: Facebook
25
+ github: GitHub
14
26
  hashtag: Hashtag
15
27
  hero_image: Hembild
28
+ included_at: Ingår på
29
+ instagram: Instagram
30
+ internal_organisation: Intern organisation
31
+ is_transparent: Är transparent
16
32
  local_area: Lokalt område
17
33
  meta_scope: Omfattning metadata
34
+ participatory_processes_ids: Relaterade deltagande processer
18
35
  participatory_scope: Deltagande räckvidd
19
36
  participatory_structure: Deltagande struktur
20
37
  promoted: främjas
21
38
  published_at: Publicerad på
39
+ purpose_of_action: Syftet med åtgärden
22
40
  scope_id: Omfattning
23
41
  scopes_enabled: Omfattningar aktiverade
24
42
  short_description: Kort beskrivning
@@ -27,6 +45,12 @@ sv:
27
45
  subtitle: Underrubrik
28
46
  target: Mål
29
47
  title: Titel
48
+ twitter: Twitter
49
+ youtube: Youtube
50
+ assembly_user_role:
51
+ email: E-post
52
+ name: Namn
53
+ role: Roll
30
54
  decidim:
31
55
  admin:
32
56
  assemblies:
@@ -41,6 +65,8 @@ sv:
41
65
  title: Allmän information
42
66
  index:
43
67
  not_published: Ej publicerad
68
+ private: Privat
69
+ public: Offentlig
44
70
  published: Publicerad
45
71
  new:
46
72
  create: Skapa
@@ -89,13 +115,15 @@ sv:
89
115
  attachment_files: Filer
90
116
  attachments: Bifogade filer
91
117
  categories: Kategorier
92
- features: Funktioner
118
+ components: Komponenter
93
119
  info: Info
94
120
  moderations: Moderering
121
+ private_users: Privata användare
95
122
  models:
96
123
  assembly:
97
124
  fields:
98
125
  created_at: Skapad vid
126
+ private: Privat
99
127
  promoted: Markerad
100
128
  published: Publicerad
101
129
  title: Titel
@@ -126,11 +154,26 @@ sv:
126
154
  admin:
127
155
  assemblies:
128
156
  form:
157
+ select_a_created_by: Välj en skapad av
129
158
  select_an_area: Välj ett område
159
+ select_an_assembly_type: Välj en monterings typ
130
160
  slug_help: 'URL-slitsar används för att generera de webbadresser som pekar på den här enheten. Accepterar bara bokstäver, siffror och bindestreck, och måste börja med ett brev. Exempel: %{url}'
161
+ social_handlers: Social
131
162
  assembly_copies:
132
163
  form:
133
164
  slug_help: 'URL-slitsar används för att generera de webbadresser som pekar på den här enheten. Accepterar bara bokstäver, siffror och bindestreck, och måste börja med ett brev. Exempel: %{url}'
165
+ assembly_types:
166
+ commission: Comission
167
+ consultative_advisory: Rådgivande / rådgivande
168
+ executive: Verkställande
169
+ government: Regering
170
+ others: Övriga
171
+ participatory: Deltagande
172
+ working_group: Arbetsgrupp
173
+ created_by:
174
+ city_council: Statsråd
175
+ others: Övriga
176
+ public: offentlig
134
177
  index:
135
178
  title: Assemblies
136
179
  pages:
@@ -140,16 +183,36 @@ sv:
140
183
  see_all_assemblies: Se alla församlingar
141
184
  show:
142
185
  area: Område
186
+ assembly_type: Monteringstyp
187
+ children: Assemblies
188
+ closing_date: Slutdatum
189
+ composition: Sammansättning
190
+ created_by: Skapad av
191
+ creation_date: Skapat datum
143
192
  developer_group: Utvecklargrupp
193
+ duration: Varaktighet
194
+ included_at: Ingår på
195
+ indefinite_duration: Obestämd
196
+ internal_organisation: Intern organisation
197
+ is_transparent:
198
+ 'false': ogenomskinlig
199
+ 'true': transparent
144
200
  local_area: Lokalt område
145
201
  participatory_scope: Deltagande räckvidd
146
202
  participatory_structure: Deltagande struktur
203
+ private_space: Detta är en privat sammansättning
204
+ purpose_of_action: Syftet med åtgärden
205
+ read_less: Läs mindre
206
+ read_more: Läs mer
207
+ related_participatory_processes: Relaterade deltagande processer
147
208
  scope: Omfattning
209
+ social_networks: Sociala nätverk
148
210
  target: Mål
149
211
  statistics:
150
212
  answers_count: Svar
151
213
  assemblies_count: Assemblies
152
214
  comments_count: Kommentarer
215
+ debates_count: Debatter
153
216
  endorsements_count: påskrifter
154
217
  headline: Aktivitet
155
218
  meetings_count: Möten
@@ -161,8 +224,15 @@ sv:
161
224
  surveys_count: Undersökningar
162
225
  users_count: Deltagare
163
226
  votes_count: Röster
227
+ log:
228
+ value_types:
229
+ assembly_presenter:
230
+ not_found: 'Samlingen hittades inte i databasen (ID: %{id})'
164
231
  menu:
165
232
  assemblies: Assemblies
233
+ errors:
234
+ messages:
235
+ cannot_be_blank: kan inte vara tom
166
236
  layouts:
167
237
  decidim:
168
238
  assemblies:
@@ -76,7 +76,6 @@ uk:
76
76
  attachment_files: Файли
77
77
  attachments: Вкладені файли
78
78
  categories: Розділи
79
- features: Складові
80
79
  info: Відомості
81
80
  moderations: Дії з модерації
82
81
  models:
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddPrivateToAssemblies < ActiveRecord::Migration[5.1]
4
+ def change
5
+ add_column :decidim_assemblies, :private_space, :boolean, default: false
6
+ end
7
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ class AddParentChildRelationToAssemblies < ActiveRecord::Migration[5.1]
4
+ def change
5
+ unless extension_enabled?("ltree")
6
+ begin
7
+ # required so that test suite works in ci env
8
+ enable_extension "ltree"
9
+ rescue StandardError
10
+ raise <<-MSG.squish
11
+ Decidim requires the ltree extension to be enabled in your PostgreSQL.
12
+ You can do so by running `CREATE EXTENSION IF NOT EXISTS "ltree";` on the current DB as a PostgreSQL
13
+ super user.
14
+ MSG
15
+ end
16
+ end
17
+
18
+ add_reference :decidim_assemblies, :parent, index: { name: :decidim_assemblies_assemblies_on_parent_id }
19
+ add_column :decidim_assemblies, :parents_path, :ltree
20
+ add_column :decidim_assemblies, :children_count, :integer, default: 0
21
+ end
22
+ end