decidim-system 0.13.1 → 0.14.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of decidim-system might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/commands/decidim/system/create_default_content_blocks.rb +39 -0
- data/app/commands/decidim/system/register_organization.rb +1 -0
- data/config/locales/fi.yml +2 -2
- data/config/locales/hu.yml +71 -0
- data/config/locales/pt-BR.yml +3 -3
- data/config/locales/sv.yml +9 -9
- data/config/locales/uk.yml +2 -2
- data/lib/decidim/system/version.rb +1 -1
- metadata +17 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1000f1edc5a0c3226ea34141ed7c07924388a0bb3a10731a6b991ff4d358224d
|
4
|
+
data.tar.gz: a5532c8d2a76513ed49bd96615e6cbc9961081e28dfa59bf1701360bdc9d6c61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48ce54d3dfb66201e0559d5b0b66f59ca161572ec718ffe65566f17b74d81c3200a2665cfd2d528bc88aa3d7186350d79031a777b00173579605900ffe97b2c6
|
7
|
+
data.tar.gz: 06f2c86ca21b80444ceb70ee6b02819dbabdbdaa43fdf57a1365c9aab3d04333971b9e111d18cc40c2969bf44502748a6297a6041e47e3345d05be86e6570b3f
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module System
|
5
|
+
# A command with all the business logic to create the default content blocks
|
6
|
+
# for a newly-created organization.
|
7
|
+
class CreateDefaultContentBlocks < Rectify::Command
|
8
|
+
DEFAULT_CONTENT_BLOCKS =
|
9
|
+
[:hero, :sub_hero, :highlighted_content_banner, :how_to_participate, :stats, :footer_sub_hero].freeze
|
10
|
+
|
11
|
+
# Public: Initializes the command.
|
12
|
+
#
|
13
|
+
# form - A form object with the params.
|
14
|
+
def initialize(organization)
|
15
|
+
@organization = organization
|
16
|
+
end
|
17
|
+
|
18
|
+
# Executes the command.
|
19
|
+
#
|
20
|
+
# Returns nothing.
|
21
|
+
def call
|
22
|
+
DEFAULT_CONTENT_BLOCKS.each_with_index do |manifest_name, index|
|
23
|
+
weight = (index + 1) * 10
|
24
|
+
Decidim::ContentBlock.create(
|
25
|
+
decidim_organization_id: organization.id,
|
26
|
+
weight: weight,
|
27
|
+
scope: :homepage,
|
28
|
+
manifest_name: manifest_name,
|
29
|
+
published_at: Time.current
|
30
|
+
)
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
private
|
35
|
+
|
36
|
+
attr_reader :organization
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -27,6 +27,7 @@ module Decidim
|
|
27
27
|
transaction do
|
28
28
|
@organization = create_organization
|
29
29
|
CreateDefaultPages.call(@organization)
|
30
|
+
CreateDefaultContentBlocks.call(@organization)
|
30
31
|
invite_form = invite_user_form(@organization)
|
31
32
|
return broadcast(:invalid) if invite_form.invalid?
|
32
33
|
end
|
data/config/locales/fi.yml
CHANGED
@@ -3,7 +3,7 @@ fi:
|
|
3
3
|
system:
|
4
4
|
actions:
|
5
5
|
confirm_destroy: Haluatko varmasti poistaa tämän?
|
6
|
-
destroy:
|
6
|
+
destroy: Poista
|
7
7
|
edit: Muokkaa
|
8
8
|
new: Uusi
|
9
9
|
save: Tallenna
|
@@ -13,7 +13,7 @@ fi:
|
|
13
13
|
error: Uuden hallinnoijan luonnissa tapahtui virhe.
|
14
14
|
success: Hallinnoija luotu onnistuneesti
|
15
15
|
destroy:
|
16
|
-
success:
|
16
|
+
success: Hallinnoija poistettu onnistuneesti
|
17
17
|
edit:
|
18
18
|
title: Muokkaa hallinnoijaa
|
19
19
|
update: Päivitä
|
@@ -0,0 +1,71 @@
|
|
1
|
+
hu:
|
2
|
+
decidim:
|
3
|
+
system:
|
4
|
+
actions:
|
5
|
+
confirm_destroy: Biztosan törölni szeretnéd ezt?
|
6
|
+
destroy: Törlés
|
7
|
+
edit: Szerkesztés
|
8
|
+
new: Új
|
9
|
+
save: Mentés
|
10
|
+
title: Műveletek
|
11
|
+
admins:
|
12
|
+
create:
|
13
|
+
error: Hiba történt egy új rendszergazda létrehozásakor.
|
14
|
+
success: Admin létrehozása sikeres
|
15
|
+
destroy:
|
16
|
+
success: Admin törlése sikeres
|
17
|
+
edit:
|
18
|
+
title: Admin szerkesztése
|
19
|
+
update: Frissítés
|
20
|
+
index:
|
21
|
+
title: Adminok
|
22
|
+
new:
|
23
|
+
create: Létrehozás
|
24
|
+
title: Új admin
|
25
|
+
update:
|
26
|
+
error: Hiba történt az admin frissítése során.
|
27
|
+
success: Admin frissítése sikeres
|
28
|
+
default_pages:
|
29
|
+
placeholders:
|
30
|
+
content: Adj hozzá értelmes tartalmat az admin irányítópult %{page} statikus oldalához.
|
31
|
+
title: 'Alapértelmezett cím: %{page}'
|
32
|
+
menu:
|
33
|
+
admins: Adminok
|
34
|
+
dashboard: Irányítópult
|
35
|
+
organizations: Szervezetek
|
36
|
+
models:
|
37
|
+
admin:
|
38
|
+
fields:
|
39
|
+
created_at: 'Létrehozva:'
|
40
|
+
email: Email
|
41
|
+
name: Admin
|
42
|
+
validations:
|
43
|
+
email_uniqueness: egy másik admin már használja ezt az email címet
|
44
|
+
organization:
|
45
|
+
actions:
|
46
|
+
save_and_invite: Szervezet létrehozása & admin meghívása
|
47
|
+
fields:
|
48
|
+
created_at: 'Létrehozva:'
|
49
|
+
name: Név
|
50
|
+
name: Szervezet
|
51
|
+
organizations:
|
52
|
+
create:
|
53
|
+
error: Hiba történt egy új szervezet létrehozása során.
|
54
|
+
success: Szervezet létrehozása sikeres.
|
55
|
+
edit:
|
56
|
+
secondary_hosts_hint: Mindegyiket új sorba írd be
|
57
|
+
index:
|
58
|
+
title: Szervezetek
|
59
|
+
new:
|
60
|
+
reference_prefix_hint: A hivatkozási előtag az erőforrások azonosítására szolgál a szervezetek esetében
|
61
|
+
secondary_hosts_hint: Mindegyiket új sorba írd be
|
62
|
+
title: Új szervezet
|
63
|
+
update:
|
64
|
+
error: Hiba történt a szervezet frissítése során.
|
65
|
+
success: Szervezet frissítése sikeres.
|
66
|
+
shared:
|
67
|
+
notices:
|
68
|
+
no_organization_warning_html: 'A kezdéshez hozz létre egy szervezetet. Mielőtt folytatnád, olvasd el az útmutatót: %{guide}.'
|
69
|
+
our_getting_started_guide: első lépések útmutatója
|
70
|
+
titles:
|
71
|
+
dashboard: Irányítópult
|
data/config/locales/pt-BR.yml
CHANGED
@@ -2,11 +2,11 @@ pt-BR:
|
|
2
2
|
decidim:
|
3
3
|
system:
|
4
4
|
actions:
|
5
|
-
confirm_destroy:
|
5
|
+
confirm_destroy: Deseja mesmo excluir isso?
|
6
6
|
destroy: Excluir
|
7
7
|
edit: Editar
|
8
8
|
new: Novo
|
9
|
-
save:
|
9
|
+
save: Salvar
|
10
10
|
title: Ações
|
11
11
|
admins:
|
12
12
|
create:
|
@@ -37,7 +37,7 @@ pt-BR:
|
|
37
37
|
admin:
|
38
38
|
fields:
|
39
39
|
created_at: Criado em
|
40
|
-
email:
|
40
|
+
email: E-mail
|
41
41
|
name: Administrador
|
42
42
|
validations:
|
43
43
|
email_uniqueness: outro administrador com o mesmo e-mail já existe
|
data/config/locales/sv.yml
CHANGED
@@ -7,13 +7,13 @@ sv:
|
|
7
7
|
edit: Redigera
|
8
8
|
new: Ny
|
9
9
|
save: Spara
|
10
|
-
title:
|
10
|
+
title: Åtgärder
|
11
11
|
admins:
|
12
12
|
create:
|
13
13
|
error: Det uppstod ett fel vid skapandet av en ny admin.
|
14
14
|
success: Admin skapades framgångsrikt
|
15
15
|
destroy:
|
16
|
-
success: Admin har
|
16
|
+
success: Admin har raderats
|
17
17
|
edit:
|
18
18
|
title: Redigera admin
|
19
19
|
update: Uppdatera
|
@@ -23,8 +23,8 @@ sv:
|
|
23
23
|
create: Skapa
|
24
24
|
title: Ny admin
|
25
25
|
update:
|
26
|
-
error: Det uppstod ett fel vid uppdateringen av
|
27
|
-
success: Admin uppdaterad
|
26
|
+
error: Det uppstod ett fel vid uppdateringen av denna admin.
|
27
|
+
success: Admin uppdaterad
|
28
28
|
default_pages:
|
29
29
|
placeholders:
|
30
30
|
content: Lägg till meningsfullt innehåll på den statiska sidan %{page} på adminpanelen.
|
@@ -50,19 +50,19 @@ sv:
|
|
50
50
|
name: Organisation
|
51
51
|
organizations:
|
52
52
|
create:
|
53
|
-
error: Det uppstod ett fel vid skapandet av
|
54
|
-
success: Organisationen skapades
|
53
|
+
error: Det uppstod ett fel vid skapandet av ny organisation.
|
54
|
+
success: Organisationen skapades.
|
55
55
|
edit:
|
56
|
-
secondary_hosts_hint: Ange var och en av dem
|
56
|
+
secondary_hosts_hint: Ange var och en av dem på en ny rad
|
57
57
|
index:
|
58
58
|
title: Organisationer
|
59
59
|
new:
|
60
60
|
reference_prefix_hint: Referensprefixet används för att unikt identifiera resurser i alla organisationer
|
61
|
-
secondary_hosts_hint: Ange var och en av dem
|
61
|
+
secondary_hosts_hint: Ange var och en av dem på en ny rad
|
62
62
|
title: Ny organisation
|
63
63
|
update:
|
64
64
|
error: Det uppstod ett fel vid uppdateringen av den här organisationen.
|
65
|
-
success: Organisationen
|
65
|
+
success: Organisationen uppdaterades.
|
66
66
|
shared:
|
67
67
|
notices:
|
68
68
|
no_organization_warning_html: Du måste skapa en organisation för att komma igång. Se till att du läser %{guide} innan du fortsätter.
|
data/config/locales/uk.yml
CHANGED
@@ -53,12 +53,12 @@ uk:
|
|
53
53
|
error: При спробі додати нову організацію сталася помилка.
|
54
54
|
success: Організацію успішно додано.
|
55
55
|
edit:
|
56
|
-
secondary_hosts_hint: Введіть
|
56
|
+
secondary_hosts_hint: Введіть кожен з них в новому рядку
|
57
57
|
index:
|
58
58
|
title: Організації
|
59
59
|
new:
|
60
60
|
reference_prefix_hint: Довідковий префікс використовується для унікального визначення ресурсів в усіх організаціях
|
61
|
-
secondary_hosts_hint: Введіть
|
61
|
+
secondary_hosts_hint: Введіть кожен з них в новому рядку
|
62
62
|
title: Додати організацію
|
63
63
|
update:
|
64
64
|
error: При спробі оновити цю організацію сталася помилка.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-system
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.1
|
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: 2018-
|
13
|
+
date: 2018-09-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: active_link_to
|
@@ -32,14 +32,14 @@ dependencies:
|
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.
|
35
|
+
version: 0.14.1
|
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.14.1
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: devise
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -102,14 +102,20 @@ dependencies:
|
|
102
102
|
requirements:
|
103
103
|
- - "~>"
|
104
104
|
- !ruby/object:Gem::Version
|
105
|
-
version: 1.
|
105
|
+
version: '1.12'
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 1.12.1
|
106
109
|
type: :runtime
|
107
110
|
prerelease: false
|
108
111
|
version_requirements: !ruby/object:Gem::Requirement
|
109
112
|
requirements:
|
110
113
|
- - "~>"
|
111
114
|
- !ruby/object:Gem::Version
|
112
|
-
version: 1.
|
115
|
+
version: '1.12'
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: 1.12.1
|
113
119
|
- !ruby/object:Gem::Dependency
|
114
120
|
name: sassc-rails
|
115
121
|
requirement: !ruby/object:Gem::Requirement
|
@@ -130,14 +136,14 @@ dependencies:
|
|
130
136
|
requirements:
|
131
137
|
- - '='
|
132
138
|
- !ruby/object:Gem::Version
|
133
|
-
version: 0.
|
139
|
+
version: 0.14.1
|
134
140
|
type: :development
|
135
141
|
prerelease: false
|
136
142
|
version_requirements: !ruby/object:Gem::Requirement
|
137
143
|
requirements:
|
138
144
|
- - '='
|
139
145
|
- !ruby/object:Gem::Version
|
140
|
-
version: 0.
|
146
|
+
version: 0.14.1
|
141
147
|
description: System administration to create new organization in an installation.
|
142
148
|
email:
|
143
149
|
- josepjaume@gmail.com
|
@@ -160,6 +166,7 @@ files:
|
|
160
166
|
- app/assets/stylesheets/decidim/system/_tables.scss
|
161
167
|
- app/assets/stylesheets/decidim/system/application.scss
|
162
168
|
- app/commands/decidim/system/create_admin.rb
|
169
|
+
- app/commands/decidim/system/create_default_content_blocks.rb
|
163
170
|
- app/commands/decidim/system/create_default_pages.rb
|
164
171
|
- app/commands/decidim/system/register_organization.rb
|
165
172
|
- app/commands/decidim/system/update_admin.rb
|
@@ -209,6 +216,7 @@ files:
|
|
209
216
|
- config/locales/fi.yml
|
210
217
|
- config/locales/fr.yml
|
211
218
|
- config/locales/gl.yml
|
219
|
+
- config/locales/hu.yml
|
212
220
|
- config/locales/it.yml
|
213
221
|
- config/locales/nl.yml
|
214
222
|
- config/locales/pl.yml
|
@@ -243,7 +251,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
251
|
version: '0'
|
244
252
|
requirements: []
|
245
253
|
rubyforge_project:
|
246
|
-
rubygems_version: 2.7.
|
254
|
+
rubygems_version: 2.7.7
|
247
255
|
signing_key:
|
248
256
|
specification_version: 4
|
249
257
|
summary: Decidim system administration
|