decidim-assemblies 0.14.4 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/images/decidim/assemblies/assembly.svg +2 -5
  3. data/app/cells/decidim/assemblies/content_blocks/highlighted_assemblies_cell.rb +8 -1
  4. data/app/cells/decidim/assemblies/content_blocks/highlighted_assemblies_settings_form/show.erb +3 -0
  5. data/app/cells/decidim/assemblies/content_blocks/highlighted_assemblies_settings_form_cell.rb +19 -0
  6. data/app/cells/decidim/assembly_activity_cell.rb +10 -0
  7. data/app/commands/decidim/assemblies/admin/copy_assembly.rb +1 -0
  8. data/app/commands/decidim/assemblies/admin/publish_assembly.rb +1 -1
  9. data/app/controllers/decidim/assemblies/admin/assembly_copies_controller.rb +1 -1
  10. data/app/controllers/decidim/assemblies/assemblies_controller.rb +28 -4
  11. data/app/forms/decidim/assemblies/admin/assembly_member_form.rb +2 -2
  12. data/app/models/decidim/assembly_member.rb +1 -1
  13. data/app/queries/decidim/assemblies/metrics/assemblies_metric_manage.rb +27 -0
  14. data/app/queries/decidim/assemblies/parent_assemblies.rb +12 -0
  15. data/app/views/decidim/assemblies/admin/assembly_members/index.html.erb +4 -3
  16. data/app/views/decidim/assemblies/assemblies/index.html.erb +9 -0
  17. data/app/views/decidim/assemblies/assemblies/show.html.erb +5 -5
  18. data/app/views/layouts/decidim/admin/assembly.html.erb +1 -0
  19. data/config/locales/ca.yml +11 -0
  20. data/config/locales/de.yml +11 -0
  21. data/config/locales/en.yml +11 -0
  22. data/config/locales/es-PY.yml +11 -0
  23. data/config/locales/es.yml +11 -0
  24. data/config/locales/eu.yml +11 -0
  25. data/config/locales/fi.yml +19 -8
  26. data/config/locales/fr.yml +11 -0
  27. data/config/locales/gl.yml +11 -0
  28. data/config/locales/hu.yml +11 -0
  29. data/config/locales/it.yml +11 -0
  30. data/config/locales/nl.yml +11 -0
  31. data/config/locales/pl.yml +11 -0
  32. data/config/locales/pt-BR.yml +11 -0
  33. data/config/locales/pt.yml +11 -0
  34. data/config/locales/sv.yml +11 -0
  35. data/db/seeds/city.jpeg +0 -0
  36. data/db/seeds/city2.jpeg +0 -0
  37. data/lib/decidim/assemblies/engine.rb +15 -1
  38. data/lib/decidim/assemblies/participatory_space.rb +12 -3
  39. data/lib/decidim/assemblies/test/factories.rb +15 -15
  40. data/lib/decidim/assemblies/version.rb +1 -1
  41. metadata +14 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: abbaf0cf55ca1946b02e15843d4387759c36090db90ee1e8a8a895f5fbbfe161
4
- data.tar.gz: 46dcc5d7d581b17dc6d4d84e65a41aab62288ace410dfe6518de6871fe1ccd95
3
+ metadata.gz: '09b9f26ef758d2c8a4d363252f2362cfbbc5d289e3218e28447a27a15b5c87ed'
4
+ data.tar.gz: a8e851f1646503f6adfdd4c0862ba3a0d31e61deefe583d3da723b9e89e545e0
5
5
  SHA512:
6
- metadata.gz: 8fa667363b5800dd52ce3af34e5c3174337c1d1218f1b0d7819aecff91b4b8a1b8cf51d25af4c71470fa471f9e9151b1b7c9910d279e7396f36beb7acefd6a6e
7
- data.tar.gz: ba25a4be31a8a6d950fdcaad18076caba0debdceb308fbc6c37bb168e39eb833e944934e078ee32e9d40edb68eb3f92e9ace380795c76f2685ac9f2a0a76fca5
6
+ metadata.gz: 7865bc7cac30fee454dc891c31db636a8d7c4f74fe39fea0aa9327c2cb695add217b8923a2332c502ad85a683e90d31c652ef7c56308772b6e5fc0f59aa47b68
7
+ data.tar.gz: de8a5ceb9fb13df9b45fbb53daad619a7eae91b080907dd600da1371809ca0fcb5df9fea66d8ca049ab704af8ea2f40355cea1918096d149c5d5e3ece7c012c9
@@ -1,6 +1,3 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36.02 36.02">
2
- <path d="M883.8,543.84a18,18,0,1,1,18-18A18,18,0,0,1,883.8,543.84Zm0-34a16,16,0,1,0,16,16A16,16,0,0,0,883.8,509.83Z" transform="translate(-865.8 -507.83)" />
3
- <ellipse ry="5.504777" rx="5.5598245" cy="17.971844" cx="18" />
4
- <path d="M883.8,543.84a18,18,0,1,1,18-18A18,18,0,0,1,883.8,543.84Zm0-34a16,16,0,1,0,16,16A16,16,0,0,0,883.8,509.83Z" transform="translate(-865.8 -507.83)" />
5
- <path d="m 6.3078227,-25.154474 a 9.3338938,9.0435648 0 0 1 -8.7369752,9.025052 9.3338938,9.0435648 0 0 1 -9.8544645,-7.870717 9.3338938,9.0435648 0 0 1 7.4765554,-10.031744" transform="matrix(-0.78352169,0.62136443,-0.62136443,-0.78352169,0,0)" class="stroked-shape" />
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 34 34">
2
+ <path d="M31.593 20.937c.338-1.255.518-2.575.518-3.937 0-8.346-6.765-15.111-15.111-15.111S1.889 8.654 1.889 17c0 1.362.18 2.682.518 3.937a10.378 10.378 0 0 1 2.712-.36c2.422 0 4.717.835 6.55 2.328a10.348 10.348 0 0 1 5.177-1.383c1.95 0 3.786.542 5.357 1.49a10.338 10.338 0 0 1 6.678-2.434c.925 0 1.836.121 2.712.359zm-.606 1.793a8.487 8.487 0 0 0-2.106-.263 8.448 8.448 0 0 0-5.107 1.707 10.355 10.355 0 0 1 2.913 4.425 15.151 15.151 0 0 0 4.3-5.869zm-27.974 0c.9 2.195 2.302 4.13 4.062 5.665a10.357 10.357 0 0 1 2.982-4.345 8.45 8.45 0 0 0-4.938-1.583c-.718 0-1.424.089-2.106.263zm23.805 8.15a.94.94 0 0 1-.324.224A16.921 16.921 0 0 1 17 34C7.611 34 0 26.389 0 17S7.611 0 17 0s17 7.611 17 17c0 5.732-2.836 10.8-7.182 13.88zm-1.75-1.1a8.492 8.492 0 0 0-16.398-.17A15.04 15.04 0 0 0 17 32.11a15.04 15.04 0 0 0 8.067-2.331zm-3.042-14.33a5.18 5.18 0 1 1-10.36 0 5.18 5.18 0 0 1 10.36 0zm-1.89 0a3.291 3.291 0 1 0-6.582 0 3.291 3.291 0 0 0 6.583 0zm-11.333.944a3.062 3.062 0 1 1-6.124.001 3.062 3.062 0 0 1 6.124-.001zm-1.888 0a1.173 1.173 0 1 0-2.347 0 1.173 1.173 0 0 0 2.347 0zm18.28 0a3.063 3.063 0 1 1 6.127.002 3.063 3.063 0 0 1-6.126-.002zm1.89 0a1.174 1.174 0 1 0 2.348 0 1.174 1.174 0 0 0-2.348 0z"/>
6
3
  </svg>
@@ -11,8 +11,15 @@ module Decidim
11
11
  render if highlighted_assemblies.any?
12
12
  end
13
13
 
14
+ def max_results
15
+ model.settings.max_results
16
+ end
17
+
14
18
  def highlighted_assemblies
15
- OrganizationPrioritizedAssemblies.new(current_organization, current_user)
19
+ @highlighted_assemblies ||= OrganizationPrioritizedAssemblies
20
+ .new(current_organization, current_user)
21
+ .query
22
+ .limit(max_results)
16
23
  end
17
24
 
18
25
  def i18n_scope
@@ -0,0 +1,3 @@
1
+ <% form.fields_for :settings, form.object.settings do |settings_fields| %>
2
+ <%= settings_fields.select :max_results, [4, 8, 12], prompt: "", label: label %>
3
+ <% end %>
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Assemblies
5
+ module ContentBlocks
6
+ class HighlightedAssembliesSettingsFormCell < Decidim::ViewModel
7
+ alias form model
8
+
9
+ def content_block
10
+ options[:content_block]
11
+ end
12
+
13
+ def label
14
+ I18n.t("decidim.assemblies.admin.content_blocks.highlighted_assemblies.max_results")
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,10 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ # A cell to display when an Assembly has been published.
5
+ class AssemblyActivityCell < ActivityCell
6
+ def title
7
+ I18n.t "decidim.assemblies.last_activity.new_assembly"
8
+ end
9
+ end
10
+ end
@@ -50,6 +50,7 @@ module Decidim
50
50
  banner_image: @assembly.banner_image,
51
51
  promoted: @assembly.promoted,
52
52
  scope: @assembly.scope,
53
+ parent: @assembly.parent,
53
54
  developer_group: @assembly.developer_group,
54
55
  local_area: @assembly.local_area,
55
56
  target: @assembly.target,
@@ -23,7 +23,7 @@ module Decidim
23
23
  def call
24
24
  return broadcast(:invalid) if assembly.nil? || assembly.published?
25
25
 
26
- Decidim.traceability.perform_action!("publish", assembly, current_user) do
26
+ Decidim.traceability.perform_action!("publish", assembly, current_user, visibility: "all") do
27
27
  assembly.publish!
28
28
  end
29
29
 
@@ -20,7 +20,7 @@ module Decidim
20
20
  CopyAssembly.call(@form, current_assembly) do
21
21
  on(:ok) do
22
22
  flash[:notice] = I18n.t("assemblies_copies.create.success", scope: "decidim.admin")
23
- redirect_to assemblies_path
23
+ redirect_to assemblies_path(parent_id: current_assembly.parent_id)
24
24
  end
25
25
 
26
26
  on(:invalid) do
@@ -14,12 +14,32 @@ module Decidim
14
14
  helper Decidim::SanitizeHelper
15
15
  helper Decidim::ResourceReferenceHelper
16
16
 
17
- helper_method :collection, :promoted_assemblies, :assemblies, :stats, :assembly_participatory_processes
17
+ helper_method :collection, :parent_assemblies, :promoted_assemblies, :assemblies, :stats, :assembly_participatory_processes
18
18
 
19
19
  def index
20
- redirect_to "/404" if published_assemblies.none?
21
-
22
20
  enforce_permission_to :list, :assembly
21
+
22
+ respond_to do |format|
23
+ format.html do
24
+ raise ActionController::RoutingError, "Not Found" if published_assemblies.none?
25
+
26
+ render "index"
27
+ end
28
+
29
+ format.json do
30
+ render json: published_assemblies.query.includes(:children).where(parent: nil).collect { |assembly|
31
+ {
32
+ name: assembly.title[I18n.locale.to_s],
33
+ children: assembly.children.collect do |child|
34
+ {
35
+ name: child.title[I18n.locale.to_s],
36
+ children: child.children.collect { |child_of_child| { name: child_of_child.title[I18n.locale.to_s] } }
37
+ }
38
+ end
39
+ }
40
+ }
41
+ end
42
+ end
23
43
  end
24
44
 
25
45
  def show
@@ -44,7 +64,11 @@ module Decidim
44
64
  @assemblies ||= OrganizationPrioritizedAssemblies.new(current_organization, current_user)
45
65
  end
46
66
 
47
- alias collection assemblies
67
+ def parent_assemblies
68
+ @parent_assemblies ||= assemblies | ParentAssemblies.new
69
+ end
70
+
71
+ alias collection parent_assemblies
48
72
 
49
73
  def promoted_assemblies
50
74
  @promoted_assemblies ||= assemblies | PromotedAssemblies.new
@@ -13,8 +13,8 @@ module Decidim
13
13
  attribute :gender, String
14
14
  attribute :birthday, Decidim::Attributes::TimeWithZone
15
15
  attribute :birthplace, String
16
- attribute :ceased_date, Decidim::Attributes::TimeWithZone
17
- attribute :designation_date, Decidim::Attributes::TimeWithZone
16
+ attribute :ceased_date, Decidim::Attributes::LocalizedDate
17
+ attribute :designation_date, Decidim::Attributes::LocalizedDate
18
18
  attribute :designation_mode, String
19
19
  attribute :position, String
20
20
  attribute :position_other, String
@@ -15,7 +15,7 @@ module Decidim
15
15
 
16
16
  default_scope { order(weight: :asc, created_at: :asc) }
17
17
 
18
- scope :not_ceased, -> { where(ceased_date: nil) }
18
+ scope :not_ceased, -> { where("ceased_date >= ? OR ceased_date IS NULL", Time.zone.today) }
19
19
 
20
20
  def self.log_presenter_class_for(_log)
21
21
  Decidim::Assemblies::AdminLog::AssemblyMemberPresenter
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Assemblies
5
+ module Metrics
6
+ class AssembliesMetricManage < Decidim::MetricManage
7
+ def metric_name
8
+ "assemblies"
9
+ end
10
+
11
+ private
12
+
13
+ def query
14
+ return @query if @query
15
+
16
+ @query = Decidim::Assembly.where(organization: @organization)
17
+ @query = @query.where("decidim_assemblies.published_at <= ?", end_time)
18
+ @query
19
+ end
20
+
21
+ def quantity
22
+ @quantity ||= query.where("decidim_assemblies.published_at >= ?", start_time).count
23
+ end
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Decidim
4
+ module Assemblies
5
+ # This query filters assemblies so only parent assemblies are returned.
6
+ class ParentAssemblies < Rectify::Query
7
+ def query
8
+ Decidim::Assembly.where(parent: nil)
9
+ end
10
+ end
11
+ end
12
+ end
@@ -23,7 +23,7 @@
23
23
  <div class="filters__search">
24
24
  <div class="input-group">
25
25
  <%= search_field_tag :q, @query,label: false, class: "input-group-field", placeholder: t(".search") %>
26
- <%= hidden_field_tag :state, @state %>
26
+ <%= hidden_field_tag :status, @status %>
27
27
  <div class="input-group-button">
28
28
  <button type="submit" class="button button--muted">
29
29
  <%= icon "magnifying-glass", aria_label: t(".search") %>
@@ -68,10 +68,10 @@
68
68
  <%= member_presenter.position %>
69
69
  </td>
70
70
  <td>
71
- <%= l member.designation_date, format: :datepicker %>
71
+ <%= l member.designation_date, format: :decidim_short %>
72
72
  </td>
73
73
  <td>
74
- <%= member.ceased_date ? l(member.ceased_date, format: :datepicker) : nil %>
74
+ <%= member.ceased_date ? l(member.ceased_date, format: :decidim_short) : nil %>
75
75
  </td>
76
76
  <td class="table-list__actions">
77
77
  <% if allowed_to? :update, :assembly_member, member: member %>
@@ -86,6 +86,7 @@
86
86
  <% end %>
87
87
  </tbody>
88
88
  </table>
89
+ <%= paginate @assembly_members, theme: "decidim" %>
89
90
  </div>
90
91
  </div>
91
92
  </div>
@@ -22,4 +22,13 @@ edit_link(
22
22
  <%= render(collection) %>
23
23
  </div>
24
24
  </section>
25
+
26
+ <section id="assemblies-chart" class="row column section">
27
+ <div class="row column">
28
+ <h2 class="section-heading"><%= t("assemblies.index.organizational_chart", scope: "layouts.decidim") %></h2>
29
+ <article id="orgchart-<%= SecureRandom.hex(5) %>" class="card orgchart js-orgchart absolutes" data-url="<%= decidim_assemblies.assemblies_path(format: :json) %>">
30
+ <button class="medium-1 m-s top left button small hollow invisible js-reset-orgchart"><%= t("assemblies.index.reset_chart", scope: "layouts.decidim") %></button>
31
+ </article>
32
+ </div>
33
+ </section>
25
34
  </main>
@@ -75,7 +75,7 @@ edit_link(
75
75
  </div>
76
76
  <% end %>
77
77
 
78
- <%= render_hook(:assembly_meetings) %>
78
+ <%= render_hook(:current_participatory_space_meetings) %>
79
79
 
80
80
  <%= attachments_for current_participatory_space %>
81
81
  <% if current_participatory_space.children_count > 0 %>
@@ -160,7 +160,7 @@ edit_link(
160
160
  <% if current_participatory_space.creation_date.presence %>
161
161
  <div class="definition-data__item creation_date">
162
162
  <span class="definition-data__title"><%= t("assemblies.show.creation_date", scope: "decidim") %></span>
163
- <%= l current_participatory_space.creation_date, format: :datepicker %>
163
+ <%= l current_participatory_space.creation_date, format: :decidim_short %>
164
164
  </div>
165
165
  <% end %>
166
166
 
@@ -178,7 +178,7 @@ edit_link(
178
178
  <div class="definition-data__item duration">
179
179
  <span class="definition-data__title"><%= t("assemblies.show.duration", scope: "decidim") %></span>
180
180
  <% if current_participatory_space.duration.presence %>
181
- <%= l current_participatory_space.duration, format: :datepicker %>
181
+ <%= l current_participatory_space.duration, format: :decidim_short %>
182
182
  <% else %>
183
183
  <%= t("assemblies.show.indefinite_duration", scope: "decidim") %>
184
184
  <% end %>
@@ -187,14 +187,14 @@ edit_link(
187
187
  <% if current_participatory_space.included_at.presence %>
188
188
  <div class="definition-data__item included_at">
189
189
  <span class="definition-data__title"><%= t("assemblies.show.included_at", scope: "decidim") %></span>
190
- <%= l current_participatory_space.included_at, format: :datepicker %>
190
+ <%= l current_participatory_space.included_at, format: :decidim_short %>
191
191
  </div>
192
192
  <% end %>
193
193
 
194
194
  <% if current_participatory_space.closing_date.presence %>
195
195
  <div class="definition-data__item closing_date">
196
196
  <span class="definition-data__title"><%= t("assemblies.show.closing_date", scope: "decidim") %></span>
197
- <%= l current_participatory_space.closing_date, format: :datepicker %>
197
+ <%= l current_participatory_space.closing_date, format: :decidim_short %>
198
198
  <br />
199
199
  <%= decidim_sanitize translated_attribute(current_participatory_space.closing_date_reason) %>
200
200
  </div>
@@ -1,6 +1,7 @@
1
1
  <% content_for :secondary_nav do %>
2
2
  <div class="secondary-nav secondary-nav--subnav">
3
3
  <ul>
4
+ <%= public_page_link decidim_assemblies.assembly_path(current_participatory_space) %>
4
5
  <% if allowed_to? :update, :assembly, assembly: current_participatory_space %>
5
6
  <li <% if is_active_link?(decidim_admin_assemblies.edit_assembly_path(current_participatory_space)) %> class="is-active" <% end %>>
6
7
  <%= aria_selected_link_to t("info", scope: "decidim.admin.menu.assemblies_submenu"), decidim_admin_assemblies.edit_assembly_path(current_participatory_space) %>
@@ -238,6 +238,9 @@ ca:
238
238
  not_ceased: No cessat
239
239
  filter_by: Filtra per
240
240
  search: Cerca
241
+ content_blocks:
242
+ highlighted_assemblies:
243
+ max_results: Quantitat màxima d'elements que es mostraran
241
244
  assembly_members:
242
245
  index:
243
246
  members: Membres
@@ -258,6 +261,8 @@ ca:
258
261
  public: Públic
259
262
  index:
260
263
  title: Assemblees
264
+ last_activity:
265
+ new_assembly: Nova assemblea
261
266
  pages:
262
267
  home:
263
268
  highlighted_assemblies:
@@ -320,6 +325,10 @@ ca:
320
325
  not_found: 'L''assemblea no s''ha trobada a la base de dades (ID: %{id})'
321
326
  menu:
322
327
  assemblies: Assemblees
328
+ metrics:
329
+ assemblies:
330
+ object: assemblees
331
+ title: Assemblees
323
332
  errors:
324
333
  messages:
325
334
  cannot_be_blank: no es pot deixar en blanc
@@ -329,7 +338,9 @@ ca:
329
338
  assembly:
330
339
  take_part: Participa
331
340
  index:
341
+ organizational_chart: Organigrama
332
342
  promoted_assemblies: Assemblees destacades
343
+ reset_chart: Restablir
333
344
  order_by_assemblies:
334
345
  assemblies:
335
346
  one: "%{count} assemblea"
@@ -238,6 +238,9 @@ de:
238
238
  not_ceased: Nicht aufgehört
239
239
  filter_by: Filtern nach
240
240
  search: Suche
241
+ content_blocks:
242
+ highlighted_assemblies:
243
+ max_results: Maximale Anzahl der Elemente, die angezeigt werden sollen
241
244
  assembly_members:
242
245
  index:
243
246
  members: Mitglieder
@@ -258,6 +261,8 @@ de:
258
261
  public: Öffentlichkeit
259
262
  index:
260
263
  title: Baugruppen
264
+ last_activity:
265
+ new_assembly: Neue Montage
261
266
  pages:
262
267
  home:
263
268
  highlighted_assemblies:
@@ -320,6 +325,10 @@ de:
320
325
  not_found: 'Die Assembly wurde nicht in der Datenbank gefunden (ID: %{id})'
321
326
  menu:
322
327
  assemblies: Baugruppen
328
+ metrics:
329
+ assemblies:
330
+ object: Baugruppen
331
+ title: Baugruppen
323
332
  errors:
324
333
  messages:
325
334
  cannot_be_blank: darf nicht leer sein
@@ -329,7 +338,9 @@ de:
329
338
  assembly:
330
339
  take_part: Teilnehmen
331
340
  index:
341
+ organizational_chart: Organigramm
332
342
  promoted_assemblies: Hervorgehobene Baugruppen
343
+ reset_chart: Zurücksetzen
333
344
  order_by_assemblies:
334
345
  assemblies:
335
346
  one: "%{count} Versammlung"
@@ -239,6 +239,9 @@ en:
239
239
  not_ceased: Not ceased
240
240
  filter_by: Filter by
241
241
  search: Search
242
+ content_blocks:
243
+ highlighted_assemblies:
244
+ max_results: Maximum amount of elements to show
242
245
  assembly_members:
243
246
  index:
244
247
  members: Members
@@ -259,6 +262,8 @@ en:
259
262
  public: Public
260
263
  index:
261
264
  title: Assemblies
265
+ last_activity:
266
+ new_assembly: New assembly
262
267
  pages:
263
268
  home:
264
269
  highlighted_assemblies:
@@ -321,6 +326,10 @@ en:
321
326
  not_found: 'The assembly was not found on the database (ID: %{id})'
322
327
  menu:
323
328
  assemblies: Assemblies
329
+ metrics:
330
+ assemblies:
331
+ object: assemblies
332
+ title: Assemblies
324
333
  errors:
325
334
  messages:
326
335
  cannot_be_blank: can not be blank
@@ -330,7 +339,9 @@ en:
330
339
  assembly:
331
340
  take_part: Take part
332
341
  index:
342
+ organizational_chart: Organizational chart
333
343
  promoted_assemblies: Highlighted assemblies
344
+ reset_chart: Reset
334
345
  order_by_assemblies:
335
346
  assemblies:
336
347
  one: "%{count} assembly"
@@ -238,6 +238,9 @@ es-PY:
238
238
  not_ceased: No cesado
239
239
  filter_by: Filtrado por
240
240
  search: Buscar
241
+ content_blocks:
242
+ highlighted_assemblies:
243
+ max_results: Cantidad máxima de elementos para mostrar
241
244
  assembly_members:
242
245
  index:
243
246
  members: Miembros
@@ -258,6 +261,8 @@ es-PY:
258
261
  public: Público
259
262
  index:
260
263
  title: Asambleas
264
+ last_activity:
265
+ new_assembly: Nueva asamblea
261
266
  pages:
262
267
  home:
263
268
  highlighted_assemblies:
@@ -320,6 +325,10 @@ es-PY:
320
325
  not_found: 'No se encontró la asamblea en la base de datos (ID: %{id})'
321
326
  menu:
322
327
  assemblies: Asambleas
328
+ metrics:
329
+ assemblies:
330
+ object: asambleas
331
+ title: Asambleas
323
332
  errors:
324
333
  messages:
325
334
  cannot_be_blank: no puede estar en blanco
@@ -329,7 +338,9 @@ es-PY:
329
338
  assembly:
330
339
  take_part: Participa
331
340
  index:
341
+ organizational_chart: Organigrama
332
342
  promoted_assemblies: Asambleas destacadas
343
+ reset_chart: Reiniciar
333
344
  order_by_assemblies:
334
345
  assemblies:
335
346
  one: "%{count} asamblea"
@@ -238,6 +238,9 @@ es:
238
238
  not_ceased: No cesado
239
239
  filter_by: Filtrado por
240
240
  search: Buscar
241
+ content_blocks:
242
+ highlighted_assemblies:
243
+ max_results: Cantidad máxima de elementos para mostrar
241
244
  assembly_members:
242
245
  index:
243
246
  members: Miembros
@@ -258,6 +261,8 @@ es:
258
261
  public: Público
259
262
  index:
260
263
  title: Asambleas
264
+ last_activity:
265
+ new_assembly: Nueva asamblea
261
266
  pages:
262
267
  home:
263
268
  highlighted_assemblies:
@@ -320,6 +325,10 @@ es:
320
325
  not_found: 'No se encontró la asamblea en la base de datos (ID: %{id})'
321
326
  menu:
322
327
  assemblies: Asambleas
328
+ metrics:
329
+ assemblies:
330
+ object: asambleas
331
+ title: Asambleas
323
332
  errors:
324
333
  messages:
325
334
  cannot_be_blank: no puede estar en blanco
@@ -329,7 +338,9 @@ es:
329
338
  assembly:
330
339
  take_part: Participa
331
340
  index:
341
+ organizational_chart: Organigrama
332
342
  promoted_assemblies: Asambleas destacadas
343
+ reset_chart: Reiniciar
333
344
  order_by_assemblies:
334
345
  assemblies:
335
346
  one: "%{count} asamblea"
@@ -238,6 +238,9 @@ eu:
238
238
  not_ceased: Ez da gelditu
239
239
  filter_by: Iragazi arabera
240
240
  search: Search
241
+ content_blocks:
242
+ highlighted_assemblies:
243
+ max_results: Erakusteko elementu gehienen kopurua
241
244
  assembly_members:
242
245
  index:
243
246
  members: Bazkideek
@@ -258,6 +261,8 @@ eu:
258
261
  public: Publiko
259
262
  index:
260
263
  title: Biltzarrak
264
+ last_activity:
265
+ new_assembly: Batzar berria
261
266
  pages:
262
267
  home:
263
268
  highlighted_assemblies:
@@ -320,6 +325,10 @@ eu:
320
325
  not_found: 'Ez da muntaia aurkitu datu-basean (ID: %{id})'
321
326
  menu:
322
327
  assemblies: Biltzarrak
328
+ metrics:
329
+ assemblies:
330
+ object: batzarrak
331
+ title: Batzar
323
332
  errors:
324
333
  messages:
325
334
  cannot_be_blank: ezin da hutsik egon
@@ -329,7 +338,9 @@ eu:
329
338
  assembly:
330
339
  take_part: Parte hartu
331
340
  index:
341
+ organizational_chart: Organigrama
332
342
  promoted_assemblies: Batzar nabarmenduak
343
+ reset_chart: Berrezarri
333
344
  order_by_assemblies:
334
345
  assemblies:
335
346
  one: "%{count} batzarra"
@@ -150,7 +150,7 @@ fi:
150
150
  error: Ryhmän käyttäjän päivityksessä tapahtui virhe.
151
151
  success: Ryhmän käyttäjä päivitetty onnistuneesti.
152
152
  menu:
153
- assemblies: Kehitysryhmät
153
+ assemblies: Ryhmät
154
154
  assemblies_submenu:
155
155
  assembly_admins: Ryhmän käyttäjät
156
156
  assembly_members: Jäsenet
@@ -194,7 +194,7 @@ fi:
194
194
  collaborator: Osallistumiskäyttäjä
195
195
  moderator: Moderoija
196
196
  titles:
197
- assemblies: Kehitysryhmät
197
+ assemblies: Ryhmät
198
198
  admin_log:
199
199
  assembly:
200
200
  create: "%{user_name} loi %{resource_name} ryhmän"
@@ -238,6 +238,9 @@ fi:
238
238
  not_ceased: Ei lakkautettu
239
239
  filter_by: Suodata
240
240
  search: Hae
241
+ content_blocks:
242
+ highlighted_assemblies:
243
+ max_results: Näytettävien elementtien enimmäismäärä
241
244
  assembly_members:
242
245
  index:
243
246
  members: Jäsenet
@@ -257,12 +260,14 @@ fi:
257
260
  others: Muut
258
261
  public: Julkinen
259
262
  index:
260
- title: Kehitysryhmät
263
+ title: Ryhmät
264
+ last_activity:
265
+ new_assembly: Uusi ryhmä
261
266
  pages:
262
267
  home:
263
268
  highlighted_assemblies:
264
- active_assemblies: Aktiiviset kehitysryhmät
265
- see_all_assemblies: Näytä kaikki kehitysryhmät
269
+ active_assemblies: Aktiiviset ryhmät
270
+ see_all_assemblies: Näytä kaikki ryhmät
266
271
  user_profile:
267
272
  member_of:
268
273
  member_of: Jäsen ryhmässä
@@ -295,7 +300,7 @@ fi:
295
300
  target: Kuka osallistuu
296
301
  statistics:
297
302
  answers_count: Vastaukset
298
- assemblies_count: Kehitysryhmät
303
+ assemblies_count: Ryhmät
299
304
  comments_count: Kommentit
300
305
  debates_count: Keskustelut
301
306
  endorsements_count: Suositukset
@@ -319,7 +324,11 @@ fi:
319
324
  assembly_presenter:
320
325
  not_found: 'Ryhmää ei löytynyt tietokannasta (ID: %{id})'
321
326
  menu:
322
- assemblies: Kehitysryhmät
327
+ assemblies: Ryhmät
328
+ metrics:
329
+ assemblies:
330
+ object: ryhmät
331
+ title: Ryhmät
323
332
  errors:
324
333
  messages:
325
334
  cannot_be_blank: ei voi olla tyhjä
@@ -329,7 +338,9 @@ fi:
329
338
  assembly:
330
339
  take_part: Osallistu
331
340
  index:
332
- promoted_assemblies: Korostetut kehitysryhmät
341
+ organizational_chart: Organisaatiokaavio
342
+ promoted_assemblies: Korostetut ryhmät
343
+ reset_chart: Palauta
333
344
  order_by_assemblies:
334
345
  assemblies:
335
346
  one: "%{count} ryhmä"
@@ -238,6 +238,9 @@ fr:
238
238
  not_ceased: Validité en cours
239
239
  filter_by: Filtrer par
240
240
  search: Rechercher
241
+ content_blocks:
242
+ highlighted_assemblies:
243
+ max_results: Quantité maximale d'éléments à afficher
241
244
  assembly_members:
242
245
  index:
243
246
  members: Membres
@@ -258,6 +261,8 @@ fr:
258
261
  public: Public
259
262
  index:
260
263
  title: Assemblées
264
+ last_activity:
265
+ new_assembly: Nouvelle assemblée
261
266
  pages:
262
267
  home:
263
268
  highlighted_assemblies:
@@ -320,6 +325,10 @@ fr:
320
325
  not_found: 'L''assemblée n''a pas été trouvée sur la base de données (ID: %{id})'
321
326
  menu:
322
327
  assemblies: Assemblées
328
+ metrics:
329
+ assemblies:
330
+ object: assemblées
331
+ title: Assemblages
323
332
  errors:
324
333
  messages:
325
334
  cannot_be_blank: ne peut être vide
@@ -329,7 +338,9 @@ fr:
329
338
  assembly:
330
339
  take_part: Participer
331
340
  index:
341
+ organizational_chart: Organigramme
332
342
  promoted_assemblies: Assemblées mises en avant
343
+ reset_chart: Réinitialiser
333
344
  order_by_assemblies:
334
345
  assemblies:
335
346
  one: "%{count} assemblée"
@@ -238,6 +238,9 @@ gl:
238
238
  not_ceased: Non cesou
239
239
  filter_by: Filtrar por
240
240
  search: Busca
241
+ content_blocks:
242
+ highlighted_assemblies:
243
+ max_results: Cantidade máxima de elementos para mostrar
241
244
  assembly_members:
242
245
  index:
243
246
  members: Membros
@@ -258,6 +261,8 @@ gl:
258
261
  public: Público
259
262
  index:
260
263
  title: Asembleas
264
+ last_activity:
265
+ new_assembly: Nova montaxe
261
266
  pages:
262
267
  home:
263
268
  highlighted_assemblies:
@@ -320,6 +325,10 @@ gl:
320
325
  not_found: 'A asemblea non se atopou na base de datos (ID: %{id})'
321
326
  menu:
322
327
  assemblies: Asembleas
328
+ metrics:
329
+ assemblies:
330
+ object: asembleas
331
+ title: Asembleas
323
332
  errors:
324
333
  messages:
325
334
  cannot_be_blank: non pode estar en branco
@@ -329,7 +338,9 @@ gl:
329
338
  assembly:
330
339
  take_part: Tomar parte en
331
340
  index:
341
+ organizational_chart: Organigrama
332
342
  promoted_assemblies: Asembleas destacadas
343
+ reset_chart: Restablecer
333
344
  order_by_assemblies:
334
345
  assemblies:
335
346
  one: "Asemblea %{count}"
@@ -238,6 +238,9 @@ hu:
238
238
  not_ceased: Nem szűnt meg
239
239
  filter_by: 'Szűrés ez alapján:'
240
240
  search: Keresés
241
+ content_blocks:
242
+ highlighted_assemblies:
243
+ max_results: A megjelenítendő elemek maximális száma
241
244
  assembly_members:
242
245
  index:
243
246
  members: Tagok
@@ -258,6 +261,8 @@ hu:
258
261
  public: Nyilvános
259
262
  index:
260
263
  title: Gyűlések
264
+ last_activity:
265
+ new_assembly: Új összeszerelés
261
266
  pages:
262
267
  home:
263
268
  highlighted_assemblies:
@@ -320,6 +325,10 @@ hu:
320
325
  not_found: 'A gyűlés nem található az adatbázisban (ID: %{id})'
321
326
  menu:
322
327
  assemblies: Gyűlések
328
+ metrics:
329
+ assemblies:
330
+ object: szerelvények
331
+ title: szerelvények
323
332
  errors:
324
333
  messages:
325
334
  cannot_be_blank: nem lehet üres
@@ -329,7 +338,9 @@ hu:
329
338
  assembly:
330
339
  take_part: Vegyél részt
331
340
  index:
341
+ organizational_chart: Szervezési táblázat
332
342
  promoted_assemblies: Kiemelt gyűlések
343
+ reset_chart: Visszaállítás
333
344
  order_by_assemblies:
334
345
  assemblies:
335
346
  one: "%{count} gyűlés"
@@ -238,6 +238,9 @@ it:
238
238
  not_ceased: Non è cessato
239
239
  filter_by: Filtra per
240
240
  search: Ricerca
241
+ content_blocks:
242
+ highlighted_assemblies:
243
+ max_results: Quantità massima di elementi da mostrare
241
244
  assembly_members:
242
245
  index:
243
246
  members: Utenti
@@ -258,6 +261,8 @@ it:
258
261
  public: Pubblico
259
262
  index:
260
263
  title: assemblee
264
+ last_activity:
265
+ new_assembly: Nuovo assemblaggio
261
266
  pages:
262
267
  home:
263
268
  highlighted_assemblies:
@@ -320,6 +325,10 @@ it:
320
325
  not_found: 'L''assembly non è stato trovato nel database (ID: %{id})'
321
326
  menu:
322
327
  assemblies: assemblee
328
+ metrics:
329
+ assemblies:
330
+ object: assiemi
331
+ title: assemblee
323
332
  errors:
324
333
  messages:
325
334
  cannot_be_blank: non può essere vuoto
@@ -329,7 +338,9 @@ it:
329
338
  assembly:
330
339
  take_part: Partecipa
331
340
  index:
341
+ organizational_chart: Grafico organizzativo
332
342
  promoted_assemblies: Assiemi evidenziati
343
+ reset_chart: Reset
333
344
  order_by_assemblies:
334
345
  assemblies:
335
346
  one: "%{count} montaggio"
@@ -238,6 +238,9 @@ nl:
238
238
  not_ceased: Niet opgehouden
239
239
  filter_by: Filteren op
240
240
  search: Zoeken
241
+ content_blocks:
242
+ highlighted_assemblies:
243
+ max_results: Maximum aantal elementen dat kan worden weergegeven
241
244
  assembly_members:
242
245
  index:
243
246
  members: leden
@@ -258,6 +261,8 @@ nl:
258
261
  public: Openbaar
259
262
  index:
260
263
  title: Events
264
+ last_activity:
265
+ new_assembly: Nieuwe vergadering
261
266
  pages:
262
267
  home:
263
268
  highlighted_assemblies:
@@ -320,6 +325,10 @@ nl:
320
325
  not_found: 'De assembly is niet gevonden in de database (ID: %{id})'
321
326
  menu:
322
327
  assemblies: Events
328
+ metrics:
329
+ assemblies:
330
+ object: assemblages
331
+ title: Assemblies
323
332
  errors:
324
333
  messages:
325
334
  cannot_be_blank: mag niet leeg zijn
@@ -329,7 +338,9 @@ nl:
329
338
  assembly:
330
339
  take_part: Deelnemen
331
340
  index:
341
+ organizational_chart: Organisatieschema
332
342
  promoted_assemblies: Uitgelichte events
343
+ reset_chart: Reset
333
344
  order_by_assemblies:
334
345
  assemblies:
335
346
  one: "%{count} bijeenkomst"
@@ -244,6 +244,9 @@ pl:
244
244
  not_ceased: Nie przestał
245
245
  filter_by: Filtruj według
246
246
  search: Szukaj
247
+ content_blocks:
248
+ highlighted_assemblies:
249
+ max_results: Maksymalna ilość elementów do pokazania
247
250
  assembly_members:
248
251
  index:
249
252
  members: Członkowie
@@ -264,6 +267,8 @@ pl:
264
267
  public: Publiczny
265
268
  index:
266
269
  title: Zespoły
270
+ last_activity:
271
+ new_assembly: Nowy montaż
267
272
  pages:
268
273
  home:
269
274
  highlighted_assemblies:
@@ -326,6 +331,10 @@ pl:
326
331
  not_found: 'Zestaw nie został znaleziony w bazie danych (ID: %{id})'
327
332
  menu:
328
333
  assemblies: Zespoły
334
+ metrics:
335
+ assemblies:
336
+ object: zespoły
337
+ title: Złożenia
329
338
  errors:
330
339
  messages:
331
340
  cannot_be_blank: nie może być puste
@@ -335,7 +344,9 @@ pl:
335
344
  assembly:
336
345
  take_part: Wziąć udział
337
346
  index:
347
+ organizational_chart: Schemat organizacyjny
338
348
  promoted_assemblies: Podświetlone zespoły
349
+ reset_chart: Nastawić
339
350
  order_by_assemblies:
340
351
  assemblies:
341
352
  one: "%{count} montaż"
@@ -238,6 +238,9 @@ pt-BR:
238
238
  not_ceased: Não cessou
239
239
  filter_by: Filtrar por
240
240
  search: Procurar
241
+ content_blocks:
242
+ highlighted_assemblies:
243
+ max_results: Quantidade máxima de elementos para mostrar
241
244
  assembly_members:
242
245
  index:
243
246
  members: Membros
@@ -258,6 +261,8 @@ pt-BR:
258
261
  public: Público
259
262
  index:
260
263
  title: Assembleias
264
+ last_activity:
265
+ new_assembly: Nova assembleia
261
266
  pages:
262
267
  home:
263
268
  highlighted_assemblies:
@@ -320,6 +325,10 @@ pt-BR:
320
325
  not_found: 'O assembly não foi encontrado no banco de dados (ID: %{id})'
321
326
  menu:
322
327
  assemblies: Assembleias
328
+ metrics:
329
+ assemblies:
330
+ object: assembleias
331
+ title: Assembleias
323
332
  errors:
324
333
  messages:
325
334
  cannot_be_blank: nao pode estar em branco
@@ -329,7 +338,9 @@ pt-BR:
329
338
  assembly:
330
339
  take_part: Participar
331
340
  index:
341
+ organizational_chart: Organograma
332
342
  promoted_assemblies: Montagens destacadas
343
+ reset_chart: Restabelecer
333
344
  order_by_assemblies:
334
345
  assemblies:
335
346
  one: "Assembly %{count}"
@@ -238,6 +238,9 @@ pt:
238
238
  not_ceased: Não cessou
239
239
  filter_by: Filtrar por
240
240
  search: Pesquisa
241
+ content_blocks:
242
+ highlighted_assemblies:
243
+ max_results: Quantidade máxima de elementos para mostrar
241
244
  assembly_members:
242
245
  index:
243
246
  members: Membros
@@ -258,6 +261,8 @@ pt:
258
261
  public: Público
259
262
  index:
260
263
  title: Assembléias
264
+ last_activity:
265
+ new_assembly: Nova montagem
261
266
  pages:
262
267
  home:
263
268
  highlighted_assemblies:
@@ -320,6 +325,10 @@ pt:
320
325
  not_found: 'O assembly não foi encontrado no banco de dados (ID: %{id})'
321
326
  menu:
322
327
  assemblies: Assembléias
328
+ metrics:
329
+ assemblies:
330
+ object: assembléias
331
+ title: Assemblies
323
332
  errors:
324
333
  messages:
325
334
  cannot_be_blank: nao pode estar em branco
@@ -329,7 +338,9 @@ pt:
329
338
  assembly:
330
339
  take_part: Participar
331
340
  index:
341
+ organizational_chart: Organograma
332
342
  promoted_assemblies: Montagens destacadas
343
+ reset_chart: Restabelecer
333
344
  order_by_assemblies:
334
345
  assemblies:
335
346
  one: "Assembly %{count}"
@@ -238,6 +238,9 @@ sv:
238
238
  not_ceased: Inte upphört
239
239
  filter_by: Filtrera efter
240
240
  search: Sök
241
+ content_blocks:
242
+ highlighted_assemblies:
243
+ max_results: Maximalt antal element att visa
241
244
  assembly_members:
242
245
  index:
243
246
  members: Medlemmar
@@ -258,6 +261,8 @@ sv:
258
261
  public: Offentligt
259
262
  index:
260
263
  title: Möten
264
+ last_activity:
265
+ new_assembly: Ny sammankomst
261
266
  pages:
262
267
  home:
263
268
  highlighted_assemblies:
@@ -320,6 +325,10 @@ sv:
320
325
  not_found: 'Mötet hittades inte i databasen (ID: %{id})'
321
326
  menu:
322
327
  assemblies: Möten
328
+ metrics:
329
+ assemblies:
330
+ object: aggregaten
331
+ title: Assemblies
323
332
  errors:
324
333
  messages:
325
334
  cannot_be_blank: kan inte vara tomt
@@ -329,7 +338,9 @@ sv:
329
338
  assembly:
330
339
  take_part: Delta
331
340
  index:
341
+ organizational_chart: Organisationsschema
332
342
  promoted_assemblies: Markerade möten
343
+ reset_chart: Återställ
333
344
  order_by_assemblies:
334
345
  assemblies:
335
346
  one: "%{count} möte"
data/db/seeds/city.jpeg CHANGED
Binary file
data/db/seeds/city2.jpeg CHANGED
Binary file
@@ -68,7 +68,7 @@ module Decidim
68
68
  assemblies = OrganizationPublishedAssemblies.new(view_context.current_organization, view_context.current_user)
69
69
  .query.distinct
70
70
  .joins(:members)
71
- .merge(Decidim::AssemblyMember.where(user: view_context.user))
71
+ .merge(Decidim::AssemblyMember.where(user: view_context.profile_holder))
72
72
  .reorder(title: :asc)
73
73
 
74
74
  next unless assemblies.any?
@@ -89,8 +89,22 @@ module Decidim
89
89
  Decidim.content_blocks.register(:homepage, :highlighted_assemblies) do |content_block|
90
90
  content_block.cell = "decidim/assemblies/content_blocks/highlighted_assemblies"
91
91
  content_block.public_name_key = "decidim.assemblies.content_blocks.highlighted_assemblies.name"
92
+ content_block.settings_form_cell = "decidim/assemblies/content_blocks/highlighted_assemblies_settings_form"
93
+
94
+ content_block.settings do |settings|
95
+ settings.attribute :max_results, type: :integer, default: 4
96
+ end
92
97
  end
93
98
  end
99
+
100
+ initializer "decidim_assemblies.register_metrics" do
101
+ Decidim.metrics_registry.register(
102
+ :assemblies,
103
+ "Decidim::Assemblies::Metrics::AssembliesMetricManage",
104
+ Decidim::MetricRegistry::NOT_HIGHLIGHTED,
105
+ 1
106
+ )
107
+ end
94
108
  end
95
109
  end
96
110
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  Decidim.register_participatory_space(:assemblies) do |participatory_space|
4
- participatory_space.icon = "decidim/assemblies/icon.svg"
4
+ participatory_space.icon = "decidim/assemblies/assembly.svg"
5
5
  participatory_space.model_class_name = "Decidim::Assembly"
6
6
 
7
7
  participatory_space.participatory_spaces do |organization|
@@ -38,7 +38,7 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
38
38
  )
39
39
 
40
40
  2.times do |n|
41
- assembly = Decidim::Assembly.create!(
41
+ params = {
42
42
  title: Decidim::Faker::Localized.sentence(5),
43
43
  slug: Faker::Internet.unique.slug(nil, "-"),
44
44
  subtitle: Decidim::Faker::Localized.sentence(2),
@@ -88,7 +88,16 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
88
88
  instagram_handler: Faker::Lorem.word,
89
89
  youtube_handler: Faker::Lorem.word,
90
90
  github_handler: Faker::Lorem.word
91
- )
91
+ }
92
+
93
+ assembly = Decidim.traceability.perform_action!(
94
+ "publish",
95
+ Decidim::Assembly,
96
+ organization.users.first,
97
+ visibility: "all"
98
+ ) do
99
+ Decidim::Assembly.create!(params)
100
+ end
92
101
 
93
102
  # Create users with specific roles
94
103
  Decidim::AssemblyUserRole::ROLES.each do |role|
@@ -9,37 +9,37 @@ FactoryBot.define do
9
9
  end
10
10
 
11
11
  factory :assembly, class: "Decidim::Assembly" do
12
- title { Decidim::Faker::Localized.sentence(3) }
12
+ title { generate_localized_title }
13
13
  slug { generate(:assembly_slug) }
14
- subtitle { Decidim::Faker::Localized.sentence(1) }
15
- short_description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { Decidim::Faker::Localized.sentence(2) } }
16
- description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { Decidim::Faker::Localized.sentence(4) } }
14
+ subtitle { generate_localized_title }
15
+ short_description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
16
+ description { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
17
17
  hero_image { Decidim::Dev.test_file("city.jpeg", "image/jpeg") }
18
18
  banner_image { Decidim::Dev.test_file("city2.jpeg", "image/jpeg") }
19
19
  published_at { Time.current }
20
20
  organization
21
21
  meta_scope { Decidim::Faker::Localized.word }
22
- developer_group { Decidim::Faker::Localized.sentence(1) }
23
- local_area { Decidim::Faker::Localized.sentence(2) }
24
- target { Decidim::Faker::Localized.sentence(3) }
25
- participatory_scope { Decidim::Faker::Localized.sentence(1) }
26
- participatory_structure { Decidim::Faker::Localized.sentence(2) }
22
+ developer_group { generate_localized_title }
23
+ local_area { generate_localized_title }
24
+ target { generate_localized_title }
25
+ participatory_scope { generate_localized_title }
26
+ participatory_structure { generate_localized_title }
27
27
  show_statistics { true }
28
28
  private_space { false }
29
- purpose_of_action { Decidim::Faker::Localized.wrapped("<p>", "</p>") { Decidim::Faker::Localized.sentence(2) } }
30
- composition { Decidim::Faker::Localized.wrapped("<p>", "</p>") { Decidim::Faker::Localized.sentence(2) } }
29
+ purpose_of_action { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
30
+ composition { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
31
31
  assembly_type { "others" }
32
- assembly_type_other { Decidim::Faker::Localized.sentence(1) }
32
+ assembly_type_other { generate_localized_title }
33
33
  creation_date { 1.month.ago }
34
34
  created_by { "others" }
35
35
  created_by_other { Decidim::Faker::Localized.word }
36
36
  duration { 2.months.from_now.at_midnight }
37
37
  included_at { 1.month.ago }
38
38
  closing_date { 2.months.from_now.at_midnight }
39
- closing_date_reason { Decidim::Faker::Localized.wrapped("<p>", "</p>") { Decidim::Faker::Localized.sentence(2) } }
40
- internal_organisation { Decidim::Faker::Localized.wrapped("<p>", "</p>") { Decidim::Faker::Localized.sentence(2) } }
39
+ closing_date_reason { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
40
+ internal_organisation { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
41
41
  is_transparent { true }
42
- special_features { Decidim::Faker::Localized.wrapped("<p>", "</p>") { Decidim::Faker::Localized.sentence(2) } }
42
+ special_features { Decidim::Faker::Localized.wrapped("<p>", "</p>") { generate_localized_title } }
43
43
  twitter_handler { "others" }
44
44
  facebook_handler { "others" }
45
45
  instagram_handler { "others" }
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-assemblies version.
5
5
  module Assemblies
6
6
  def self.version
7
- "0.14.4"
7
+ "0.15.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-assemblies
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.4
4
+ version: 0.15.0
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: 2018-10-24 00:00:00.000000000 Z
13
+ date: 2018-11-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,42 +18,42 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.14.4
21
+ version: 0.15.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 0.14.4
28
+ version: 0.15.0
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: decidim-admin
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.14.4
35
+ version: 0.15.0
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - '='
41
41
  - !ruby/object:Gem::Version
42
- version: 0.14.4
42
+ version: 0.15.0
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: decidim-dev
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.14.4
49
+ version: 0.15.0
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - '='
55
55
  - !ruby/object:Gem::Version
56
- version: 0.14.4
56
+ version: 0.15.0
57
57
  description: Assemblies component for decidim.
58
58
  email:
59
59
  - josepjaume@gmail.com
@@ -79,6 +79,9 @@ files:
79
79
  - app/cells/decidim/assemblies/assembly_member_cell.rb
80
80
  - app/cells/decidim/assemblies/content_blocks/highlighted_assemblies/show.erb
81
81
  - app/cells/decidim/assemblies/content_blocks/highlighted_assemblies_cell.rb
82
+ - app/cells/decidim/assemblies/content_blocks/highlighted_assemblies_settings_form/show.erb
83
+ - app/cells/decidim/assemblies/content_blocks/highlighted_assemblies_settings_form_cell.rb
84
+ - app/cells/decidim/assembly_activity_cell.rb
82
85
  - app/commands/decidim/assemblies/admin/copy_assembly.rb
83
86
  - app/commands/decidim/assemblies/admin/create_assembly.rb
84
87
  - app/commands/decidim/assemblies/admin/create_assembly_admin.rb
@@ -135,9 +138,11 @@ files:
135
138
  - app/queries/decidim/assemblies/admin/admin_users.rb
136
139
  - app/queries/decidim/assemblies/admin/assembly_members.rb
137
140
  - app/queries/decidim/assemblies/assemblies_with_user_role.rb
141
+ - app/queries/decidim/assemblies/metrics/assemblies_metric_manage.rb
138
142
  - app/queries/decidim/assemblies/organization_assemblies.rb
139
143
  - app/queries/decidim/assemblies/organization_prioritized_assemblies.rb
140
144
  - app/queries/decidim/assemblies/organization_published_assemblies.rb
145
+ - app/queries/decidim/assemblies/parent_assemblies.rb
141
146
  - app/queries/decidim/assemblies/prioritized_assemblies.rb
142
147
  - app/queries/decidim/assemblies/promoted_assemblies.rb
143
148
  - app/queries/decidim/assemblies/published_assemblies.rb
@@ -231,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
231
236
  version: '0'
232
237
  requirements: []
233
238
  rubyforge_project:
234
- rubygems_version: 2.7.7
239
+ rubygems_version: 2.7.6
235
240
  signing_key:
236
241
  specification_version: 4
237
242
  summary: Decidim assemblies module