decidim-initiatives 0.28.2 → 0.28.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee9402e2ccd3d11cecca9129ce2f63a68547640abb7699b2e98f23bc47a7b44b
4
- data.tar.gz: 841ab41667a8e6391c9dc779028408d38a3bf0dcace1bf31b5bb1999d1b04c00
3
+ metadata.gz: fad25a695437706aa88211478857b393a4c4505d04036405d36977d6abc49bc0
4
+ data.tar.gz: a5f40a96808072790753cf430c42de1b3257f6835d063227ffc7a505f494b631
5
5
  SHA512:
6
- metadata.gz: fb1bc518c0f6be5a2a1f2a1063c726a4f46d5f502ad6a1f6a420140de228db5b367bd1d0e9c61585c90c8acef7594e6d98ae54a4ea634e7af54d2a839e5b455a
7
- data.tar.gz: 682efa73c8d37f54e0b2959a4cfff03b542e984cd8cfb2a57c53938e7b524bd302d81982a21e8272f9d9c754824a66fb93bc9c4f6fca9ec9c50d538b4ab6585c
6
+ metadata.gz: 7b8dc0d241862f8e8968be4a9c990161ce6546c64b05e9162376bdb96f0ca1ce67c0fe0f2e39524b2a4d3397cab0c6abdcb7c30869276a71c5708122e9201af5
7
+ data.tar.gz: 879470ed3675204fed4710bbcdab54951bda3624a52d0d7d3208b8182e7a1f4609ef2a135c088fce70a5a8242dcfb3facb162bd876a55688aaf2f056d7048c8b
@@ -11,16 +11,14 @@ module Decidim
11
11
  Decidim::Initiatives::Engine.routes.url_helpers.initiative_path(model)
12
12
  end
13
13
 
14
- def has_image?
15
- image.present?
16
- end
17
-
18
14
  def image
19
15
  @image ||= model.attachments.find(&:image?)
20
16
  end
21
17
 
22
- def resource_image_path
23
- image.url if has_image?
18
+ def resource_image_url
19
+ return if image.blank?
20
+
21
+ image.url
24
22
  end
25
23
 
26
24
  def metadata_cell
@@ -15,11 +15,11 @@
15
15
  data-close-on-click="true">
16
16
  <ul class="vertical menu add-components">
17
17
  <% %w(CSV JSON).each do |format| %>
18
- <li class="exports--format--<%= format.downcase %> exports--initiatives">
19
- <%= link_to t("decidim.admin.exports.export_as", name: t("decidim.initiatives.admin.exports.initiatives"),
20
- export_format: format.upcase),
21
- export_initiatives_path(format:, collection_ids:) %>
22
- </li>
18
+ <%= link_to export_initiatives_path(format:, collection_ids:) do %>
19
+ <li class="exports--format--<%= format.downcase %> exports--initiatives">
20
+ <%= t("decidim.admin.exports.export_as", name: t("decidim.initiatives.admin.exports.initiatives"), export_format: format.upcase) %>
21
+ </li>
22
+ <% end %>
23
23
  <% end %>
24
24
  </ul>
25
25
  </div>
@@ -1,5 +1,5 @@
1
1
  <% add_decidim_meta_tags({
2
- image_url: current_initiative.type.attached_uploader(:banner_image).path,
2
+ image_url: current_initiative.type.attached_uploader(:banner_image).url,
3
3
  description: translated_attribute(current_initiative.description),
4
4
  title: translated_attribute(current_initiative.title),
5
5
  url: initiative_url(current_initiative.id),
@@ -7,7 +7,7 @@
7
7
  }) %>
8
8
 
9
9
  <% add_decidim_page_title(translated_attribute(current_initiative.title)) %>
10
- <% provide :meta_image_url, current_initiative.type.attached_uploader(:banner_image).path %>
10
+ <% provide :meta_image_url, current_initiative.type.attached_uploader(:banner_image).url %>
11
11
 
12
12
  <%= render layout: "layouts/decidim/shared/layout_center" do %>
13
13
  <div class="text-center py-10">
@@ -2,7 +2,7 @@
2
2
  <div class="pt-10">
3
3
  <div class="initiative-letterhead">
4
4
  <% if current_organization.logo.present? %>
5
- <%= image_tag current_organization.attached_uploader(:logo).path(variant: :medium), title: current_organization.name %>
5
+ <%= image_tag current_organization.attached_uploader(:logo).variant_url(variant: :medium), title: current_organization.name %>
6
6
  <% end %>
7
7
 
8
8
  <%= current_organization.name %>
@@ -1,5 +1,5 @@
1
1
  <% add_decidim_meta_tags({
2
- image_url: current_initiative.type.attached_uploader(:banner_image).path,
2
+ image_url: current_initiative.type.attached_uploader(:banner_image).url,
3
3
  description: translated_attribute(current_initiative.description),
4
4
  title: translated_attribute(current_initiative.title),
5
5
  url: initiative_url(current_initiative.id),
@@ -1,7 +1,7 @@
1
1
  <div class="process-header">
2
2
  <div class="process-header__inner">
3
3
  <div class="row column process-header__main"
4
- style="background-image:url('<%= current_participatory_space.type.attached_uploader(:banner_image).path %>');">
4
+ style="background-image:url('<%= current_participatory_space.type.attached_uploader(:banner_image).url %>');">
5
5
  </div>
6
6
  <div class="process-header__container row collapse column">
7
7
  <div class="columns mediumlarge-8 process-header__info">
@@ -1,7 +1,7 @@
1
1
  <%= append_javascript_pack_tag "decidim_initiatives" %>
2
2
  <%= append_stylesheet_pack_tag "decidim_initiatives", media: "all" %>
3
3
 
4
- <% provide :meta_image_url, current_participatory_space.type.attached_uploader(:banner_image).path %>
4
+ <% provide :meta_image_url, current_participatory_space.type.attached_uploader(:banner_image).url %>
5
5
 
6
6
  <%= render "layouts/decidim/application" do %>
7
7
  <%= render layout: "layouts/decidim/shared/layout_center" do %>
@@ -1,7 +1,7 @@
1
1
  <%= append_javascript_pack_tag "decidim_initiatives" %>
2
2
  <%= append_stylesheet_pack_tag "decidim_initiatives", media: "all" %>
3
3
 
4
- <% provide :meta_image_url, current_initiative.type.attached_uploader(:banner_image).path %>
4
+ <% provide :meta_image_url, current_initiative.type.attached_uploader(:banner_image).url %>
5
5
 
6
6
  <%= render partial: "layouts/decidim/header/follow_space_menu_bar_button", locals: { participatory_space: current_participatory_space } %>
7
7
 
@@ -363,7 +363,7 @@ fi:
363
363
  finish:
364
364
  back: Takaisin
365
365
  back_to_initiatives: Takaisin aloitteisiin
366
- callout_text: Onnittelut! Aloitteesi on luotu onnistuneesti.
366
+ callout_text: Onnittelut! Aloitteen luominen onnistui.
367
367
  confirm: Aloite lähetetään hallintakäyttäjän tarkastettavaksi ja julkaistavaksi. Julkaisun jälkeen et voi enää muokata aloitetta. Haluatko varmasti jatkaa?
368
368
  edit_my_initiative: Muokkaa aloitettani
369
369
  go_to_my_initiatives: Siirry omiin aloitteisiini
@@ -4,14 +4,15 @@ sv:
4
4
  attributes:
5
5
  initiative:
6
6
  answer: Svar
7
- answer_url: Svars URL
7
+ answer_url: Svars-URL
8
8
  area_id: Område
9
- decidim_scope_id: Omfång
9
+ decidim_scope_id: Indelning
10
10
  decidim_user_group_id: Författare
11
11
  description: Beskrivning
12
12
  hashtag: Hashtag
13
13
  offline_votes: Fysiska underskrifter
14
- scope_id: Omfång
14
+ offline_votes_for_scope: Personliga underskrifter för %{scope_name}
15
+ scope_id: Indelning
15
16
  signature_end_date: Insamling av underskrifter avslutas
16
17
  signature_start_date: Insamling av underskrifter påbörjas
17
18
  signature_type: Typ av underskrifter att samla in
@@ -30,6 +31,7 @@ sv:
30
31
  area_enabled: Gör det möjligt för författare att välja området för deras initiativ
31
32
  attachments_enabled: Aktivera bilagor
32
33
  banner_image: Bannerbild
34
+ child_scope_threshold_enabled: Aktivera underskrifter för underliggande indelningar
33
35
  collect_user_extra_fields: Samla in deltagarens personuppgifter vid underskrift
34
36
  custom_signature_end_date_enabled: Möjliggör för författare att välja slutet på signatursinsamlingsperioden
35
37
  description: Beskrivning
@@ -37,13 +39,15 @@ sv:
37
39
  extra_fields_legal_information: Juridisk information om insamling av personuppgifter
38
40
  minimum_committee_members: Minsta antal kommittémedlemmar
39
41
  online_signature_enabled: Digitala signaturer är aktiverade
42
+ only_global_scope_enabled: Tillåt endast skapande av globala indelningar för namninsamlingar
40
43
  promoting_committee_enabled: Tillåt kampanjutskott
41
44
  signature_type: Signaturtyp
42
45
  title: Titel
43
46
  undo_online_signatures_enabled: Tillåt deltagare att ångra sina online-underskrifter
44
47
  validate_sms_code_on_votes: Lägg till SMS-validering till signeringsprocessen
45
48
  initiatives_type_scope:
46
- decidim_scopes_id: Omfång
49
+ decidim_scopes_id: Indelningar
50
+ supports_required: Stöd som krävs
47
51
  initiatives_vote:
48
52
  date_of_birth: Födelsedatum
49
53
  document_number: Dokumentnummer
@@ -75,6 +79,7 @@ sv:
75
79
  admin:
76
80
  actions:
77
81
  new_initiative_type: Ny initiativtyp
82
+ new_initiative_type_scope: Skapa indelning för namninsamling
78
83
  filters:
79
84
  initiatives:
80
85
  decidim_area_id_eq:
@@ -92,9 +97,13 @@ sv:
92
97
  label: Typ
93
98
  search_placeholder:
94
99
  title_or_description_or_id_string_or_author_name_or_author_nickname_cont: Sök %{collection} med titel, beskrivning, ID eller författarnamn.
100
+ initiatives_settings:
101
+ update:
102
+ error: Ett fel har inträffat.
95
103
  menu:
96
104
  attachments: Bilagor
97
105
  information: Information
106
+ initiative_type_scopes: Indelningar för namninsamlingar
98
107
  initiatives: Initiativ
99
108
  initiatives_settings: Inställningar
100
109
  initiatives_types: Initiativtyper
@@ -110,9 +119,9 @@ sv:
110
119
  title: Initiativ
111
120
  initiatives_type_scope:
112
121
  fields:
113
- scope: Omfång
114
- supports_required: Underskrifter krävs
115
- name: Initiativtypens omfång
122
+ scope: Indelning
123
+ supports_required: Underskrifter som krävs
124
+ name: Namninsamlingstypens indelning
116
125
  initiatives_types:
117
126
  fields:
118
127
  created_at: Skapad
@@ -130,7 +139,7 @@ sv:
130
139
  initiative_title: Initiativtitel
131
140
  name_and_surname: Namn och efternamn
132
141
  postal_code: Postnummer
133
- scope: Omfång
142
+ scope: Indelning
134
143
  time_and_date: Tid och datum
135
144
  timestamp: Tidsstämpel
136
145
  titles:
@@ -232,6 +241,8 @@ sv:
232
241
  edit: Redigera
233
242
  new: Ny
234
243
  photos: Foton
244
+ update:
245
+ error: Ett fel har inträffat.
235
246
  initiatives_settings:
236
247
  edit:
237
248
  update: Uppdatera
@@ -239,13 +250,24 @@ sv:
239
250
  comments: Mest kommenterade
240
251
  random: Slumpmässigt
241
252
  initiatives_type_scopes:
253
+ create:
254
+ error: Ett fel har inträffat.
255
+ success: En ny indelning har skapats för namninsamlingen.
256
+ destroy:
257
+ success: Indelningen har tagit borts.
242
258
  edit:
243
- title: Redigera initiativtypens omfång
259
+ title: Redigera namninsamlingstypens indelning
244
260
  update: Uppdatera
245
261
  new:
246
262
  create: Skapa
247
- title: Skapa omfång till initiativtyp
263
+ title: Skapa indelning till typen av namninsamling
264
+ update:
265
+ error: Ett fel har inträffat.
266
+ success: Indelningen har uppdaterats.
248
267
  initiatives_types:
268
+ create:
269
+ error: Ett fel har inträffat.
270
+ success: En ny typ av namninsamling har skapats.
249
271
  edit:
250
272
  update: Uppdatera
251
273
  form:
@@ -256,6 +278,8 @@ sv:
256
278
  new:
257
279
  create: Skapa
258
280
  title: Ny initiativtyp
281
+ update:
282
+ error: Ett fel har inträffat.
259
283
  admin_log:
260
284
  initiative:
261
285
  publish: "%{user_name} publicerade initiativet %{resource_name}"
@@ -293,7 +317,7 @@ sv:
293
317
  continue: Fortsätt
294
318
  more_information: "(Mer information)"
295
319
  select_area: Välj ett område
296
- select_scope: Välj ett omfång
320
+ select_scope: Välj en indelning
297
321
  finish:
298
322
  back: Tillbaka
299
323
  back_to_initiatives: Tillbaka till initiativ
@@ -374,7 +398,7 @@ sv:
374
398
  area: Område
375
399
  author: Författare
376
400
  myself: Mina initiativ
377
- scope: Omfattning
401
+ scope: Indelning
378
402
  state: Status
379
403
  type: Typ
380
404
  index_header:
@@ -417,7 +441,7 @@ sv:
417
441
  show:
418
442
  area: Område
419
443
  edit: Redigera
420
- scope: Omfång
444
+ scope: Indelning
421
445
  send_to_technical_validation: Skicka till teknisk validering
422
446
  state: Status
423
447
  type: Typ
@@ -461,7 +485,9 @@ sv:
461
485
  states:
462
486
  accepted: Godkända
463
487
  expired: Utgångna
464
- unavailable_scope: Ej tillgängligt omfång
488
+ unavailable_scope: Ej tillgänglig indelning
489
+ update:
490
+ error: Ett fel har inträffat.
465
491
  menu:
466
492
  initiatives: Initiativ
467
493
  resources:
@@ -23,7 +23,7 @@ module Decidim
23
23
  field :initiatives, [Decidim::Initiatives::InitiativeType, { null: true }], "The initiatives that have this type", null: false
24
24
 
25
25
  def banner_image
26
- object.attached_uploader(:banner_image).path
26
+ object.attached_uploader(:banner_image).url
27
27
  end
28
28
  end
29
29
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-initiatives version.
5
5
  module Initiatives
6
6
  def self.version
7
- "0.28.2"
7
+ "0.28.3"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-initiatives
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.2
4
+ version: 0.28.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Salvador Perez Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-16 00:00:00.000000000 Z
11
+ date: 2024-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-admin
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.28.2
19
+ version: 0.28.3
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.28.2
26
+ version: 0.28.3
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: decidim-comments
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.28.2
33
+ version: 0.28.3
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.28.2
40
+ version: 0.28.3
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: decidim-core
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.28.2
47
+ version: 0.28.3
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.28.2
54
+ version: 0.28.3
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: decidim-verifications
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.28.2
61
+ version: 0.28.3
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 0.28.2
68
+ version: 0.28.3
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: hexapdf
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -114,28 +114,28 @@ dependencies:
114
114
  requirements:
115
115
  - - '='
116
116
  - !ruby/object:Gem::Version
117
- version: 0.28.2
117
+ version: 0.28.3
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - '='
123
123
  - !ruby/object:Gem::Version
124
- version: 0.28.2
124
+ version: 0.28.3
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: decidim-meetings
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - '='
130
130
  - !ruby/object:Gem::Version
131
- version: 0.28.2
131
+ version: 0.28.3
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - '='
137
137
  - !ruby/object:Gem::Version
138
- version: 0.28.2
138
+ version: 0.28.3
139
139
  description: Participants initiatives plugin for decidim.
140
140
  email:
141
141
  - jsperezg@gmail.com