decidim-core 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/decidim.js.es6 +2 -4
- data/app/assets/javascripts/decidim/append_elements.js.es6 +1 -1
- data/app/assets/javascripts/decidim/editor.js.es6 +33 -35
- data/app/assets/javascripts/decidim/filters.js.es6 +9 -15
- data/app/assets/javascripts/decidim/form_filter.component.js.es6 +5 -5
- data/app/assets/javascripts/decidim/form_filter.component.test.js +1 -1
- data/app/assets/javascripts/decidim/foundation.js.es6 +17 -0
- data/app/assets/javascripts/decidim/user_registrations.js.es6 +2 -3
- data/app/assets/stylesheets/decidim/_decidim.scss +9 -0
- data/app/assets/stylesheets/decidim/_variables.scss +5 -11
- data/app/assets/stylesheets/decidim/application.scss.erb +6 -0
- data/app/assets/stylesheets/decidim/extras/_leaflet.scss +13 -0
- data/app/assets/stylesheets/decidim/modules/_buttons.scss +8 -2
- data/app/assets/stylesheets/decidim/modules/_cards.scss +0 -2
- data/app/assets/stylesheets/decidim/modules/_comments.scss +33 -8
- data/app/assets/stylesheets/decidim/modules/{_defintion-data.scss → _definition-data.scss} +0 -0
- data/app/assets/stylesheets/decidim/modules/_filter-tags.scss +24 -0
- data/app/assets/stylesheets/decidim/modules/_layout.scss +1 -9
- data/app/assets/stylesheets/decidim/modules/_list-docs.scss +1 -1
- data/app/assets/stylesheets/decidim/modules/_margins.scss +15 -0
- data/app/assets/stylesheets/decidim/modules/_modules.scss +56 -0
- data/app/assets/stylesheets/decidim/modules/_opinion-toggle.scss +25 -5
- data/app/assets/stylesheets/decidim/modules/_order-by.scss +1 -0
- data/app/assets/stylesheets/decidim/modules/_process-header.scss +2 -1
- data/app/assets/stylesheets/decidim/modules/_process-phase.scss +0 -4
- data/app/assets/stylesheets/decidim/modules/_status-labels.scss +7 -1
- data/app/assets/stylesheets/decidim/modules/_typography.scss +17 -0
- data/app/assets/stylesheets/decidim/utils/_fontface.scss +3 -3
- data/app/assets/stylesheets/decidim/utils/_settings.scss +10 -7
- data/app/commands/decidim/invite_user.rb +2 -2
- data/app/commands/decidim/update_account.rb +48 -0
- data/app/controllers/concerns/decidim/form_factory.rb +1 -1
- data/app/controllers/concerns/decidim/needs_authorization.rb +12 -1
- data/app/controllers/concerns/decidim/user_profile.rb +30 -0
- data/app/controllers/decidim/account_controller.rb +28 -10
- data/app/controllers/decidim/authorizations_controller.rb +21 -8
- data/app/controllers/decidim/devise/invitations_controller.rb +2 -0
- data/app/controllers/decidim/devise/sessions_controller.rb +1 -1
- data/app/controllers/decidim/own_user_groups_controller.rb +14 -0
- data/app/controllers/decidim/participatory_processes_controller.rb +1 -1
- data/app/forms/decidim/account_form.rb +41 -0
- data/app/helpers/decidim/aria_selected_link_to_helper.rb +26 -0
- data/app/helpers/decidim/attachments_helper.rb +15 -0
- data/app/helpers/decidim/filters_helper.rb +2 -3
- data/app/helpers/decidim/layout_helper.rb +29 -6
- data/app/helpers/decidim/resource_helper.rb +64 -0
- data/app/helpers/decidim/user_profile_helper.rb +23 -0
- data/app/mailers/decidim/decidim_devise_mailer.rb +1 -0
- data/app/models/decidim/abilities/everyone.rb +5 -1
- data/app/models/decidim/ability.rb +3 -4
- data/app/models/decidim/{participatory_process_attachment.rb → attachment.rb} +5 -5
- data/app/models/decidim/feature.rb +2 -0
- data/app/models/decidim/organization.rb +1 -0
- data/app/models/decidim/participatory_process.rb +2 -5
- data/app/models/decidim/resource_link.rb +28 -0
- data/app/models/decidim/user.rb +6 -0
- data/app/models/decidim/user_group.rb +10 -1
- data/app/services/decidim/resource_search.rb +1 -4
- data/app/types/decidim/session_type.rb +16 -0
- data/app/types/decidim/user_group_type.rb +20 -0
- data/app/types/decidim/user_type.rb +5 -1
- data/app/uploaders/decidim/attachment_uploader.rb +4 -1
- data/app/uploaders/decidim/avatar_uploader.rb +8 -0
- data/app/uploaders/decidim/banner_image_uploader.rb +1 -0
- data/app/uploaders/decidim/hero_image_uploader.rb +1 -0
- data/app/uploaders/decidim/homepage_image_uploader.rb +5 -1
- data/app/uploaders/decidim/image_uploader.rb +1 -1
- data/app/uploaders/decidim/organization_favicon_uploader.rb +17 -0
- data/app/uploaders/decidim/organization_logo_uploader.rb +2 -2
- data/app/validators/feature_validator.rb +23 -0
- data/app/views/decidim/account/_password_fields.html.erb +2 -0
- data/app/views/decidim/account/_user_groups.html.erb +0 -0
- data/app/views/decidim/account/show.html.erb +24 -29
- data/app/views/decidim/application/_attachments.html.erb +8 -0
- data/app/views/decidim/{participatory_processes → application}/_documents.html.erb +0 -0
- data/app/views/decidim/{participatory_processes → application}/_photos.html.erb +0 -0
- data/app/views/decidim/authorizations/first_login.html.erb +22 -0
- data/app/views/decidim/authorizations/index.html.erb +46 -19
- data/app/views/decidim/devise/omniauth_registrations/new.html.erb +1 -1
- data/app/views/decidim/devise/registrations/new.html.erb +1 -1
- data/app/views/decidim/own_user_groups/index.html.erb +24 -0
- data/app/views/decidim/participatory_process_steps/_participatory_process_step.html.erb +1 -1
- data/app/views/decidim/participatory_process_steps/index.html.erb +3 -1
- data/app/views/decidim/participatory_processes/_participatory_process.html.erb +2 -2
- data/app/views/decidim/participatory_processes/_promoted_process.html.erb +1 -1
- data/app/views/decidim/participatory_processes/index.html.erb +2 -0
- data/app/views/decidim/participatory_processes/show.html.erb +37 -8
- data/app/views/decidim/shared/_comments.html.erb +0 -0
- data/app/views/layouts/decidim/_application.html.erb +5 -3
- data/app/views/layouts/decidim/_header.html.erb +4 -4
- data/app/views/layouts/decidim/_logo.html.erb +29 -17
- data/app/views/layouts/decidim/_process_header.html.erb +15 -3
- data/app/views/layouts/decidim/_process_header_steps.html.erb +1 -1
- data/app/views/layouts/decidim/_user_menu.html.erb +3 -0
- data/app/views/layouts/decidim/mailer.html.erb +1 -1
- data/app/views/layouts/decidim/user_profile.html.erb +35 -0
- data/app/views/pages/home.html.erb +5 -139
- data/app/views/pages/home/_extended.html.erb +48 -0
- data/app/views/pages/home/_hero.html.erb +20 -0
- data/app/views/pages/home/_highlighted_processes.html.erb +37 -0
- data/app/views/pages/home/_statistics.html.erb +22 -0
- data/app/views/pages/home/_sub_hero.html.erb +11 -0
- data/config/i18n-tasks.yml +1 -0
- data/config/initializers/foundation_rails_helper.rb +2 -0
- data/config/locales/ca.yml +69 -33
- data/config/locales/en.yml +86 -29
- data/config/locales/es.yml +68 -32
- data/config/routes.rb +8 -3
- data/db/migrate/20161116115156_create_attachments.rb +0 -2
- data/db/migrate/20170113150627_create_resource_links.rb +10 -0
- data/db/migrate/20170123134023_make_attachments_polymorphic.rb +18 -0
- data/db/migrate/20170123140857_add_avatar_to_user_groups.rb +5 -0
- data/db/migrate/20170125135937_rename_attachable_to_attached_to.rb +11 -0
- data/db/migrate/20170125152026_add_weight_to_features.rb +5 -0
- data/db/migrate/20170126151123_add_extra_info_to_processes.rb +8 -0
- data/db/migrate/20170128140553_add_timestamps_to_identities.rb +5 -0
- data/db/migrate/20170130132833_add_favicon_to_decidim_organizations.rb +5 -0
- data/db/seeds.rb +38 -6
- data/lib/decidim/authorable.rb +32 -0
- data/lib/decidim/core.rb +37 -0
- data/lib/decidim/core/engine.rb +2 -3
- data/lib/decidim/core/test.rb +6 -0
- data/lib/decidim/core/test/factories.rb +24 -3
- data/lib/decidim/core/test/shared_examples/authorable.rb +31 -0
- data/lib/decidim/core/test/shared_examples/has_attachments.rb +29 -0
- data/lib/decidim/core/test/shared_examples/has_category.rb +10 -0
- data/lib/decidim/core/test/shared_examples/has_feature.rb +20 -0
- data/lib/decidim/core/test/shared_examples/has_scope.rb +10 -0
- data/lib/decidim/core/version.rb +1 -1
- data/lib/decidim/feature_manifest.rb +31 -1
- data/lib/decidim/features/base_controller.rb +10 -0
- data/lib/decidim/features/settings_manifest.rb +1 -0
- data/lib/decidim/has_attachment.rb +32 -0
- data/lib/decidim/has_attachments.rb +32 -0
- data/lib/decidim/has_category.rb +21 -0
- data/lib/decidim/has_feature.rb +20 -0
- data/lib/decidim/has_scope.rb +21 -0
- data/lib/decidim/query_extensions.rb +2 -2
- data/lib/decidim/resource_manifest.rb +80 -0
- data/lib/decidim/resourceable.rb +85 -0
- metadata +67 -40
- data/app/assets/javascripts/decidim/inline_svg.js.es6 +0 -12
- data/app/assets/stylesheets/decidim/application.sass +0 -12
- data/app/assets/stylesheets/decidim/extras/_turbolinks.scss +0 -3
- data/app/assets/stylesheets/decidim/modules/_popularity.scss +0 -74
- data/app/assets/stylesheets/decidim/utils/_variables.scss +0 -22
- data/app/views/decidim/account/_authorizations.html.erb +0 -52
- data/vendor/assets/javascripts/owl.carousel.min.js +0 -47
- data/vendor/assets/javascripts/svg-injector.js +0 -464
@@ -0,0 +1,80 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module Decidim
|
3
|
+
# Features inside a component can expose different Resources, these resources
|
4
|
+
# will be used to be linked between each other and other possible features.
|
5
|
+
#
|
6
|
+
# This class sets a scheme to expose these resources. It shouldn't be
|
7
|
+
# used directly, you should use `register_resource` inside a feature.
|
8
|
+
#
|
9
|
+
# Example:
|
10
|
+
# feature.register_resource do |resource|
|
11
|
+
# resource.model_class = Decidim::MyEngine::MyModel
|
12
|
+
# resource.template = "decidim/myengine/myengine/linked_models"
|
13
|
+
# end
|
14
|
+
#
|
15
|
+
class ResourceManifest
|
16
|
+
include ActiveModel::Model
|
17
|
+
include Virtus.model
|
18
|
+
|
19
|
+
# The name of the resource we are exposing.
|
20
|
+
attribute :name, String
|
21
|
+
|
22
|
+
# The parent feature manifest
|
23
|
+
attribute :feature_manifest, Decidim::FeatureManifest
|
24
|
+
|
25
|
+
# The ActiveRecord class name of the model we're exposing
|
26
|
+
attribute :model_class_name, String
|
27
|
+
|
28
|
+
# The name of the named Rails route to create the url to the resource.
|
29
|
+
# When not explicitly set, it will use the model name.
|
30
|
+
attribute :route_name, String
|
31
|
+
|
32
|
+
# The template to use to render the collection of a resource.
|
33
|
+
attribute :template, String
|
34
|
+
|
35
|
+
validates :feature_manifest, :model_class_name, :route_name, presence: true
|
36
|
+
|
37
|
+
# Finds an ActiveRecord::Relation of the resource `model_class`, scoped to the
|
38
|
+
# given feature. This way you can find resources from another engine without
|
39
|
+
# actually coupling both engines.
|
40
|
+
#
|
41
|
+
# feature - a Decidim::Feature
|
42
|
+
#
|
43
|
+
# Returns an ActiveRecord::Relation.
|
44
|
+
def resource_scope(feature)
|
45
|
+
feature_ids = Decidim::Feature.where(participatory_process: feature.participatory_process, manifest_name: feature_manifest.name).pluck(:id)
|
46
|
+
return model_class.none if feature_ids.empty?
|
47
|
+
|
48
|
+
model_class.where(feature: feature_ids)
|
49
|
+
end
|
50
|
+
|
51
|
+
# Finds the current class with the given `model_class_name`
|
52
|
+
# in order to avoid problems with Rails' autoloading.
|
53
|
+
#
|
54
|
+
# Returns a class.
|
55
|
+
def model_class
|
56
|
+
model_class_name.constantize
|
57
|
+
end
|
58
|
+
|
59
|
+
# The name of the resource we are exposing.
|
60
|
+
#
|
61
|
+
# Returns a String.
|
62
|
+
def name
|
63
|
+
super || model_class_name.demodulize.underscore.pluralize.to_sym
|
64
|
+
end
|
65
|
+
|
66
|
+
# The name of the named Rails route to create the url to the resource.
|
67
|
+
#
|
68
|
+
# Returns a String.
|
69
|
+
def route_name
|
70
|
+
super || model_class_name.demodulize.underscore
|
71
|
+
end
|
72
|
+
|
73
|
+
# The engine for the resource. It will be used to build routes.
|
74
|
+
#
|
75
|
+
# Returns a Rails::Engine.
|
76
|
+
def mounted_engine_name
|
77
|
+
"decidim_#{feature_manifest.name}"
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
require "active_support/concern"
|
3
|
+
|
4
|
+
module Decidim
|
5
|
+
# A concern with the features needed when you want a model to be able to create
|
6
|
+
# links from it to another resource.
|
7
|
+
module Resourceable
|
8
|
+
extend ActiveSupport::Concern
|
9
|
+
|
10
|
+
included do
|
11
|
+
# An association with all the links that point to this model.
|
12
|
+
has_many :resource_links_to, as: :to, class_name: "Decidim::ResourceLink"
|
13
|
+
|
14
|
+
# An association with all the links that are originated from this model.
|
15
|
+
has_many :resource_links_from, as: :from, class_name: "Decidim::ResourceLink"
|
16
|
+
|
17
|
+
# Finds all the linked resources to or from this model for a given resource
|
18
|
+
# name and link name.
|
19
|
+
#
|
20
|
+
# resource_name - The String name of the resource manifest exposed by a feature.
|
21
|
+
# link_name - The String name of the link between this model and the target resource.
|
22
|
+
#
|
23
|
+
# Returns an ActiveRecord::Relation.
|
24
|
+
def linked_resources(resource_name, link_name)
|
25
|
+
scope = sibling_scope(resource_name)
|
26
|
+
|
27
|
+
from = scope
|
28
|
+
.joins(:resource_links_from)
|
29
|
+
.where(decidim_resource_links: { name: link_name, to_id: id, to_type: self.class.name })
|
30
|
+
|
31
|
+
to = scope
|
32
|
+
.joins(:resource_links_to)
|
33
|
+
.where(decidim_resource_links: { name: link_name, from_id: id, from_type: self.class.name })
|
34
|
+
|
35
|
+
scope.where(id: from).or(scope.where(id: to)).distinct
|
36
|
+
end
|
37
|
+
|
38
|
+
# Builds an ActiveRecord::Relation in order to load all the resources
|
39
|
+
# that are in the same parent as this model.
|
40
|
+
#
|
41
|
+
# resource_name - The String name of the resource manifest exposed by a feature.
|
42
|
+
#
|
43
|
+
# Returns an ActiveRecord::Relation.
|
44
|
+
def sibling_scope(resource_name)
|
45
|
+
manifest = Decidim.find_resource_manifest(resource_name)
|
46
|
+
return self.class.none unless manifest
|
47
|
+
|
48
|
+
scope = manifest.resource_scope(feature)
|
49
|
+
scope = scope.where("#{self.class.table_name}.id != ?", id) if manifest.model_class == self.class
|
50
|
+
|
51
|
+
scope
|
52
|
+
end
|
53
|
+
|
54
|
+
# Links the given resources to this model, replaces any previous links with the same name.
|
55
|
+
#
|
56
|
+
# resources - An Array or ActiveRecord::Base object to link to.
|
57
|
+
# link_name - The String name to use as the name between the resources.
|
58
|
+
# data - An optional Hash to add to the link.
|
59
|
+
#
|
60
|
+
# Returns nothing.
|
61
|
+
def link_resources(resources, link_name, data = {})
|
62
|
+
transaction do
|
63
|
+
resource_links_from.where(name: link_name).delete_all
|
64
|
+
Array.wrap(resources).each do |resource|
|
65
|
+
Decidim::ResourceLink.create!(
|
66
|
+
from: self,
|
67
|
+
to: resource,
|
68
|
+
name: link_name,
|
69
|
+
data: data
|
70
|
+
)
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
class_methods do
|
77
|
+
# Finds the resource manifest for the model.
|
78
|
+
#
|
79
|
+
# Returns a Decidim::ResourceManifest
|
80
|
+
def resource_manifest
|
81
|
+
Decidim.find_resource_manifest(self)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
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: 2017-01
|
13
|
+
date: 2017-02-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -116,26 +116,6 @@ dependencies:
|
|
116
116
|
- - "~>"
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: 4.2.2
|
119
|
-
- !ruby/object:Gem::Dependency
|
120
|
-
name: turbolinks
|
121
|
-
requirement: !ruby/object:Gem::Requirement
|
122
|
-
requirements:
|
123
|
-
- - "~>"
|
124
|
-
- !ruby/object:Gem::Version
|
125
|
-
version: 5.0.0
|
126
|
-
- - ">="
|
127
|
-
- !ruby/object:Gem::Version
|
128
|
-
version: 5.0.0.1
|
129
|
-
type: :runtime
|
130
|
-
prerelease: false
|
131
|
-
version_requirements: !ruby/object:Gem::Requirement
|
132
|
-
requirements:
|
133
|
-
- - "~>"
|
134
|
-
- !ruby/object:Gem::Version
|
135
|
-
version: 5.0.0
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: 5.0.0.1
|
139
119
|
- !ruby/object:Gem::Dependency
|
140
120
|
name: carrierwave
|
141
121
|
requirement: !ruby/object:Gem::Requirement
|
@@ -198,14 +178,14 @@ dependencies:
|
|
198
178
|
requirements:
|
199
179
|
- - "~>"
|
200
180
|
- !ruby/object:Gem::Version
|
201
|
-
version: 3.3.
|
181
|
+
version: 3.3.3
|
202
182
|
type: :runtime
|
203
183
|
prerelease: false
|
204
184
|
version_requirements: !ruby/object:Gem::Requirement
|
205
185
|
requirements:
|
206
186
|
- - "~>"
|
207
187
|
- !ruby/object:Gem::Version
|
208
|
-
version: 3.3.
|
188
|
+
version: 3.3.3
|
209
189
|
- !ruby/object:Gem::Dependency
|
210
190
|
name: roadie-rails
|
211
191
|
requirement: !ruby/object:Gem::Requirement
|
@@ -394,28 +374,28 @@ dependencies:
|
|
394
374
|
requirements:
|
395
375
|
- - '='
|
396
376
|
- !ruby/object:Gem::Version
|
397
|
-
version: 0.0.
|
377
|
+
version: 0.0.3
|
398
378
|
type: :runtime
|
399
379
|
prerelease: false
|
400
380
|
version_requirements: !ruby/object:Gem::Requirement
|
401
381
|
requirements:
|
402
382
|
- - '='
|
403
383
|
- !ruby/object:Gem::Version
|
404
|
-
version: 0.0.
|
384
|
+
version: 0.0.3
|
405
385
|
- !ruby/object:Gem::Dependency
|
406
386
|
name: decidim-dev
|
407
387
|
requirement: !ruby/object:Gem::Requirement
|
408
388
|
requirements:
|
409
389
|
- - '='
|
410
390
|
- !ruby/object:Gem::Version
|
411
|
-
version: 0.0.
|
391
|
+
version: 0.0.3
|
412
392
|
type: :development
|
413
393
|
prerelease: false
|
414
394
|
version_requirements: !ruby/object:Gem::Requirement
|
415
395
|
requirements:
|
416
396
|
- - '='
|
417
397
|
- !ruby/object:Gem::Version
|
418
|
-
version: 0.0.
|
398
|
+
version: 0.0.3
|
419
399
|
description: Adds core features so other engines can hook into the framework.
|
420
400
|
email:
|
421
401
|
- josepjaume@gmail.com
|
@@ -452,13 +432,14 @@ files:
|
|
452
432
|
- app/assets/javascripts/decidim/filters.js.es6
|
453
433
|
- app/assets/javascripts/decidim/form_filter.component.js.es6
|
454
434
|
- app/assets/javascripts/decidim/form_filter.component.test.js
|
455
|
-
- app/assets/javascripts/decidim/
|
435
|
+
- app/assets/javascripts/decidim/foundation.js.es6
|
456
436
|
- app/assets/javascripts/decidim/user_registrations.js.es6
|
437
|
+
- app/assets/stylesheets/decidim/_decidim.scss
|
457
438
|
- app/assets/stylesheets/decidim/_variables.scss
|
458
|
-
- app/assets/stylesheets/decidim/application.
|
439
|
+
- app/assets/stylesheets/decidim/application.scss.erb
|
459
440
|
- app/assets/stylesheets/decidim/editor.sass
|
460
441
|
- app/assets/stylesheets/decidim/email.css
|
461
|
-
- app/assets/stylesheets/decidim/extras/
|
442
|
+
- app/assets/stylesheets/decidim/extras/_leaflet.scss
|
462
443
|
- app/assets/stylesheets/decidim/layouts/_home.scss
|
463
444
|
- app/assets/stylesheets/decidim/layouts/_user.scss
|
464
445
|
- app/assets/stylesheets/decidim/layouts/_view.scss
|
@@ -470,8 +451,9 @@ files:
|
|
470
451
|
- app/assets/stylesheets/decidim/modules/_cards.scss
|
471
452
|
- app/assets/stylesheets/decidim/modules/_comments.scss
|
472
453
|
- app/assets/stylesheets/decidim/modules/_cookie-bar.scss
|
473
|
-
- app/assets/stylesheets/decidim/modules/
|
454
|
+
- app/assets/stylesheets/decidim/modules/_definition-data.scss
|
474
455
|
- app/assets/stylesheets/decidim/modules/_extra.scss
|
456
|
+
- app/assets/stylesheets/decidim/modules/_filter-tags.scss
|
475
457
|
- app/assets/stylesheets/decidim/modules/_filters.scss
|
476
458
|
- app/assets/stylesheets/decidim/modules/_flag.scss
|
477
459
|
- app/assets/stylesheets/decidim/modules/_footer.scss
|
@@ -482,10 +464,11 @@ files:
|
|
482
464
|
- app/assets/stylesheets/decidim/modules/_list-docs.scss
|
483
465
|
- app/assets/stylesheets/decidim/modules/_main-container.scss
|
484
466
|
- app/assets/stylesheets/decidim/modules/_map.scss
|
467
|
+
- app/assets/stylesheets/decidim/modules/_margins.scss
|
468
|
+
- app/assets/stylesheets/decidim/modules/_modules.scss
|
485
469
|
- app/assets/stylesheets/decidim/modules/_navbar.scss
|
486
470
|
- app/assets/stylesheets/decidim/modules/_opinion-toggle.scss
|
487
471
|
- app/assets/stylesheets/decidim/modules/_order-by.scss
|
488
|
-
- app/assets/stylesheets/decidim/modules/_popularity.scss
|
489
472
|
- app/assets/stylesheets/decidim/modules/_process-header.scss
|
490
473
|
- app/assets/stylesheets/decidim/modules/_process-info.scss
|
491
474
|
- app/assets/stylesheets/decidim/modules/_process-nav.scss
|
@@ -508,13 +491,13 @@ files:
|
|
508
491
|
- app/assets/stylesheets/decidim/utils/_mixins.scss
|
509
492
|
- app/assets/stylesheets/decidim/utils/_settings.scss
|
510
493
|
- app/assets/stylesheets/decidim/utils/_toggle-expand.scss
|
511
|
-
- app/assets/stylesheets/decidim/utils/_variables.scss
|
512
494
|
- app/commands/decidim/authorize_user.rb
|
513
495
|
- app/commands/decidim/create_omniauth_registration.rb
|
514
496
|
- app/commands/decidim/create_registration.rb
|
515
497
|
- app/commands/decidim/invite_user.rb
|
516
498
|
- app/commands/decidim/invite_user_again.rb
|
517
499
|
- app/commands/decidim/remove_user_role.rb
|
500
|
+
- app/commands/decidim/update_account.rb
|
518
501
|
- app/constraints/decidim/current_feature.rb
|
519
502
|
- app/controllers/concerns/decidim/feature_settings.rb
|
520
503
|
- app/controllers/concerns/decidim/filter_resource.rb
|
@@ -523,6 +506,7 @@ files:
|
|
523
506
|
- app/controllers/concerns/decidim/needs_authorization.rb
|
524
507
|
- app/controllers/concerns/decidim/needs_organization.rb
|
525
508
|
- app/controllers/concerns/decidim/needs_participatory_process.rb
|
509
|
+
- app/controllers/concerns/decidim/user_profile.rb
|
526
510
|
- app/controllers/decidim/account_controller.rb
|
527
511
|
- app/controllers/decidim/application_controller.rb
|
528
512
|
- app/controllers/decidim/authorizations_controller.rb
|
@@ -533,15 +517,19 @@ files:
|
|
533
517
|
- app/controllers/decidim/devise/registrations_controller.rb
|
534
518
|
- app/controllers/decidim/devise/sessions_controller.rb
|
535
519
|
- app/controllers/decidim/locales_controller.rb
|
520
|
+
- app/controllers/decidim/own_user_groups_controller.rb
|
536
521
|
- app/controllers/decidim/pages_controller.rb
|
537
522
|
- app/controllers/decidim/participatory_process_steps_controller.rb
|
538
523
|
- app/controllers/decidim/participatory_processes_controller.rb
|
524
|
+
- app/forms/decidim/account_form.rb
|
539
525
|
- app/forms/decidim/form.rb
|
540
526
|
- app/forms/decidim/invite_admin_form.rb
|
541
527
|
- app/forms/decidim/omniauth_registration_form.rb
|
542
528
|
- app/forms/decidim/registration_form.rb
|
543
529
|
- app/forms/translatable_presence_validator.rb
|
544
530
|
- app/helpers/decidim/application_helper.rb
|
531
|
+
- app/helpers/decidim/aria_selected_link_to_helper.rb
|
532
|
+
- app/helpers/decidim/attachments_helper.rb
|
545
533
|
- app/helpers/decidim/authorization_form_helper.rb
|
546
534
|
- app/helpers/decidim/filters_helper.rb
|
547
535
|
- app/helpers/decidim/humanize_booleans_helper.rb
|
@@ -551,7 +539,9 @@ files:
|
|
551
539
|
- app/helpers/decidim/paginate_helper.rb
|
552
540
|
- app/helpers/decidim/participatory_process_helper.rb
|
553
541
|
- app/helpers/decidim/participatory_process_steps_helper.rb
|
542
|
+
- app/helpers/decidim/resource_helper.rb
|
554
543
|
- app/helpers/decidim/translations_helper.rb
|
544
|
+
- app/helpers/decidim/user_profile_helper.rb
|
555
545
|
- app/jobs/decidim/application_job.rb
|
556
546
|
- app/mailers/concerns/decidim/localised_mailer.rb
|
557
547
|
- app/mailers/decidim/application_mailer.rb
|
@@ -560,6 +550,7 @@ files:
|
|
560
550
|
- app/models/decidim/abilities/everyone.rb
|
561
551
|
- app/models/decidim/ability.rb
|
562
552
|
- app/models/decidim/application_record.rb
|
553
|
+
- app/models/decidim/attachment.rb
|
563
554
|
- app/models/decidim/authorization.rb
|
564
555
|
- app/models/decidim/category.rb
|
565
556
|
- app/models/decidim/component.rb
|
@@ -567,8 +558,8 @@ files:
|
|
567
558
|
- app/models/decidim/identity.rb
|
568
559
|
- app/models/decidim/organization.rb
|
569
560
|
- app/models/decidim/participatory_process.rb
|
570
|
-
- app/models/decidim/participatory_process_attachment.rb
|
571
561
|
- app/models/decidim/participatory_process_step.rb
|
562
|
+
- app/models/decidim/resource_link.rb
|
572
563
|
- app/models/decidim/scope.rb
|
573
564
|
- app/models/decidim/static_page.rb
|
574
565
|
- app/models/decidim/user.rb
|
@@ -579,6 +570,8 @@ files:
|
|
579
570
|
- app/services/decidim/resource_search.rb
|
580
571
|
- app/types/decidim/process_step_type.rb
|
581
572
|
- app/types/decidim/process_type.rb
|
573
|
+
- app/types/decidim/session_type.rb
|
574
|
+
- app/types/decidim/user_group_type.rb
|
582
575
|
- app/types/decidim/user_type.rb
|
583
576
|
- app/uploaders/decidim/application_uploader.rb
|
584
577
|
- app/uploaders/decidim/attachment_uploader.rb
|
@@ -587,9 +580,16 @@ files:
|
|
587
580
|
- app/uploaders/decidim/hero_image_uploader.rb
|
588
581
|
- app/uploaders/decidim/homepage_image_uploader.rb
|
589
582
|
- app/uploaders/decidim/image_uploader.rb
|
583
|
+
- app/uploaders/decidim/organization_favicon_uploader.rb
|
590
584
|
- app/uploaders/decidim/organization_logo_uploader.rb
|
591
|
-
- app/
|
585
|
+
- app/validators/feature_validator.rb
|
586
|
+
- app/views/decidim/account/_password_fields.html.erb
|
587
|
+
- app/views/decidim/account/_user_groups.html.erb
|
592
588
|
- app/views/decidim/account/show.html.erb
|
589
|
+
- app/views/decidim/application/_attachments.html.erb
|
590
|
+
- app/views/decidim/application/_documents.html.erb
|
591
|
+
- app/views/decidim/application/_photos.html.erb
|
592
|
+
- app/views/decidim/authorizations/first_login.html.erb
|
593
593
|
- app/views/decidim/authorizations/index.html.erb
|
594
594
|
- app/views/decidim/authorizations/new.html.erb
|
595
595
|
- app/views/decidim/devise/confirmations/new.html.erb
|
@@ -602,17 +602,17 @@ files:
|
|
602
602
|
- app/views/decidim/devise/sessions/new.html.erb
|
603
603
|
- app/views/decidim/devise/shared/_links.html.erb
|
604
604
|
- app/views/decidim/devise/shared/_omniauth_buttons.html.erb
|
605
|
+
- app/views/decidim/own_user_groups/index.html.erb
|
605
606
|
- app/views/decidim/participatory_process_steps/_participatory_process_step.html.erb
|
606
607
|
- app/views/decidim/participatory_process_steps/_timeline.html.erb
|
607
608
|
- app/views/decidim/participatory_process_steps/index.html.erb
|
608
|
-
- app/views/decidim/participatory_processes/_documents.html.erb
|
609
609
|
- app/views/decidim/participatory_processes/_no_processes_yet.html.erb
|
610
610
|
- app/views/decidim/participatory_processes/_order_by_processes.html.erb
|
611
611
|
- app/views/decidim/participatory_processes/_participatory_process.html.erb
|
612
|
-
- app/views/decidim/participatory_processes/_photos.html.erb
|
613
612
|
- app/views/decidim/participatory_processes/_promoted_process.html.erb
|
614
613
|
- app/views/decidim/participatory_processes/index.html.erb
|
615
614
|
- app/views/decidim/participatory_processes/show.html.erb
|
615
|
+
- app/views/decidim/shared/_comments.html.erb
|
616
616
|
- app/views/decidim/shared/_login_modal.html.erb
|
617
617
|
- app/views/devise/mailer/confirmation_instructions.html.erb
|
618
618
|
- app/views/devise/mailer/invite_admin.html.erb
|
@@ -641,12 +641,19 @@ files:
|
|
641
641
|
- app/views/layouts/decidim/application.html.erb
|
642
642
|
- app/views/layouts/decidim/mailer.html.erb
|
643
643
|
- app/views/layouts/decidim/participatory_process.html.erb
|
644
|
+
- app/views/layouts/decidim/user_profile.html.erb
|
644
645
|
- app/views/pages/404.html.erb
|
645
646
|
- app/views/pages/500.html.erb
|
646
647
|
- app/views/pages/decidim_page.html.erb
|
647
648
|
- app/views/pages/home.html.erb
|
649
|
+
- app/views/pages/home/_extended.html.erb
|
650
|
+
- app/views/pages/home/_hero.html.erb
|
651
|
+
- app/views/pages/home/_highlighted_processes.html.erb
|
652
|
+
- app/views/pages/home/_statistics.html.erb
|
653
|
+
- app/views/pages/home/_sub_hero.html.erb
|
648
654
|
- config/i18n-tasks.yml
|
649
655
|
- config/initializers/devise.rb
|
656
|
+
- config/initializers/foundation_rails_helper.rb
|
650
657
|
- config/locales/ca.yml
|
651
658
|
- config/locales/en.yml
|
652
659
|
- config/locales/es.yml
|
@@ -683,6 +690,7 @@ files:
|
|
683
690
|
- db/migrate/20161214152811_add_logo_to_organizations.rb
|
684
691
|
- db/migrate/20170110133113_add_configuration_to_features.rb
|
685
692
|
- db/migrate/20170110153807_add_handler_to_organization.rb
|
693
|
+
- db/migrate/20170113150627_create_resource_links.rb
|
686
694
|
- db/migrate/20170116110851_create_identities.rb
|
687
695
|
- db/migrate/20170116135237_loosen_step_requirements.rb
|
688
696
|
- db/migrate/20170117142904_add_uniqueness_field_to_authorizations.rb
|
@@ -690,16 +698,30 @@ files:
|
|
690
698
|
- db/migrate/20170119150255_create_user_group_memberships.rb
|
691
699
|
- db/migrate/20170119150649_add_show_statistics_to_organization.rb
|
692
700
|
- db/migrate/20170120120733_add_user_groups_verified.rb
|
701
|
+
- db/migrate/20170123134023_make_attachments_polymorphic.rb
|
702
|
+
- db/migrate/20170123140857_add_avatar_to_user_groups.rb
|
703
|
+
- db/migrate/20170125135937_rename_attachable_to_attached_to.rb
|
704
|
+
- db/migrate/20170125152026_add_weight_to_features.rb
|
705
|
+
- db/migrate/20170126151123_add_extra_info_to_processes.rb
|
706
|
+
- db/migrate/20170128140553_add_timestamps_to_identities.rb
|
707
|
+
- db/migrate/20170130132833_add_favicon_to_decidim_organizations.rb
|
693
708
|
- db/seeds.rb
|
694
709
|
- db/seeds/Exampledocument.pdf
|
695
710
|
- db/seeds/city.jpeg
|
696
711
|
- db/seeds/city2.jpeg
|
697
712
|
- db/seeds/city3.jpeg
|
698
713
|
- db/seeds/homepage_image.jpg
|
714
|
+
- lib/decidim/authorable.rb
|
699
715
|
- lib/decidim/authorization_form_builder.rb
|
700
716
|
- lib/decidim/core.rb
|
701
717
|
- lib/decidim/core/engine.rb
|
718
|
+
- lib/decidim/core/test.rb
|
702
719
|
- lib/decidim/core/test/factories.rb
|
720
|
+
- lib/decidim/core/test/shared_examples/authorable.rb
|
721
|
+
- lib/decidim/core/test/shared_examples/has_attachments.rb
|
722
|
+
- lib/decidim/core/test/shared_examples/has_category.rb
|
723
|
+
- lib/decidim/core/test/shared_examples/has_feature.rb
|
724
|
+
- lib/decidim/core/test/shared_examples/has_scope.rb
|
703
725
|
- lib/decidim/core/version.rb
|
704
726
|
- lib/decidim/devise_failure_app.rb
|
705
727
|
- lib/decidim/faker/localized.rb
|
@@ -710,18 +732,23 @@ files:
|
|
710
732
|
- lib/decidim/features/settings_manifest.rb
|
711
733
|
- lib/decidim/filter_form_builder.rb
|
712
734
|
- lib/decidim/form_builder.rb
|
735
|
+
- lib/decidim/has_attachment.rb
|
736
|
+
- lib/decidim/has_attachments.rb
|
737
|
+
- lib/decidim/has_category.rb
|
738
|
+
- lib/decidim/has_feature.rb
|
739
|
+
- lib/decidim/has_scope.rb
|
713
740
|
- lib/decidim/page_finder.rb
|
714
741
|
- lib/decidim/query_extensions.rb
|
742
|
+
- lib/decidim/resource_manifest.rb
|
743
|
+
- lib/decidim/resourceable.rb
|
715
744
|
- lib/decidim/translatable_attributes.rb
|
716
745
|
- lib/devise/models/decidim_validatable.rb
|
717
746
|
- lib/tasks/decidim_tasks.rake
|
718
747
|
- lib/tasks/factory_girl.rake
|
719
748
|
- vendor/assets/javascripts/appendAround.js
|
720
749
|
- vendor/assets/javascripts/modernizr.js
|
721
|
-
- vendor/assets/javascripts/owl.carousel.min.js
|
722
750
|
- vendor/assets/javascripts/quill.min.js
|
723
751
|
- vendor/assets/javascripts/quill.min.js.map
|
724
|
-
- vendor/assets/javascripts/svg-injector.js
|
725
752
|
- vendor/assets/javascripts/svg4everybody.min.js
|
726
753
|
- vendor/assets/stylesheets/quill.bubble.css
|
727
754
|
- vendor/assets/stylesheets/quill.core.css
|