decidim-conferences 0.20.1 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -0
  3. data/app/commands/decidim/conferences/admin/create_conference.rb +3 -3
  4. data/app/commands/decidim/conferences/admin/update_conference.rb +3 -3
  5. data/app/controllers/concerns/decidim/conferences/admin/filterable.rb +27 -0
  6. data/app/controllers/decidim/conferences/admin/conferences_controller.rb +4 -5
  7. data/app/models/decidim/conference.rb +12 -0
  8. data/app/models/decidim/conference_user_role.rb +1 -1
  9. data/app/permissions/decidim/conferences/permissions.rb +9 -0
  10. data/app/types/decidim/conferences/conference_media_link_type.rb +19 -0
  11. data/app/types/decidim/conferences/conference_partner_type.rb +20 -0
  12. data/app/types/decidim/conferences/conference_speaker_type.rb +24 -0
  13. data/app/types/decidim/conferences/conference_type.rb +45 -0
  14. data/app/views/decidim/conferences/admin/conferences/index.html.erb +5 -2
  15. data/app/views/layouts/decidim/admin/conference.html.erb +2 -2
  16. data/config/locales/ca.yml +1 -0
  17. data/config/locales/cs.yml +2 -1
  18. data/config/locales/el.yml +1 -0
  19. data/config/locales/en.yml +1 -0
  20. data/config/locales/es-MX.yml +1 -0
  21. data/config/locales/es-PY.yml +1 -0
  22. data/config/locales/es.yml +1 -0
  23. data/config/locales/fi-plain.yml +1 -0
  24. data/config/locales/fi.yml +1 -0
  25. data/config/locales/hu.yml +1 -0
  26. data/lib/decidim/conferences/participatory_space.rb +2 -0
  27. data/lib/decidim/conferences/test/factories.rb +16 -0
  28. data/lib/decidim/conferences/version.rb +1 -1
  29. metadata +16 -11
  30. data/app/views/decidim/conferences/conference_widgets/show.html.erb +0 -11
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 073cb7b12f74449977cfec9e2d7adb06068471c034cd41bfd4d7bfb18a34e178
4
- data.tar.gz: 5f10e62f54d3a8511f565ef53c7b2d50ab49f1e75da0df5f89f35056efb36284
3
+ metadata.gz: 99821cad74f86b23d2243a063e9c5f347aff5a1c8e284e8c8c0cc250c726da59
4
+ data.tar.gz: 681fd61ed392ae35e2f580fac6e6ff49e6fad73f90e2e87585a5e343042ef73b
5
5
  SHA512:
6
- metadata.gz: 5ab470eaa1b17bbd6cee13c6238fe492abd41f2888728dde9c650c7ac595b5af7852532740626726b457ca81933519c4673fcb66c81295d303ca2a65cb221145
7
- data.tar.gz: 3a7469d214456fb69eb48eeeb0afe2656df021d630dba27dc97beac8eafd751960f047dcbcbb6816f4f2db20ae795a48295fd356c51c16ff32814984619eec53
6
+ metadata.gz: dd9b00dae882f1a7e7aba6aced3e95ae4812abc5e7f81e2abf3f10cfa425a26cea3b6fef3c706ceae59cca30008e86c1fc505130b963668c888b13eecf8af285
7
+ data.tar.gz: 4ad9c3cfa57db46f38e22da1310323249f955d6c2f95b467ba62cbc184a7db7ff6b74e4bd60eec1bc75346f05bbf744674d2e8dbc07b2c1559e9d93559d78c84
data/README.md CHANGED
@@ -27,6 +27,8 @@ And then execute:
27
27
 
28
28
  ```bash
29
29
  bundle
30
+ bundle exec rails decidim_conferences:install:migrations
31
+ bundle exec rails db:migrate
30
32
  ```
31
33
 
32
34
  ## Contributing
@@ -85,7 +85,7 @@ module Decidim
85
85
  end
86
86
 
87
87
  def link_participatory_processes
88
- conference.link_participatory_spaces_resources(participatory_processes, "included_participatory_processes")
88
+ conference.link_participatory_space_resources(participatory_processes, "included_participatory_processes")
89
89
  end
90
90
 
91
91
  def assemblies
@@ -93,7 +93,7 @@ module Decidim
93
93
  end
94
94
 
95
95
  def link_assemblies
96
- conference.link_participatory_spaces_resources(assemblies, "included_assemblies")
96
+ conference.link_participatory_space_resources(assemblies, "included_assemblies")
97
97
  end
98
98
 
99
99
  def consultations
@@ -102,7 +102,7 @@ module Decidim
102
102
  end
103
103
 
104
104
  def link_consultations
105
- conference.link_participatory_spaces_resources(consultations, "included_consultations")
105
+ conference.link_participatory_space_resources(consultations, "included_consultations")
106
106
  end
107
107
  end
108
108
  end
@@ -140,7 +140,7 @@ module Decidim
140
140
  end
141
141
 
142
142
  def link_participatory_processes
143
- @conference.link_participatory_spaces_resources(participatory_processes, "included_participatory_processes")
143
+ @conference.link_participatory_space_resources(participatory_processes, "included_participatory_processes")
144
144
  end
145
145
 
146
146
  def assemblies
@@ -148,7 +148,7 @@ module Decidim
148
148
  end
149
149
 
150
150
  def link_assemblies
151
- @conference.link_participatory_spaces_resources(assemblies, "included_assemblies")
151
+ @conference.link_participatory_space_resources(assemblies, "included_assemblies")
152
152
  end
153
153
 
154
154
  def consultations
@@ -157,7 +157,7 @@ module Decidim
157
157
  end
158
158
 
159
159
  def link_consultations
160
- @conference.link_participatory_spaces_resources(consultations, "included_consultations")
160
+ @conference.link_participatory_space_resources(consultations, "included_consultations")
161
161
  end
162
162
  end
163
163
  end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "active_support/concern"
4
+
5
+ module Decidim
6
+ module Conferences
7
+ module Admin
8
+ module Filterable
9
+ extend ActiveSupport::Concern
10
+
11
+ included do
12
+ include Decidim::Admin::Filterable
13
+
14
+ private
15
+
16
+ def base_query
17
+ collection
18
+ end
19
+
20
+ def filters
21
+ [:published_at_null]
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -8,11 +8,11 @@ module Decidim
8
8
  class ConferencesController < Decidim::Conferences::Admin::ApplicationController
9
9
  helper_method :current_conference, :current_participatory_space
10
10
  layout "decidim/admin/conferences"
11
- include Decidim::Paginable
11
+ include Decidim::Conferences::Admin::Filterable
12
12
 
13
13
  def index
14
14
  enforce_permission_to :read, :conference_list
15
- @conferences = paginate(collection)
15
+ @conferences = filtered_collection
16
16
  end
17
17
 
18
18
  def new
@@ -70,9 +70,8 @@ module Decidim
70
70
  private
71
71
 
72
72
  def current_conference
73
- scope = OrganizationConferences.new(current_user.organization).query
74
- @current_conference ||= scope.where(slug: params[:slug]).or(
75
- scope.where(id: params[:slug])
73
+ @current_conference ||= collection.where(slug: params[:slug]).or(
74
+ collection.where(id: params[:slug])
76
75
  ).first
77
76
  end
78
77
 
@@ -116,5 +116,17 @@ module Decidim
116
116
 
117
117
  end_date < Date.current
118
118
  end
119
+
120
+ def user_roles(role_name = nil)
121
+ roles = Decidim::ConferenceUserRole.where(conference: self)
122
+ return roles if role_name.blank?
123
+
124
+ roles.where(role: role_name)
125
+ end
126
+
127
+ # Allow ransacker to search for a key in a hstore column (`title`.`en`)
128
+ ransacker :title do |parent|
129
+ Arel::Nodes::InfixOperation.new("->>", parent.table[:title], Arel::Nodes.build_quoted(I18n.locale.to_s))
130
+ end
119
131
  end
120
132
  end
@@ -11,7 +11,7 @@ module Decidim
11
11
  belongs_to :conference, foreign_key: "decidim_conference_id", class_name: "Decidim::Conference", optional: true
12
12
  alias participatory_space conference
13
13
 
14
- ROLES = %w(admin collaborator moderator).freeze
14
+ ROLES = %w(admin collaborator moderator valuator).freeze
15
15
  validates :role, inclusion: { in: ROLES }, uniqueness: { scope: [:user, :conference] }
16
16
  validate :user_and_conference_same_organization
17
17
 
@@ -51,6 +51,7 @@ module Decidim
51
51
 
52
52
  moderator_action?
53
53
  collaborator_action?
54
+ valuator_action?
54
55
  conference_admin_action?
55
56
 
56
57
  permission_action
@@ -252,6 +253,14 @@ module Decidim
252
253
  allow! if permission_action.action == :read || permission_action.action == :preview
253
254
  end
254
255
 
256
+ # Valuators can only read components
257
+ def valuator_action?
258
+ return unless can_manage_conference?(role: :valuator)
259
+
260
+ allow! if permission_action.action == :read && permission_action.subject == :component
261
+ allow! if permission_action.action == :export && permission_action.subject == :component_data
262
+ end
263
+
255
264
  # Process admins can eprform everything *inside* that conference. They cannot
256
265
  # create a conference or perform actions on conference groups or other
257
266
  # conferences.
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Conferences
5
+ # This type represents a conference.
6
+ ConferenceMediaLinkType = GraphQL::ObjectType.define do
7
+ name "ConferenceMediaLink"
8
+ description "A conference media link"
9
+
10
+ field :id, !types.ID, "Internal ID for this media link"
11
+ field :title, Decidim::Core::TranslatedFieldType, "Title for this media link"
12
+ field :link, types.String, "URL for this media link"
13
+ field :date, Decidim::Core::DateType, "Relevant date for the media link"
14
+ field :weight, types.Int, "Order of appearance in which it should be presented"
15
+ field :createdAt, Decidim::Core::DateTimeType, "The time this entry was created", property: :created_at
16
+ field :updatedAt, Decidim::Core::DateTimeType, "The time this entry was updated", property: :updated_at
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Conferences
5
+ # This type represents a conference.
6
+ ConferencePartnerType = GraphQL::ObjectType.define do
7
+ name "ConferencePartner"
8
+ description "A conference partner"
9
+
10
+ field :id, !types.ID, "ID of the resource"
11
+ field :name, types.String, "Partner name"
12
+ field :partnerType, types.String, "Partner type", property: :partner_type
13
+ field :weight, types.Int, "Order of appearance in which it should be presented"
14
+ field :link, types.String, "Relevant URL for this partner"
15
+ field :logo, types.String, "Link to the partner's logo"
16
+ field :createdAt, Decidim::Core::DateTimeType, "The time this partner was created", property: :created_at
17
+ field :updatedAt, Decidim::Core::DateTimeType, "The time this partner was updated", property: :updated_at
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Conferences
5
+ # This type represents a conference.
6
+ ConferenceSpeakerType = GraphQL::ObjectType.define do
7
+ name "ConferenceSpeaker"
8
+ description "A conference speaker"
9
+
10
+ field :id, !types.ID, "Internal ID of the speaker"
11
+ field :fullName, types.String, "Full name of the speaker", property: :full_name
12
+ field :position, Decidim::Core::TranslatedFieldType, "Position of the speaker in the conference"
13
+ field :affiliation, Decidim::Core::TranslatedFieldType, "Affiliation of the speaker"
14
+ field :twitterHandle, types.String, "Twitter handle", property: :twitter_handle
15
+ field :shortBio, Decidim::Core::TranslatedFieldType, "Short biography of the speaker", property: :short_bio
16
+ field :personalUrl, types.String, "Personal URL of the speaker", property: :personal_url
17
+ field :avatar, types.String, "Avatar of the speaker"
18
+ field :user, Decidim::Core::UserType, "Decidim user corresponding to this speaker", property: :user
19
+
20
+ field :createdAt, Decidim::Core::DateTimeType, "The time this member was created ", property: :created_at
21
+ field :updatedAt, Decidim::Core::DateTimeType, "The time this member was updated", property: :updated_at
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,45 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Conferences
5
+ # This type represents a conference.
6
+ ConferenceType = GraphQL::ObjectType.define do
7
+ interfaces [
8
+ -> { Decidim::Core::ParticipatorySpaceInterface },
9
+ -> { Decidim::Core::ScopableInterface },
10
+ -> { Decidim::Core::AttachableInterface }
11
+ ]
12
+
13
+ name "Conference"
14
+ description "A conference"
15
+
16
+ field :id, !types.ID, "Internal ID for this conference"
17
+ field :shortDescription, Decidim::Core::TranslatedFieldType, "The short description of this conference", property: :short_description
18
+ field :description, Decidim::Core::TranslatedFieldType, "The description of this conference"
19
+ field :slug, types.String, "The slug of this conference"
20
+ field :hashtag, types.String, "The hashtag for this conference"
21
+ field :slogan, Decidim::Core::TranslatedFieldType, "The slogan of the conference"
22
+ field :location, types.String, "The location of this conference"
23
+ field :createdAt, Decidim::Core::DateTimeType, "The time this conference was created", property: :created_at
24
+ field :updatedAt, Decidim::Core::DateTimeType, "The time this conference was updated", property: :updated_at
25
+ field :publishedAt, Decidim::Core::DateTimeType, "The time this conference was published", property: :published_at
26
+ field :reference, types.String, "Reference prefix for this conference"
27
+
28
+ field :heroImage, types.String, "The hero image for this conference", property: :hero_image
29
+ field :bannerImage, types.String, "The banner image for this conference", property: :banner_image
30
+ field :promoted, types.Boolean, "If this conference is promoted (therefore in the homepage)"
31
+ field :objectives, Decidim::Core::TranslatedFieldType, "The objectives of the conference"
32
+ field :showStatistics, types.Boolean, "If this conference shows the statistics", property: :show_statistics
33
+ field :startDate, Decidim::Core::DateType, "The date this conference starts", property: :start_date
34
+ field :endDate, Decidim::Core::DateType, "The date this conference ends", property: :end_date
35
+ field :registrationsEnabled, types.Boolean, "If the registrations are enabled in this conference", property: :registrations_enabled
36
+ field :availableSlots, types.Int, "The number of available slots in this conference", property: :available_slots
37
+ field :registrationTerms, Decidim::Core::TranslatedFieldType, "The registration terms of this conference", property: :registration_terms
38
+
39
+ field :speakers, types[Decidim::Conferences::ConferenceSpeakerType], "List of speakers in this conference"
40
+ field :partners, types[Decidim::Conferences::ConferencePartnerType], "List of partners in this conference"
41
+ field :categories, types[Decidim::Core::CategoryType], "List of categories in this conference"
42
+ field :mediaLinks, types[Decidim::Conferences::ConferenceMediaLinkType], "List of media links in this conference", property: :media_links
43
+ end
44
+ end
45
+ end
@@ -1,17 +1,18 @@
1
- <div class="card" id="conferences">
1
+ <div class="card with-overflow" id="conferences">
2
2
  <div class="card-divider">
3
3
  <h2 class="card-title">
4
4
  <%= t "decidim.admin.titles.conferences" %>
5
5
  <%= link_to t("actions.new_conference", scope: "decidim.admin"), new_conference_path, class: "button tiny button--title" if allowed_to? :create, :conference %>
6
6
  </h2>
7
7
  </div>
8
+ <%= admin_filter_selector %>
8
9
  <div class="card-section">
9
10
  <div class="table-scroll">
10
11
  <table class="table-list">
11
12
  <thead>
12
13
  <tr>
13
14
  <th><%= t("models.conference.fields.title", scope: "decidim.admin") %></th>
14
- <th><%= t("models.conference.fields.created_at", scope: "decidim.admin") %></th>
15
+ <th><%= sort_link(query, :created_at, t("models.conference.fields.created_at", scope: "decidim.admin"), default_order: :desc) %></th>
15
16
  <th class="table-list__actions"><%= t("models.conference.fields.published", scope: "decidim.admin") %></th>
16
17
  <th></th>
17
18
  </tr>
@@ -27,6 +28,8 @@
27
28
  <% end %>
28
29
  <% if allowed_to? :update, :conference, conference: conference %>
29
30
  <%= link_to translated_attribute(conference.title), edit_conference_path(conference) %><br>
31
+ <% elsif allowed_to? :read, :component, conference: conference %>
32
+ <%= link_to translated_attribute(conference.title), components_path(conference) %><br>
30
33
  <% elsif allowed_to? :preview, :conference, conference: conference %>
31
34
  <%= link_to translated_attribute(conference.title), decidim_conferences.conference_path(conference) %><br>
32
35
  <% elsif allowed_to? :read, :moderation, conference: conference %>
@@ -10,9 +10,9 @@
10
10
  <% if allowed_to? :read, :component, conference: current_participatory_space %>
11
11
  <li <% if is_active_link?(decidim_admin_conferences.components_path(current_participatory_space)) %> class="is-active" <% end %>>
12
12
  <%= aria_selected_link_to t("components", scope: "decidim.admin.menu.conferences_submenu"), decidim_admin_conferences.components_path(current_participatory_space) %>
13
- <ul>
13
+ <ul id="components-list">
14
14
  <% current_participatory_space.components.each do |component| %>
15
- <% if component.manifest.admin_engine %>
15
+ <% if component.manifest.admin_engine && user_role_config.component_is_accessible?(component.manifest_name) %>
16
16
  <li <% if is_active_link?(manage_component_path(component)) || is_active_link?(decidim_admin_conferences.edit_component_path(current_participatory_space, component)) || is_active_link?(decidim_admin_conferences.edit_component_permissions_path(current_participatory_space, component)) %> class="is-active" <% end %>>
17
17
  <%= link_to manage_component_path(component) do %>
18
18
  <%= translated_attribute component.name %>
@@ -183,6 +183,7 @@ ca:
183
183
  admin: Administradora
184
184
  collaborator: Col·laboradora
185
185
  moderator: Moderadora
186
+ valuator: Avaluadora
186
187
  media_link:
187
188
  fields:
188
189
  date: Data
@@ -189,6 +189,7 @@ cs:
189
189
  admin: Správce
190
190
  collaborator: Spolupracovník
191
191
  moderator: Moderátor
192
+ valuator: Hodnotitel
192
193
  media_link:
193
194
  fields:
194
195
  date: datum
@@ -499,7 +500,7 @@ cs:
499
500
  comments_count: Komentáře
500
501
  conference_count: Konference
501
502
  debates_count: Debaty
502
- endorsements_count: Potvrzení
503
+ endorsements_count: Schválení
503
504
  headline: Aktivita
504
505
  meetings_count: Setkání
505
506
  orders_count: Hlasy
@@ -0,0 +1 @@
1
+ el:
@@ -184,6 +184,7 @@ en:
184
184
  admin: Administrator
185
185
  collaborator: Collaborator
186
186
  moderator: Moderator
187
+ valuator: Valuator
187
188
  media_link:
188
189
  fields:
189
190
  date: Date
@@ -183,6 +183,7 @@ es-MX:
183
183
  admin: Administrador
184
184
  collaborator: Colaborador
185
185
  moderator: Moderador
186
+ valuator: Evaluadora
186
187
  media_link:
187
188
  fields:
188
189
  date: Fecha
@@ -183,6 +183,7 @@ es-PY:
183
183
  admin: Administrador
184
184
  collaborator: Colaborador
185
185
  moderator: Moderador
186
+ valuator: Evaluadora
186
187
  media_link:
187
188
  fields:
188
189
  date: Fecha
@@ -183,6 +183,7 @@ es:
183
183
  admin: Administradora
184
184
  collaborator: Colaboradora
185
185
  moderator: Moderadora
186
+ valuator: Evaluadora
186
187
  media_link:
187
188
  fields:
188
189
  date: Fecha
@@ -183,6 +183,7 @@ fi-pl:
183
183
  admin: Hallinnointikäyttäjä
184
184
  collaborator: Työryhmän jäsen
185
185
  moderator: Moderoija
186
+ valuator: Arvioija
186
187
  media_link:
187
188
  fields:
188
189
  date: Päivämäärä
@@ -183,6 +183,7 @@ fi:
183
183
  admin: Hallinnointikäyttäjä
184
184
  collaborator: Työryhmän jäsen
185
185
  moderator: Moderoija
186
+ valuator: Arvioija
186
187
  media_link:
187
188
  fields:
188
189
  date: Päivämäärä
@@ -183,6 +183,7 @@ hu:
183
183
  admin: Adminisztrátor
184
184
  collaborator: Együttműködő
185
185
  moderator: moderátor
186
+ valuator: Értékelő
186
187
  media_link:
187
188
  fields:
188
189
  date: Dátum
@@ -15,6 +15,8 @@ Decidim.register_participatory_space(:conferences) do |participatory_space|
15
15
  "Decidim::Conferences::ConferenceInvite"
16
16
  ]
17
17
 
18
+ participatory_space.query_type = "Decidim::Conferences::ConferenceType"
19
+
18
20
  participatory_space.register_resource(:conference) do |resource|
19
21
  resource.model_class_name = "Decidim::Conference"
20
22
  resource.card = "decidim/conferences/conference"
@@ -23,6 +23,7 @@ FactoryBot.define do
23
23
  show_statistics { true }
24
24
  start_date { 1.month.ago }
25
25
  end_date { 1.month.ago + 3.days }
26
+ registration_terms { generate_localized_title }
26
27
 
27
28
  trait :promoted do
28
29
  promoted { true }
@@ -95,6 +96,21 @@ FactoryBot.define do
95
96
  end
96
97
  end
97
98
 
99
+ factory :conference_valuator, parent: :user, class: "Decidim::User" do
100
+ transient do
101
+ conference { create(:conference) }
102
+ end
103
+
104
+ organization { conference.organization }
105
+
106
+ after(:create) do |user, evaluator|
107
+ create :conference_user_role,
108
+ user: user,
109
+ conference: evaluator.conference,
110
+ role: :valuator
111
+ end
112
+ end
113
+
98
114
  factory :conference_speaker, class: "Decidim::ConferenceSpeaker" do
99
115
  conference { create(:conference) }
100
116
 
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-conferences version.
5
5
  module Conferences
6
6
  def self.version
7
- "0.20.1"
7
+ "0.21.0"
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-conferences
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.1
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaac Massot Gil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-27 00:00:00.000000000 Z
11
+ date: 2020-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-core
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.20.1
19
+ version: 0.21.0
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.20.1
26
+ version: 0.21.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: decidim-meetings
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.20.1
33
+ version: 0.21.0
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.20.1
40
+ version: 0.21.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: wicked_pdf
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -72,28 +72,28 @@ dependencies:
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 0.20.1
75
+ version: 0.21.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 0.20.1
82
+ version: 0.21.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: decidim-dev
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 0.20.1
89
+ version: 0.21.0
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 0.20.1
96
+ version: 0.21.0
97
97
  description: Conferences component for decidim.
98
98
  email:
99
99
  - isaac.mg@coditramuntana.com
@@ -168,6 +168,7 @@ files:
168
168
  - app/constraints/decidim/conferences/current_component.rb
169
169
  - app/constraints/decidim/conferences/current_conference.rb
170
170
  - app/controllers/concerns/decidim/conferences/admin/conference_context.rb
171
+ - app/controllers/concerns/decidim/conferences/admin/filterable.rb
171
172
  - app/controllers/decidim/conferences/admin/application_controller.rb
172
173
  - app/controllers/decidim/conferences/admin/categories_controller.rb
173
174
  - app/controllers/decidim/conferences/admin/component_permissions_controller.rb
@@ -265,6 +266,10 @@ files:
265
266
  - app/serializers/decidim/conferences/conference_registration_serializer.rb
266
267
  - app/serializers/decidim/conferences/data_portability_conference_invite_serializer.rb
267
268
  - app/serializers/decidim/conferences/data_portability_conference_registration_serializer.rb
269
+ - app/types/decidim/conferences/conference_media_link_type.rb
270
+ - app/types/decidim/conferences/conference_partner_type.rb
271
+ - app/types/decidim/conferences/conference_speaker_type.rb
272
+ - app/types/decidim/conferences/conference_type.rb
268
273
  - app/uploaders/decidim/conferences/diploma_uploader.rb
269
274
  - app/uploaders/decidim/conferences/partner_logo_uploader.rb
270
275
  - app/views/decidim/conference_speakers/_conference_speaker.html.erb
@@ -311,7 +316,6 @@ files:
311
316
  - app/views/decidim/conferences/conference_registration_mailer/confirmation.html.erb
312
317
  - app/views/decidim/conferences/conference_registration_mailer/pending_validation.html.erb
313
318
  - app/views/decidim/conferences/conference_speakers/index.html.erb
314
- - app/views/decidim/conferences/conference_widgets/show.html.erb
315
319
  - app/views/decidim/conferences/conferences/_partners.html.erb
316
320
  - app/views/decidim/conferences/conferences/_promoted_conference.html.erb
317
321
  - app/views/decidim/conferences/conferences/_statistics.html.erb
@@ -337,6 +341,7 @@ files:
337
341
  - config/locales/cs.yml
338
342
  - config/locales/de.yml
339
343
  - config/locales/el-GR.yml
344
+ - config/locales/el.yml
340
345
  - config/locales/en.yml
341
346
  - config/locales/eo-UY.yml
342
347
  - config/locales/es-MX.yml
@@ -1,11 +0,0 @@
1
- <% content_for(:header, "false") %>
2
- <% content_for(:title, translated_attribute(model.title)) %>
3
- <p class="card__desc"><%= decidim_sanitize html_truncate(translated_attribute(model.short_description), length: 630, separator: "...") %></p>
4
- <% content_for(:footer) do %>
5
- <div class="card__support">
6
- <span class="card--process__small"></span>
7
- <%= link_to conference_path(model), class: "card__button button small" do %>
8
- <%= t("conference_widgets.show.take_part", scope: "layouts.decidim") %>
9
- <% end %>
10
- </div>
11
- <% end %>