decidim-initiatives 0.32.0.rc3 → 0.32.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/commands/decidim/initiatives/create_initiative.rb +1 -8
- data/app/commands/decidim/initiatives/update_initiative.rb +2 -10
- data/app/forms/decidim/initiatives/initiative_form.rb +1 -1
- data/app/models/decidim/initiative.rb +1 -0
- data/app/views/decidim/initiatives/create_initiative/fill_data.html.erb +1 -1
- data/app/views/decidim/initiatives/initiatives/_form.html.erb +1 -1
- data/config/locales/ca-IT.yml +0 -6
- data/config/locales/cs.yml +3 -0
- data/config/locales/eu.yml +14 -0
- data/config/locales/ja.yml +14 -0
- data/decidim-initiatives.gemspec +1 -1
- data/lib/decidim/initiatives/version.rb +1 -1
- metadata +13 -13
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7f5816a24eff405004468eae43413529b42b134378e51c9c403521dec583dbf9
|
|
4
|
+
data.tar.gz: c17b92b77713892747d6b7d70526c8f6bbb96e2996ba5df1e18fce053fe56c89
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a51a5fb5006f2952cfe295c10b318fc4de92eb655a618de073cc326d447b37cc225c425deb31f10f6591c78032ebd83f1040372cf75e13881de12f8be9de44f3
|
|
7
|
+
data.tar.gz: 6aed9d53ddcf754e1822b598cca76aaffc2850ea9f0e16f550846ac8aa2edfc28911fa73614272c0836b35873581c5b78d83bb231f7a78daa591368d319ecbc0
|
|
@@ -8,7 +8,6 @@ module Decidim
|
|
|
8
8
|
class CreateInitiative < Decidim::Command
|
|
9
9
|
include CurrentLocale
|
|
10
10
|
include ::Decidim::MultipleAttachmentsMethods
|
|
11
|
-
include ::Decidim::GalleryMethods
|
|
12
11
|
|
|
13
12
|
delegate :current_user, to: :form
|
|
14
13
|
# Public: Initializes the command.
|
|
@@ -32,11 +31,6 @@ module Decidim
|
|
|
32
31
|
return broadcast(:invalid) if attachments_invalid?
|
|
33
32
|
end
|
|
34
33
|
|
|
35
|
-
if process_gallery?
|
|
36
|
-
build_gallery
|
|
37
|
-
return broadcast(:invalid) if gallery_invalid?
|
|
38
|
-
end
|
|
39
|
-
|
|
40
34
|
initiative = create_initiative
|
|
41
35
|
|
|
42
36
|
if initiative.persisted?
|
|
@@ -60,7 +54,7 @@ module Decidim
|
|
|
60
54
|
|
|
61
55
|
private
|
|
62
56
|
|
|
63
|
-
attr_reader :form, :
|
|
57
|
+
attr_reader :form, :attachments, :initiative
|
|
64
58
|
|
|
65
59
|
# Creates the initiative and all default components
|
|
66
60
|
def create_initiative
|
|
@@ -72,7 +66,6 @@ module Decidim
|
|
|
72
66
|
|
|
73
67
|
@attached_to = initiative
|
|
74
68
|
create_attachments if process_attachments?
|
|
75
|
-
create_gallery if process_gallery?
|
|
76
69
|
|
|
77
70
|
create_components_for(initiative)
|
|
78
71
|
send_notification(initiative)
|
|
@@ -6,7 +6,6 @@ module Decidim
|
|
|
6
6
|
# existing initiative.
|
|
7
7
|
class UpdateInitiative < Decidim::Command
|
|
8
8
|
include ::Decidim::MultipleAttachmentsMethods
|
|
9
|
-
include ::Decidim::GalleryMethods
|
|
10
9
|
include CurrentLocale
|
|
11
10
|
|
|
12
11
|
delegate :current_user, to: :form
|
|
@@ -35,11 +34,6 @@ module Decidim
|
|
|
35
34
|
return broadcast(:invalid) if attachments_invalid?
|
|
36
35
|
end
|
|
37
36
|
|
|
38
|
-
if process_gallery?
|
|
39
|
-
build_gallery
|
|
40
|
-
return broadcast(:invalid) if gallery_invalid?
|
|
41
|
-
end
|
|
42
|
-
|
|
43
37
|
with_events(with_transaction: true) do
|
|
44
38
|
@initiative = Decidim.traceability.update!(
|
|
45
39
|
initiative,
|
|
@@ -47,10 +41,8 @@ module Decidim
|
|
|
47
41
|
attributes
|
|
48
42
|
)
|
|
49
43
|
|
|
50
|
-
|
|
51
|
-
document_cleanup!
|
|
44
|
+
attachment_cleanup!
|
|
52
45
|
create_attachments if process_attachments?
|
|
53
|
-
create_gallery if process_gallery?
|
|
54
46
|
end
|
|
55
47
|
|
|
56
48
|
broadcast(:ok, initiative)
|
|
@@ -72,7 +64,7 @@ module Decidim
|
|
|
72
64
|
|
|
73
65
|
private
|
|
74
66
|
|
|
75
|
-
attr_reader :form, :initiative
|
|
67
|
+
attr_reader :form, :initiative, :attachments
|
|
76
68
|
|
|
77
69
|
def attributes
|
|
78
70
|
attrs = {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
<% end %>
|
|
42
42
|
|
|
43
43
|
<% if initiative_type.attachments_enabled? %>
|
|
44
|
-
<%= f.attachment :
|
|
44
|
+
<%= f.attachment :attachments,
|
|
45
45
|
multiple: true,
|
|
46
46
|
label: t("decidim.initiatives.form.add_attachments"),
|
|
47
47
|
button_label: t("decidim.initiatives.form.add_attachments"),
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
<% end %>
|
|
48
48
|
|
|
49
49
|
<% if current_initiative.type.attachments_enabled? %>
|
|
50
|
-
<%= form.attachment :
|
|
50
|
+
<%= form.attachment :attachments,
|
|
51
51
|
multiple: true,
|
|
52
52
|
label: t("decidim.initiatives.form.add_attachments"),
|
|
53
53
|
button_label: t("decidim.initiatives.form.add_attachments"),
|
data/config/locales/ca-IT.yml
CHANGED
|
@@ -71,9 +71,6 @@ ca-IT:
|
|
|
71
71
|
decidim/initiative_comittee:
|
|
72
72
|
one: Comitè
|
|
73
73
|
other: Comitès
|
|
74
|
-
decidim/initiative_vote:
|
|
75
|
-
one: Signatura
|
|
76
|
-
other: Signatures
|
|
77
74
|
decidim:
|
|
78
75
|
admin:
|
|
79
76
|
actions:
|
|
@@ -587,9 +584,6 @@ ca-IT:
|
|
|
587
584
|
signature_collection: Signatures recollides
|
|
588
585
|
state: Estat
|
|
589
586
|
type: Tipus
|
|
590
|
-
signatures_count:
|
|
591
|
-
one: " signatura"
|
|
592
|
-
other: " signatures"
|
|
593
587
|
vote_cabin:
|
|
594
588
|
already_voted: Ja has signat
|
|
595
589
|
vote: Signar
|
data/config/locales/cs.yml
CHANGED
|
@@ -444,7 +444,10 @@ cs:
|
|
|
444
444
|
update: Aktualizovat
|
|
445
445
|
events:
|
|
446
446
|
approve_membership_request:
|
|
447
|
+
email_intro: "%{author_name} přijal vaši žádost, abyste se stal součástí propagačního výboru pro iniciativu %{resource_title}."
|
|
447
448
|
email_outro: 'Obdrželi jste toto oznámení, protože jste podali žádost o tuto iniciativu: %{resource_title}'
|
|
449
|
+
create_initiative_event:
|
|
450
|
+
email_subject: Nová iniciativa od %{author_name}
|
|
448
451
|
revoke_membership_request:
|
|
449
452
|
email_outro: 'Obdrželi jste toto oznámení, protože jste podali žádost o tuto iniciativu: %{resource_title}.'
|
|
450
453
|
spawn_committee_request_event:
|
data/config/locales/eu.yml
CHANGED
|
@@ -438,11 +438,25 @@ eu:
|
|
|
438
438
|
update: Eguneratu
|
|
439
439
|
events:
|
|
440
440
|
approve_membership_request:
|
|
441
|
+
email_intro: "%{author_name} parte-hartzaileak onartu du zure eskaera %{resource_title} ekimenaren batzorde bultzatzailean parte hartzeko."
|
|
441
442
|
email_outro: 'Jakinarazpen hau jaso duzu %{resource_title} ekimenarekin bat egitea eskatu duzulako'
|
|
443
|
+
email_subject: "%{author_name} parte-hartzaileak onartu du zure eskaera batzorde bultzatzailean parte hartzeko"
|
|
444
|
+
notification_title: <a href="%{author_profile_url}">%{author_name}</a> parte-hartzaileak onartu du zure eskaera <a href="%{resource_url}">%{resource_title}</a> ekimenaren batzorde bultzatzailean parte hartzeko.
|
|
445
|
+
create_initiative_event:
|
|
446
|
+
email_intro: "%{author_name} parte-hartzaileak, jarraitzen ari zarenak, beste ekimen bat sortu du, egiaztatu eta lagundu:"
|
|
447
|
+
email_outro: Jakinarazpen hau jaso duzu %{author_name} jarraitzen ari zarelako. Aurreko estekan jarraitzeari utzi ahal diozu.
|
|
448
|
+
email_subject: '%{author_name} parte-hartzailearen bete ekimen bat'
|
|
449
|
+
notification_title: '<a href="%{resource_path}">%{resource_title}</a> eztabaida sortu da hemen: <a href="%{author_path}">%{author_name}</a>.'
|
|
442
450
|
revoke_membership_request:
|
|
451
|
+
email_intro: "%{author_name} parte-hartzaileak ukatu egin du zure eskaera %{resource_title} ekimenaren batzorde bultzatzailean parte hartzeko."
|
|
443
452
|
email_outro: 'Jakinarazpen hau jaso duzu eskatu duzulako parte hartzea %{resource_title} ekimenean.'
|
|
453
|
+
email_subject: "%{author_name} parte-hartzaileak ukatu egin du zure eskaera batzorde bultzatzailean parte hartzeko"
|
|
454
|
+
notification_title: <a href="%{author_profile_url}">%{author_name}</a> parte-hartzaileak ukatu du zure eskaera <a href="%{resource_url}">%{resource_title}</a> ekimenaren batzorde bultzatzailean parte hartzeko.
|
|
444
455
|
spawn_committee_request_event:
|
|
456
|
+
email_intro: "%{applicant_name} parte-hartzaileak eskatu du %{resource_title} zure ekimenaren batzorde bultzatzailean parte hartzeko. Eskaera onartzeko edo ukatzeko, zoaz zure ekimenaren edizio-galdetegira."
|
|
445
457
|
email_outro: 'Jakinarazpen hau jaso duzu %{resource_title} ekimenaren egilea zarelako'
|
|
458
|
+
email_subject: "%{applicant_name} parte-hartzaileak zure ekimenarekin bat egin nahi du"
|
|
459
|
+
notification_title: <a href="%{applicant_profile_url}">%{applicant_name}</a> parte-hartzaileak eskatu du <a href="%{resource_url}">%{resource_title}</a> zure ekimenaren batzorde bultzatzailearekin bat egitea. Eskaera onartzeko edo ukatzeko, egin klik hemen <a href="%{resource_url}/edit">aquí</a>.
|
|
446
460
|
form:
|
|
447
461
|
add_attachments: Eranskinak gehitu
|
|
448
462
|
add_image: Irudia gehitu
|
data/config/locales/ja.yml
CHANGED
|
@@ -435,11 +435,25 @@ ja:
|
|
|
435
435
|
update: 更新する
|
|
436
436
|
events:
|
|
437
437
|
approve_membership_request:
|
|
438
|
+
email_intro: "%{author_name} は、イニシアチブ %{resource_title} の推進委員会メンバーとなるためのあなたの申請を承認しました。"
|
|
438
439
|
email_outro: 'この通知を受け取ったのは、イニシアチブ %{resource_title} に応募したためです。'
|
|
440
|
+
email_subject: "%{author_name} が推進委員会へのあなたの申請を承認しました"
|
|
441
|
+
notification_title: <a href="%{author_profile_url}">%{author_name}</a> は、以下のイニシアチブ <a href="%{resource_url}">%{resource_title}</a> の推進委員会のメンバーとなるためのあなたの申請を承認しました。
|
|
442
|
+
create_initiative_event:
|
|
443
|
+
email_intro: "フォロー中の %{author_name} が新しいイニシアチブを作成しました。ぜひ内容を確認し、ご協力ください:"
|
|
444
|
+
email_outro: '%{author_name} をフォローしているため、この通知が届きました。前のリンクからフォローを解除することで、通知の受信を停止できます。'
|
|
445
|
+
email_subject: '%{author_name} による新しいイニシアチブ'
|
|
446
|
+
notification_title: <a href="%{resource_path}">%{resource_title}</a> イニシアチブは <a href="%{author_path}">%{author_name}</a> によって作成されました。
|
|
439
447
|
revoke_membership_request:
|
|
448
|
+
email_intro: "%{author_name} により、以下のイニシアチブ %{resource_title} の推進委員会メンバーとなるための申請が却下されました。"
|
|
440
449
|
email_outro: 'この通知を受け取ったのは、イニシアチブ %{resource_title} に応募したためです。'
|
|
450
|
+
email_subject: "%{author_name} があなたからの推進委員会への申請を却下しました"
|
|
451
|
+
notification_title: <a href="%{author_profile_url}">%{author_name}</a> は、以下のイニシアチブ <a href="%{resource_url}">%{resource_title}</a> の推進委員会メンバーとしての申請を却下しました。
|
|
441
452
|
spawn_committee_request_event:
|
|
453
|
+
email_intro: "%{applicant_name} がイニシアチブ %{resource_title} の推進委員会に応募しました。承認または却下するには、イニシアチブの編集フォームにアクセスしてください。"
|
|
442
454
|
email_outro: 'この通知を受け取ったのは、イニシアチブ %{resource_title} の作成者だからです。'
|
|
455
|
+
email_subject: "%{applicant_name} はあなたのイニシアチブへの参加を希望しています"
|
|
456
|
+
notification_title: <a href="%{applicant_profile_url}">%{applicant_name}</a> がイニシアチブ <a href="%{resource_url}">%{resource_title}</a> の推進委員会に応募しました。承認または拒否するには、<a href="%{resource_url}/edit">こちらをクリック</a>してください。
|
|
443
457
|
form:
|
|
444
458
|
add_attachments: 添付ファイルを追加
|
|
445
459
|
add_image: 画像を追加
|
data/decidim-initiatives.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: decidim-initiatives
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.32.0
|
|
4
|
+
version: 0.32.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Juan Salvador Perez Garcia
|
|
@@ -15,84 +15,84 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - '='
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.32.0
|
|
18
|
+
version: 0.32.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - '='
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.32.0
|
|
25
|
+
version: 0.32.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: decidim-comments
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
30
|
- - '='
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 0.32.0
|
|
32
|
+
version: 0.32.0
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - '='
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 0.32.0
|
|
39
|
+
version: 0.32.0
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: decidim-core
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
44
|
- - '='
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: 0.32.0
|
|
46
|
+
version: 0.32.0
|
|
47
47
|
type: :runtime
|
|
48
48
|
prerelease: false
|
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
51
|
- - '='
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: 0.32.0
|
|
53
|
+
version: 0.32.0
|
|
54
54
|
- !ruby/object:Gem::Dependency
|
|
55
55
|
name: decidim-verifications
|
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements:
|
|
58
58
|
- - '='
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: 0.32.0
|
|
60
|
+
version: 0.32.0
|
|
61
61
|
type: :runtime
|
|
62
62
|
prerelease: false
|
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
|
65
65
|
- - '='
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: 0.32.0
|
|
67
|
+
version: 0.32.0
|
|
68
68
|
- !ruby/object:Gem::Dependency
|
|
69
69
|
name: decidim-dev
|
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements:
|
|
72
72
|
- - '='
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
|
-
version: 0.32.0
|
|
74
|
+
version: 0.32.0
|
|
75
75
|
type: :development
|
|
76
76
|
prerelease: false
|
|
77
77
|
version_requirements: !ruby/object:Gem::Requirement
|
|
78
78
|
requirements:
|
|
79
79
|
- - '='
|
|
80
80
|
- !ruby/object:Gem::Version
|
|
81
|
-
version: 0.32.0
|
|
81
|
+
version: 0.32.0
|
|
82
82
|
- !ruby/object:Gem::Dependency
|
|
83
83
|
name: decidim-meetings
|
|
84
84
|
requirement: !ruby/object:Gem::Requirement
|
|
85
85
|
requirements:
|
|
86
86
|
- - '='
|
|
87
87
|
- !ruby/object:Gem::Version
|
|
88
|
-
version: 0.32.0
|
|
88
|
+
version: 0.32.0
|
|
89
89
|
type: :development
|
|
90
90
|
prerelease: false
|
|
91
91
|
version_requirements: !ruby/object:Gem::Requirement
|
|
92
92
|
requirements:
|
|
93
93
|
- - '='
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
|
-
version: 0.32.0
|
|
95
|
+
version: 0.32.0
|
|
96
96
|
description: Participants initiatives plugin for decidim.
|
|
97
97
|
email:
|
|
98
98
|
- jsperezg@gmail.com
|