decidim-proposals 0.18.1 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/decidim_proposals_manifest.js +0 -1
  3. data/app/assets/javascripts/decidim/proposals/admin/proposals_form.js.es6 +5 -0
  4. data/app/cells/decidim/proposals/collaborative_draft_m_cell.rb +1 -0
  5. data/app/cells/decidim/proposals/endorsers_list_cell.rb +1 -0
  6. data/app/cells/decidim/proposals/irreversible_action_modal_cell.rb +1 -0
  7. data/app/cells/decidim/proposals/participatory_text_proposal/buttons.erb +8 -8
  8. data/app/cells/decidim/proposals/participatory_text_proposal_cell.rb +13 -0
  9. data/app/cells/decidim/proposals/proposal_link_to_collaborative_draft_cell.rb +4 -8
  10. data/app/cells/decidim/proposals/{proposal_link_to_collaborative_draft → proposal_link_to_rejected_emendation}/show.erb +0 -0
  11. data/app/cells/decidim/proposals/proposal_link_to_rejected_emendation_cell.rb +34 -0
  12. data/app/cells/decidim/proposals/proposal_linked_resources/show.erb +9 -0
  13. data/app/cells/decidim/proposals/proposal_linked_resources_cell.rb +14 -0
  14. data/app/cells/decidim/proposals/proposal_m_cell.rb +3 -0
  15. data/app/commands/decidim/proposals/admin/create_proposal.rb +10 -33
  16. data/app/commands/decidim/proposals/admin/import_participatory_text.rb +2 -0
  17. data/app/commands/decidim/proposals/admin/merge_proposals.rb +1 -0
  18. data/app/commands/decidim/proposals/admin/publish_participatory_text.rb +24 -1
  19. data/app/commands/decidim/proposals/admin/update_participatory_text.rb +11 -7
  20. data/app/commands/decidim/proposals/admin/update_proposal.rb +9 -1
  21. data/app/commands/decidim/proposals/gallery_methods.rb +67 -0
  22. data/app/commands/decidim/proposals/unvote_proposal.rb +1 -0
  23. data/app/commands/decidim/proposals/update_proposal.rb +6 -1
  24. data/app/commands/decidim/proposals/vote_proposal.rb +1 -0
  25. data/app/controllers/concerns/decidim/proposals/collaborative_orderable.rb +1 -15
  26. data/app/controllers/concerns/decidim/proposals/orderable.rb +1 -15
  27. data/app/controllers/decidim/proposals/admin/participatory_texts_controller.rb +5 -0
  28. data/app/controllers/decidim/proposals/application_controller.rb +1 -0
  29. data/app/controllers/decidim/proposals/collaborative_drafts_controller.rb +1 -0
  30. data/app/controllers/decidim/proposals/proposal_endorsements_controller.rb +1 -1
  31. data/app/controllers/decidim/proposals/proposal_votes_controller.rb +1 -1
  32. data/app/controllers/decidim/proposals/proposals_controller.rb +22 -23
  33. data/app/forms/decidim/proposals/admin/proposal_form.rb +3 -0
  34. data/app/forms/decidim/proposals/admin/proposals_fork_form.rb +1 -0
  35. data/app/forms/decidim/proposals/proposal_wizard_create_step_form.rb +1 -0
  36. data/app/helpers/decidim/proposals/admin/proposals_helper.rb +1 -0
  37. data/app/helpers/decidim/proposals/map_helper.rb +1 -1
  38. data/app/helpers/decidim/proposals/proposal_cells_helper.rb +2 -0
  39. data/app/helpers/decidim/proposals/proposal_endorsements_helper.rb +1 -0
  40. data/app/helpers/decidim/proposals/proposal_votes_helper.rb +5 -0
  41. data/app/helpers/decidim/proposals/proposal_wizard_helper.rb +1 -0
  42. data/app/models/decidim/proposals/collaborative_draft.rb +1 -0
  43. data/app/models/decidim/proposals/proposal.rb +4 -8
  44. data/app/models/decidim/proposals/proposal_endorsement.rb +2 -0
  45. data/app/models/decidim/proposals/proposal_vote.rb +2 -0
  46. data/app/permissions/decidim/proposals/admin/permissions.rb +1 -0
  47. data/app/permissions/decidim/proposals/permissions.rb +17 -0
  48. data/app/presenters/decidim/proposals/admin_log/value_types/proposal_state_presenter.rb +1 -0
  49. data/app/presenters/decidim/proposals/collaborative_draft_presenter.rb +1 -1
  50. data/app/presenters/decidim/proposals/proposal_presenter.rb +4 -2
  51. data/app/queries/decidim/proposals/metrics/endorsements_metric_manage.rb +1 -0
  52. data/app/queries/decidim/proposals/metrics/proposal_followers_metric_measure.rb +2 -0
  53. data/app/queries/decidim/proposals/metrics/proposal_participants_metric_measure.rb +3 -0
  54. data/app/queries/decidim/proposals/metrics/proposals_metric_manage.rb +1 -0
  55. data/app/queries/decidim/proposals/metrics/votes_metric_manage.rb +1 -0
  56. data/app/services/decidim/proposals/diff_renderer.rb +43 -0
  57. data/app/services/decidim/proposals/proposal_builder.rb +23 -0
  58. data/app/services/decidim/proposals/proposal_search.rb +5 -3
  59. data/app/views/decidim/proposals/admin/proposals/_form.html.erb +24 -0
  60. data/app/views/decidim/proposals/admin/proposals/_proposal-tr.html.erb +3 -3
  61. data/app/views/decidim/proposals/collaborative_drafts/_collaborative_drafts.html.erb +1 -1
  62. data/app/views/decidim/proposals/collaborative_drafts/show.html.erb +0 -3
  63. data/app/views/decidim/proposals/proposal_endorsements/_identity.html.erb +1 -1
  64. data/app/views/decidim/proposals/proposals/_filters.html.erb +2 -1
  65. data/app/views/decidim/proposals/proposals/_proposal_preview.html.erb +1 -1
  66. data/app/views/decidim/proposals/proposals/_proposals.html.erb +1 -1
  67. data/app/views/decidim/proposals/proposals/index.html.erb +1 -1
  68. data/app/views/decidim/proposals/proposals/participatory_texts/_index.html.erb +1 -1
  69. data/app/views/decidim/proposals/proposals/show.html.erb +13 -9
  70. data/config/locales/ar.yml +2 -0
  71. data/config/locales/ca.yml +20 -0
  72. data/config/locales/cs.yml +20 -0
  73. data/config/locales/de.yml +2 -0
  74. data/config/locales/en.yml +20 -0
  75. data/config/locales/es-MX.yml +18 -0
  76. data/config/locales/es-PY.yml +18 -0
  77. data/config/locales/es.yml +20 -0
  78. data/config/locales/fi-plain.yml +20 -0
  79. data/config/locales/fi.yml +20 -0
  80. data/config/locales/fr.yml +21 -1
  81. data/config/locales/hu.yml +20 -0
  82. data/config/locales/it.yml +16 -0
  83. data/config/locales/nl.yml +20 -0
  84. data/config/locales/sv.yml +15 -0
  85. data/config/locales/tr-TR.yml +7 -0
  86. data/lib/decidim/content_parsers/proposal_parser.rb +2 -2
  87. data/lib/decidim/content_renderers/proposal_renderer.rb +1 -1
  88. data/lib/decidim/proposals/commentable_proposal.rb +1 -0
  89. data/lib/decidim/proposals/component.rb +8 -3
  90. data/lib/decidim/proposals/engine.rb +0 -1
  91. data/lib/decidim/proposals/markdown_to_proposals.rb +11 -7
  92. data/lib/decidim/proposals/proposal_serializer.rb +20 -2
  93. data/lib/decidim/proposals/version.rb +1 -1
  94. metadata +24 -38
  95. data/app/assets/config/decidim_proposals_manifest.css +0 -3
  96. data/app/assets/javascripts/decidim/proposals/social_share.js +0 -2
  97. data/app/assets/stylesheets/decidim/proposals/social_share.css.scss +0 -22
  98. data/config/initializers/social_share_button.rb +0 -5
@@ -77,6 +77,7 @@ tr:
77
77
  components:
78
78
  proposals:
79
79
  actions:
80
+ amend: Değiştir
80
81
  create: yaratmak
81
82
  endorse: desteklemek
82
83
  vote: Oy
@@ -85,6 +86,7 @@ tr:
85
86
  settings:
86
87
  global:
87
88
  amendments_enabled: Değişiklikler etkinleştirildi
89
+ amendments_enabled_help: Etkin ise, her adım için Yasa Değişikliği özelliklerini yapılandırın.
88
90
  announcement: duyuru
89
91
  attachments_allowed: Eklere izin ver
90
92
  can_accumulate_supports_beyond_threshold: Destekleri eşiğin ötesinde biriktirebilir
@@ -107,6 +109,10 @@ tr:
107
109
  threshold_per_proposal: Teklif başına eşik
108
110
  vote_limit: Kullanıcı başına oy sınırı
109
111
  step:
112
+ amendment_creation_enabled: Yasa değişikliği oluşturma etkinleştirildi
113
+ amendment_creation_enabled_help: Katılımcı teklifleri değiştirebilir.
114
+ amendment_promotion_enabled: Değişiklik tanıtımı etkinleştirildi
115
+ amendment_reaction_enabled: Değişikliğe karşı çıkma etkinleştirildi
110
116
  announcement: duyuru
111
117
  automatic_hashtags: Hashtags tüm tekliflere eklendi
112
118
  comments_blocked: Yorumlar engellendi
@@ -684,6 +690,7 @@ tr:
684
690
  other: ve %{count} kişi daha
685
691
  link_to_collaborative_draft_help_text: Bu teklif, işbirlikçi bir taslağın sonucudur. Geçmişi gözden geçirin
686
692
  link_to_collaborative_draft_text: Ortak taslaka bakın
693
+ link_to_proposal_from_emendation_text: Öneriye bakın
687
694
  proposal_accepted_reason: 'Bu teklif kabul edildi çünkü:'
688
695
  proposal_in_evaluation_reason: Bu teklif değerlendiriliyor
689
696
  proposal_rejected_reason: 'Bu teklif reddedildi çünkü:'
@@ -23,9 +23,9 @@ module Decidim
23
23
  URL_REGEX_SCHEME = '(?:http(s)?:\/\/)'
24
24
  URL_REGEX_CONTENT = '[\w.-]+[\w\-\._~:\/?#\[\]@!\$&\'\(\)\*\+,;=.]+'
25
25
  URL_REGEX_END_CHAR = '[\d]'
26
- URL_REGEX = %r{#{URL_REGEX_SCHEME}#{URL_REGEX_CONTENT}/proposals/#{URL_REGEX_END_CHAR}+}i
26
+ URL_REGEX = %r{#{URL_REGEX_SCHEME}#{URL_REGEX_CONTENT}/proposals/#{URL_REGEX_END_CHAR}+}i.freeze
27
27
  # Matches a mentioned Proposal ID (~(d)+ expression)
28
- ID_REGEX = /~(\d+)/
28
+ ID_REGEX = /~(\d+)/.freeze
29
29
 
30
30
  def initialize(content, context)
31
31
  super
@@ -10,7 +10,7 @@ module Decidim
10
10
  # @see BaseRenderer Examples of how to use a content renderer
11
11
  class ProposalRenderer < BaseRenderer
12
12
  # Matches a global id representing a Decidim::User
13
- GLOBAL_ID_REGEX = %r{gid:\/\/([\w-]*\/Decidim::Proposals::Proposal\/(\d+))}i
13
+ GLOBAL_ID_REGEX = %r{gid:\/\/([\w-]*\/Decidim::Proposals::Proposal\/(\d+))}i.freeze
14
14
 
15
15
  # Replaces found Global IDs matching an existing proposal with
16
16
  # a link to its show page. The Global IDs representing an
@@ -31,6 +31,7 @@ module Decidim
31
31
  # Public: Override Commentable concern method `users_to_notify_on_comment_created`
32
32
  def users_to_notify_on_comment_created
33
33
  return (followers | component.participatory_space.admins).uniq if official?
34
+
34
35
  followers
35
36
  end
36
37
 
@@ -15,7 +15,7 @@ Decidim.register_component(:proposals) do |component|
15
15
 
16
16
  component.newsletter_participant_entities = ["Decidim::Proposals::Proposal"]
17
17
 
18
- component.actions = %w(endorse vote create withdraw)
18
+ component.actions = %w(endorse vote create withdraw amend)
19
19
 
20
20
  component.query_type = "Decidim::Proposals::ProposalsType"
21
21
 
@@ -38,6 +38,7 @@ Decidim.register_component(:proposals) do |component|
38
38
  settings.attribute :collaborative_drafts_enabled, type: :boolean, default: false
39
39
  settings.attribute :participatory_texts_enabled, type: :boolean, default: false
40
40
  settings.attribute :amendments_enabled, type: :boolean, default: false
41
+ settings.attribute :amendments_wizard_help_text, type: :text, translated: true, editor: true, required: false
41
42
  settings.attribute :announcement, type: :text, translated: true, editor: true
42
43
  settings.attribute :new_proposal_help_text, type: :text, translated: true, editor: true
43
44
  settings.attribute :proposal_wizard_step_1_help_text, type: :text, translated: true, editor: true
@@ -55,6 +56,10 @@ Decidim.register_component(:proposals) do |component|
55
56
  settings.attribute :comments_blocked, type: :boolean, default: false
56
57
  settings.attribute :creation_enabled, type: :boolean
57
58
  settings.attribute :proposal_answering_enabled, type: :boolean, default: true
59
+ settings.attribute :amendment_creation_enabled, type: :boolean, default: true
60
+ settings.attribute :amendment_reaction_enabled, type: :boolean, default: true
61
+ settings.attribute :amendment_promotion_enabled, type: :boolean, default: true
62
+ settings.attribute :amendments_visibility, type: :string, default: "all"
58
63
  settings.attribute :announcement, type: :text, translated: true, editor: true
59
64
  settings.attribute :automatic_hashtags, type: :text, editor: false, required: false
60
65
  settings.attribute :suggested_hashtags, type: :text, editor: false, required: false
@@ -64,7 +69,7 @@ Decidim.register_component(:proposals) do |component|
64
69
  resource.model_class_name = "Decidim::Proposals::Proposal"
65
70
  resource.template = "decidim/proposals/proposals/linked_proposals"
66
71
  resource.card = "decidim/proposals/proposal"
67
- resource.actions = %w(endorse vote)
72
+ resource.actions = %w(endorse vote amend)
68
73
  resource.searchable = true
69
74
  end
70
75
 
@@ -78,7 +83,7 @@ Decidim.register_component(:proposals) do |component|
78
83
  end
79
84
 
80
85
  component.register_stat :proposals_accepted, primary: true, priority: Decidim::StatsRegistry::HIGH_PRIORITY do |components, start_at, end_at|
81
- Decidim::Proposals::FilteredProposals.for(components, start_at, end_at).accepted.count
86
+ Decidim::Proposals::FilteredProposals.for(components, start_at, end_at).accepted.not_hidden.count
82
87
  end
83
88
 
84
89
  component.register_stat :votes_count, priority: Decidim::StatsRegistry::HIGH_PRIORITY do |components, start_at, end_at|
@@ -51,7 +51,6 @@ module Decidim
51
51
 
52
52
  initializer "decidim_proposals.assets" do |app|
53
53
  app.config.assets.precompile += %w(decidim_proposals_manifest.js
54
- decidim_proposals_manifest.css
55
54
  decidim/proposals/identity_selector_dialog.js)
56
55
  end
57
56
 
@@ -126,6 +126,8 @@ module Decidim
126
126
 
127
127
  private
128
128
 
129
+ # Prevents PaperTrail from creating versions while producing proposals from a document.
130
+ # A first version will be created when publishing the Participatory Text.
129
131
  def create_proposal(title, body, participatory_text_level)
130
132
  attributes = {
131
133
  component: @component,
@@ -134,15 +136,17 @@ module Decidim
134
136
  participatory_text_level: participatory_text_level
135
137
  }
136
138
 
137
- proposal = Decidim::Proposals::ProposalBuilder.create(
138
- attributes: attributes,
139
- author: @component.organization,
140
- action_user: @current_user
141
- )
139
+ PaperTrail.request(enabled: false) do
140
+ proposal = Decidim::Proposals::ProposalBuilder.create(
141
+ attributes: attributes,
142
+ author: @component.organization,
143
+ action_user: @current_user
144
+ )
142
145
 
143
- @last_position = proposal.position
146
+ @last_position = proposal.position
144
147
 
145
- proposal
148
+ proposal
149
+ end
146
150
  end
147
151
  end
148
152
  end
@@ -37,14 +37,22 @@ module Decidim
37
37
  reference: proposal.reference,
38
38
  answer: ensure_translatable(proposal.answer),
39
39
  supports: proposal.proposal_votes_count,
40
- endorsements: proposal.endorsements.count,
40
+ endorsements: {
41
+ total_count: proposal.endorsements.count,
42
+ user_endorsements: user_endorsements
43
+ },
41
44
  comments: proposal.comments.count,
42
45
  attachments: proposal.attachments.count,
43
46
  followers: proposal.followers.count,
44
47
  published_at: proposal.published_at,
45
48
  url: url,
46
49
  meeting_urls: meetings,
47
- related_proposals: related_proposals
50
+ related_proposals: related_proposals,
51
+ is_amend: proposal.emendation?,
52
+ original_proposal: {
53
+ title: proposal&.amendable&.title,
54
+ url: original_proposal_url
55
+ }
48
56
  }
49
57
  end
50
58
 
@@ -71,6 +79,16 @@ module Decidim
71
79
  def url
72
80
  Decidim::ResourceLocatorPresenter.new(proposal).url
73
81
  end
82
+
83
+ def user_endorsements
84
+ proposal.endorsements.for_listing.map { |identity| identity.normalized_author&.name }
85
+ end
86
+
87
+ def original_proposal_url
88
+ return unless proposal.emendation? && proposal.amendable.present?
89
+
90
+ Decidim::ResourceLocatorPresenter.new(proposal.amendable).url
91
+ end
74
92
  end
75
93
  end
76
94
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds decidim-proposals version.
5
5
  module Proposals
6
6
  def self.version
7
- "0.18.1"
7
+ "0.19.0"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-proposals
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.1
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep Jaume Rey Peroy
@@ -60,28 +60,28 @@ dependencies:
60
60
  requirements:
61
61
  - - '='
62
62
  - !ruby/object:Gem::Version
63
- version: 0.18.1
63
+ version: 0.19.0
64
64
  type: :runtime
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - '='
69
69
  - !ruby/object:Gem::Version
70
- version: 0.18.1
70
+ version: 0.19.0
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: decidim-core
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.18.1
77
+ version: 0.19.0
78
78
  type: :runtime
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - '='
83
83
  - !ruby/object:Gem::Version
84
- version: 0.18.1
84
+ version: 0.19.0
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: diffy
87
87
  requirement: !ruby/object:Gem::Requirement
@@ -102,14 +102,14 @@ dependencies:
102
102
  requirements:
103
103
  - - "~>"
104
104
  - !ruby/object:Gem::Version
105
- version: 0.4.0
105
+ version: 0.4.2
106
106
  type: :runtime
107
107
  prerelease: false
108
108
  version_requirements: !ruby/object:Gem::Requirement
109
109
  requirements:
110
110
  - - "~>"
111
111
  - !ruby/object:Gem::Version
112
- version: 0.4.0
112
+ version: 0.4.2
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: kaminari
115
115
  requirement: !ruby/object:Gem::Requirement
@@ -152,104 +152,90 @@ dependencies:
152
152
  - - "~>"
153
153
  - !ruby/object:Gem::Version
154
154
  version: '3.4'
155
- - !ruby/object:Gem::Dependency
156
- name: social-share-button
157
- requirement: !ruby/object:Gem::Requirement
158
- requirements:
159
- - - "~>"
160
- - !ruby/object:Gem::Version
161
- version: '1.0'
162
- type: :runtime
163
- prerelease: false
164
- version_requirements: !ruby/object:Gem::Requirement
165
- requirements:
166
- - - "~>"
167
- - !ruby/object:Gem::Version
168
- version: '1.0'
169
155
  - !ruby/object:Gem::Dependency
170
156
  name: decidim-admin
171
157
  requirement: !ruby/object:Gem::Requirement
172
158
  requirements:
173
159
  - - '='
174
160
  - !ruby/object:Gem::Version
175
- version: 0.18.1
161
+ version: 0.19.0
176
162
  type: :development
177
163
  prerelease: false
178
164
  version_requirements: !ruby/object:Gem::Requirement
179
165
  requirements:
180
166
  - - '='
181
167
  - !ruby/object:Gem::Version
182
- version: 0.18.1
168
+ version: 0.19.0
183
169
  - !ruby/object:Gem::Dependency
184
170
  name: decidim-assemblies
185
171
  requirement: !ruby/object:Gem::Requirement
186
172
  requirements:
187
173
  - - '='
188
174
  - !ruby/object:Gem::Version
189
- version: 0.18.1
175
+ version: 0.19.0
190
176
  type: :development
191
177
  prerelease: false
192
178
  version_requirements: !ruby/object:Gem::Requirement
193
179
  requirements:
194
180
  - - '='
195
181
  - !ruby/object:Gem::Version
196
- version: 0.18.1
182
+ version: 0.19.0
197
183
  - !ruby/object:Gem::Dependency
198
184
  name: decidim-budgets
199
185
  requirement: !ruby/object:Gem::Requirement
200
186
  requirements:
201
187
  - - '='
202
188
  - !ruby/object:Gem::Version
203
- version: 0.18.1
189
+ version: 0.19.0
204
190
  type: :development
205
191
  prerelease: false
206
192
  version_requirements: !ruby/object:Gem::Requirement
207
193
  requirements:
208
194
  - - '='
209
195
  - !ruby/object:Gem::Version
210
- version: 0.18.1
196
+ version: 0.19.0
211
197
  - !ruby/object:Gem::Dependency
212
198
  name: decidim-dev
213
199
  requirement: !ruby/object:Gem::Requirement
214
200
  requirements:
215
201
  - - '='
216
202
  - !ruby/object:Gem::Version
217
- version: 0.18.1
203
+ version: 0.19.0
218
204
  type: :development
219
205
  prerelease: false
220
206
  version_requirements: !ruby/object:Gem::Requirement
221
207
  requirements:
222
208
  - - '='
223
209
  - !ruby/object:Gem::Version
224
- version: 0.18.1
210
+ version: 0.19.0
225
211
  - !ruby/object:Gem::Dependency
226
212
  name: decidim-meetings
227
213
  requirement: !ruby/object:Gem::Requirement
228
214
  requirements:
229
215
  - - '='
230
216
  - !ruby/object:Gem::Version
231
- version: 0.18.1
217
+ version: 0.19.0
232
218
  type: :development
233
219
  prerelease: false
234
220
  version_requirements: !ruby/object:Gem::Requirement
235
221
  requirements:
236
222
  - - '='
237
223
  - !ruby/object:Gem::Version
238
- version: 0.18.1
224
+ version: 0.19.0
239
225
  - !ruby/object:Gem::Dependency
240
226
  name: decidim-participatory_processes
241
227
  requirement: !ruby/object:Gem::Requirement
242
228
  requirements:
243
229
  - - '='
244
230
  - !ruby/object:Gem::Version
245
- version: 0.18.1
231
+ version: 0.19.0
246
232
  type: :development
247
233
  prerelease: false
248
234
  version_requirements: !ruby/object:Gem::Requirement
249
235
  requirements:
250
236
  - - '='
251
237
  - !ruby/object:Gem::Version
252
- version: 0.18.1
238
+ version: 0.19.0
253
239
  description: A proposals component for decidim's participatory spaces.
254
240
  email:
255
241
  - josepjaume@gmail.com
@@ -262,7 +248,6 @@ files:
262
248
  - README.md
263
249
  - Rakefile
264
250
  - app/assets/config/admin/decidim_proposals_manifest.js
265
- - app/assets/config/decidim_proposals_manifest.css
266
251
  - app/assets/config/decidim_proposals_manifest.js
267
252
  - app/assets/documents/decidim/proposals/participatory_texts/participatory_text.md
268
253
  - app/assets/documents/decidim/proposals/participatory_texts/participatory_text.odt
@@ -274,9 +259,7 @@ files:
274
259
  - app/assets/javascripts/decidim/proposals/admin/proposals.es6
275
260
  - app/assets/javascripts/decidim/proposals/admin/proposals_form.js.es6
276
261
  - app/assets/javascripts/decidim/proposals/identity_selector_dialog.js.es6
277
- - app/assets/javascripts/decidim/proposals/social_share.js
278
262
  - app/assets/javascripts/decidim/proposals/utils.js.es6
279
- - app/assets/stylesheets/decidim/proposals/social_share.css.scss
280
263
  - app/cells/decidim/proposals/collaborative_draft_cell.rb
281
264
  - app/cells/decidim/proposals/collaborative_draft_link_to_proposal/show.erb
282
265
  - app/cells/decidim/proposals/collaborative_draft_link_to_proposal_cell.rb
@@ -296,8 +279,11 @@ files:
296
279
  - app/cells/decidim/proposals/participatory_text_proposal_cell.rb
297
280
  - app/cells/decidim/proposals/proposal_activity_cell.rb
298
281
  - app/cells/decidim/proposals/proposal_cell.rb
299
- - app/cells/decidim/proposals/proposal_link_to_collaborative_draft/show.erb
300
282
  - app/cells/decidim/proposals/proposal_link_to_collaborative_draft_cell.rb
283
+ - app/cells/decidim/proposals/proposal_link_to_rejected_emendation/show.erb
284
+ - app/cells/decidim/proposals/proposal_link_to_rejected_emendation_cell.rb
285
+ - app/cells/decidim/proposals/proposal_linked_resources/show.erb
286
+ - app/cells/decidim/proposals/proposal_linked_resources_cell.rb
301
287
  - app/cells/decidim/proposals/proposal_m/footer.erb
302
288
  - app/cells/decidim/proposals/proposal_m/tags.erb
303
289
  - app/cells/decidim/proposals/proposal_m_cell.rb
@@ -322,6 +308,7 @@ files:
322
308
  - app/commands/decidim/proposals/create_proposal_export.rb
323
309
  - app/commands/decidim/proposals/destroy_proposal.rb
324
310
  - app/commands/decidim/proposals/endorse_proposal.rb
311
+ - app/commands/decidim/proposals/gallery_methods.rb
325
312
  - app/commands/decidim/proposals/hashtags_methods.rb
326
313
  - app/commands/decidim/proposals/publish_collaborative_draft.rb
327
314
  - app/commands/decidim/proposals/publish_proposal.rb
@@ -513,7 +500,6 @@ files:
513
500
  - app/views/decidim/proposals/versions/_version.html.erb
514
501
  - app/views/decidim/proposals/versions/index.html.erb
515
502
  - app/views/decidim/proposals/versions/show.html.erb
516
- - config/initializers/social_share_button.rb
517
503
  - config/locales/ar-SA.yml
518
504
  - config/locales/ar.yml
519
505
  - config/locales/ca.yml
@@ -1,3 +0,0 @@
1
- /*
2
- *= link decidim/proposals/social_share.css.scss
3
- */
@@ -1,2 +0,0 @@
1
- // = require social-share-button
2
- // = require_self
@@ -1,22 +0,0 @@
1
- /*
2
- *= require social-share-button
3
- */
4
-
5
- $size: 45px;
6
-
7
- .share-link:hover{
8
- text-decoration: underline;
9
- cursor: pointer;
10
- }
11
-
12
- .social-share-button{
13
- display: inline-block;
14
- vertical-align: top;
15
-
16
- .ssb-icon{
17
- margin-right: 5px;
18
- background-size: $size $size;
19
- height: $size;
20
- width: $size;
21
- }
22
- }