decidim-initiatives 0.29.0.rc2 → 0.29.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/cells/decidim/initiatives/initiative_g_cell.rb +4 -6
- data/app/views/decidim/initiatives/admin/exports/_dropdown.html.erb +5 -5
- data/app/views/decidim/initiatives/committee_requests/new.html.erb +2 -2
- data/app/views/decidim/initiatives/initiatives/print.html.erb +1 -1
- data/app/views/decidim/initiatives/initiatives/show.html.erb +1 -1
- data/app/views/layouts/decidim/_initiative_header.html.erb +1 -1
- data/app/views/layouts/decidim/initiative.html.erb +1 -1
- data/app/views/layouts/decidim/initiative_head.html.erb +1 -1
- data/decidim-initiatives.gemspec +4 -1
- data/lib/decidim/api/initiative_api_type.rb +1 -1
- data/lib/decidim/initiatives/version.rb +1 -1
- metadata +18 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82010b6df3f1ce5068602b9e09b0067e82c4e51ce28cc22dce6520a2d3ae805e
|
4
|
+
data.tar.gz: 26c6986c7dfa6f0463294534d9eb649fc47231ed6cdac165f9ae112f5e7aa722
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa5fe6f3c9931ccb90407786f76ed185052889624204e8414cdf619c6386e01a02c563aae98806d8952bb77d5a69d7b33c9a08fb1572c9723793f730854797c4
|
7
|
+
data.tar.gz: d2a5a99d82223842f55d84623463068c5ec16a405138264602cb925837ca082dabf378dcff0d035e6ca341a5280907e189f050acf491cc0c15d5857994363368
|
@@ -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
|
23
|
-
|
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
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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,12 +1,12 @@
|
|
1
1
|
<% add_decidim_meta_tags({
|
2
|
-
image_url: current_initiative.type.attached_uploader(:banner_image).
|
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)
|
6
6
|
}) %>
|
7
7
|
|
8
8
|
<% add_decidim_page_title(translated_attribute(current_initiative.title)) %>
|
9
|
-
<% provide :meta_image_url, current_initiative.type.attached_uploader(:banner_image).
|
9
|
+
<% provide :meta_image_url, current_initiative.type.attached_uploader(:banner_image).url %>
|
10
10
|
|
11
11
|
<%= render layout: "layouts/decidim/shared/layout_center" do %>
|
12
12
|
<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).
|
5
|
+
<%= image_tag current_organization.attached_uploader(:logo).variant_url(: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).
|
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>
|
3
3
|
<div class="row column"
|
4
|
-
style="background-image:url('<%= current_participatory_space.type.attached_uploader(:banner_image).
|
4
|
+
style="background-image:url('<%= current_participatory_space.type.attached_uploader(:banner_image).url %>');">
|
5
5
|
</div>
|
6
6
|
<div class="row collapse column">
|
7
7
|
<div class="columns">
|
@@ -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).
|
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).
|
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
|
|
data/decidim-initiatives.gemspec
CHANGED
@@ -36,7 +36,10 @@ Gem::Specification.new do |s|
|
|
36
36
|
s.add_dependency "decidim-verifications", Decidim::Initiatives.version
|
37
37
|
s.add_dependency "hexapdf", "~> 0.32.0"
|
38
38
|
s.add_dependency "wicked_pdf", "~> 2.1"
|
39
|
-
|
39
|
+
# Latest version of wkhtmltopdf-binary downloads more versions of the binary
|
40
|
+
# This brings problems with deployment in certain environments, as Heroku
|
41
|
+
# Hopefully they will fix this situation soon
|
42
|
+
s.add_dependency "wkhtmltopdf-binary", "= 0.12.6.6"
|
40
43
|
|
41
44
|
s.add_development_dependency "decidim-dev", Decidim::Initiatives.version
|
42
45
|
s.add_development_dependency "decidim-meetings", Decidim::Initiatives.version
|
@@ -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).
|
26
|
+
object.attached_uploader(:banner_image).url
|
27
27
|
end
|
28
28
|
end
|
29
29
|
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.29.0.
|
4
|
+
version: 0.29.0.rc4
|
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-
|
11
|
+
date: 2024-07-30 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.29.0.
|
19
|
+
version: 0.29.0.rc4
|
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.29.0.
|
26
|
+
version: 0.29.0.rc4
|
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.29.0.
|
33
|
+
version: 0.29.0.rc4
|
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.29.0.
|
40
|
+
version: 0.29.0.rc4
|
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.29.0.
|
47
|
+
version: 0.29.0.rc4
|
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.29.0.
|
54
|
+
version: 0.29.0.rc4
|
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.29.0.
|
61
|
+
version: 0.29.0.rc4
|
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.29.0.
|
68
|
+
version: 0.29.0.rc4
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: hexapdf
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,44 +98,44 @@ dependencies:
|
|
98
98
|
name: wkhtmltopdf-binary
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - '='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 0.12.6.6
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - '='
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 0.12.6.6
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: decidim-dev
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - '='
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 0.29.0.
|
117
|
+
version: 0.29.0.rc4
|
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.29.0.
|
124
|
+
version: 0.29.0.rc4
|
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.29.0.
|
131
|
+
version: 0.29.0.rc4
|
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.29.0.
|
138
|
+
version: 0.29.0.rc4
|
139
139
|
description: Participants initiatives plugin for decidim.
|
140
140
|
email:
|
141
141
|
- jsperezg@gmail.com
|