decidim-sortitions 0.26.2 → 0.27.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/app/commands/decidim/sortitions/admin/create_sortition.rb +1 -1
  3. data/app/commands/decidim/sortitions/admin/destroy_sortition.rb +1 -1
  4. data/app/commands/decidim/sortitions/admin/update_sortition.rb +1 -1
  5. data/app/controllers/decidim/sortitions/sortitions_controller.rb +11 -8
  6. data/app/models/decidim/sortitions/sortition.rb +12 -6
  7. data/app/queries/decidim/sortitions/admin/participatory_space_proposal_components.rb +1 -1
  8. data/app/queries/decidim/sortitions/admin/participatory_space_proposals.rb +3 -3
  9. data/app/queries/decidim/sortitions/filtered_sortitions.rb +1 -1
  10. data/app/views/decidim/sortitions/sortitions/_filters.html.erb +3 -3
  11. data/config/locales/am-ET.yml +1 -0
  12. data/config/locales/ar.yml +1 -1
  13. data/config/locales/bg.yml +1 -0
  14. data/config/locales/ca.yml +2 -1
  15. data/config/locales/cs.yml +2 -1
  16. data/config/locales/da.yml +1 -0
  17. data/config/locales/de.yml +1 -1
  18. data/config/locales/el.yml +1 -1
  19. data/config/locales/en.yml +1 -1
  20. data/config/locales/eo.yml +1 -0
  21. data/config/locales/es-MX.yml +2 -1
  22. data/config/locales/es-PY.yml +2 -1
  23. data/config/locales/es.yml +2 -1
  24. data/config/locales/et.yml +1 -0
  25. data/config/locales/eu.yml +1 -1
  26. data/config/locales/fi-plain.yml +2 -1
  27. data/config/locales/fi.yml +2 -1
  28. data/config/locales/fr-CA.yml +2 -1
  29. data/config/locales/fr.yml +2 -1
  30. data/config/locales/ga-IE.yml +1 -0
  31. data/config/locales/gl.yml +2 -1
  32. data/config/locales/hr.yml +1 -0
  33. data/config/locales/hu.yml +2 -1
  34. data/config/locales/id-ID.yml +1 -1
  35. data/config/locales/is-IS.yml +2 -2
  36. data/config/locales/it.yml +1 -1
  37. data/config/locales/ja.yml +2 -1
  38. data/config/locales/ko.yml +1 -0
  39. data/config/locales/lb.yml +1 -0
  40. data/config/locales/lt.yml +1 -0
  41. data/config/locales/lv.yml +1 -1
  42. data/config/locales/mt.yml +1 -0
  43. data/config/locales/nl.yml +1 -1
  44. data/config/locales/no.yml +1 -1
  45. data/config/locales/om-ET.yml +1 -0
  46. data/config/locales/pl.yml +1 -1
  47. data/config/locales/pt-BR.yml +2 -2
  48. data/config/locales/pt.yml +1 -1
  49. data/config/locales/ro-RO.yml +1 -1
  50. data/config/locales/ru.yml +1 -1
  51. data/config/locales/si-LK.yml +1 -0
  52. data/config/locales/sk.yml +1 -1
  53. data/config/locales/sl.yml +1 -0
  54. data/config/locales/so-SO.yml +1 -0
  55. data/config/locales/sr-CS.yml +1 -0
  56. data/config/locales/sv.yml +1 -1
  57. data/config/locales/sw-KE.yml +1 -0
  58. data/config/locales/ti-ER.yml +1 -0
  59. data/config/locales/tr-TR.yml +1 -1
  60. data/config/locales/uk.yml +1 -1
  61. data/config/locales/val-ES.yml +1 -0
  62. data/config/locales/vi.yml +1 -0
  63. data/config/locales/zh-CN.yml +1 -1
  64. data/config/locales/zh-TW.yml +1 -0
  65. data/lib/decidim/sortitions/version.rb +1 -1
  66. metadata +16 -17
  67. data/app/services/decidim/sortitions/sortition_search.rb +0 -30
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c6489b39b7b655a48d5e4e7ac0fe484f4c741128b71a52049088b96c2c4d2984
4
- data.tar.gz: f30984b3ac60bd687c0d9cb32c1c9f4f02d8d525b11260684d571cb1a824d034
3
+ metadata.gz: 1f6f31f7d3d6f12642db8135686d3bffd529c15c7c2bbbe9941d0d7cf8c05d00
4
+ data.tar.gz: f250098801290a57172fc3dda5531f8af06cee2784c1584a4784086ccd07fbbe
5
5
  SHA512:
6
- metadata.gz: a72a66caf5ea21f9b1477a613886d20810d34cc7349709891f2f75dd9cea731c784575ec32e2a6005297f3b5d3a53f1f264bfda70e29af886c51250fae1699ad
7
- data.tar.gz: 14bd45716488698fffeefb0cf547626db03bdee2a8d7d68056e19a361c65f6814bb713568ebae375e53efc6dd707507b994bcd3c60acd2badbe0d433962ee10e
6
+ metadata.gz: 93a6eead87aa7ab10afc8e1c75a30717f0902064e05db0298c3df860c4aaeaa8ecd1cb5f748a7a919f4aa435293211afa2d10b3651d3da6d2a3b1043c7b61161
7
+ data.tar.gz: fcf4d303bc116ac6eb1337beca22ddd996f01265035487b133c934f585ab09ec1fbe52477aa829de325d43a6158242b682c72250ba3066bff79eb2e8ba8ba8eb
@@ -4,7 +4,7 @@ module Decidim
4
4
  module Sortitions
5
5
  module Admin
6
6
  # Command that creates a sortition that selects proposals
7
- class CreateSortition < Rectify::Command
7
+ class CreateSortition < Decidim::Command
8
8
  # Public: Initializes the command.
9
9
  #
10
10
  # form - A form object with the params.
@@ -4,7 +4,7 @@ module Decidim
4
4
  module Sortitions
5
5
  module Admin
6
6
  # Command that cancels a sortition
7
- class DestroySortition < Rectify::Command
7
+ class DestroySortition < Decidim::Command
8
8
  # Public: Initializes the command.
9
9
  #
10
10
  # form - A form object with the params.
@@ -4,7 +4,7 @@ module Decidim
4
4
  module Sortitions
5
5
  module Admin
6
6
  # Command that creates a sortition that selects proposals
7
- class UpdateSortition < Rectify::Command
7
+ class UpdateSortition < Decidim::Command
8
8
  # Public: Initializes the command.
9
9
  #
10
10
  # form - A form object with the params.
@@ -15,29 +15,32 @@ module Decidim
15
15
 
16
16
  def index
17
17
  @sortitions = search
18
- .results
19
- .includes(:author)
18
+ .result
20
19
  .includes(:category)
21
20
 
22
21
  @sortitions = paginate(@sortitions)
23
22
  @sortitions = reorder(@sortitions)
24
23
  end
25
24
 
25
+ def show
26
+ raise ActionController::RoutingError, "Not Found" unless sortition
27
+ end
28
+
26
29
  private
27
30
 
28
31
  def sortition
29
- Sortition.find(params[:id])
32
+ search_collection.find_by(id: params[:id])
30
33
  end
31
34
 
32
- def search_klass
33
- SortitionSearch
35
+ def search_collection
36
+ Sortition.where(component: current_component)
34
37
  end
35
38
 
36
39
  def default_filter_params
37
40
  {
38
- search_text: "",
39
- category_id: "",
40
- state: "active"
41
+ search_text_cont: "",
42
+ with_category: "",
43
+ with_any_state: "active"
41
44
  }
42
45
  end
43
46
  end
@@ -14,6 +14,7 @@ module Decidim
14
14
  include Decidim::Comments::CommentableWithComponent
15
15
  include Decidim::Randomable
16
16
  include Decidim::TranslatableResource
17
+ include Decidim::FilterableResource
17
18
 
18
19
  component_manifest_name "sortitions"
19
20
 
@@ -26,14 +27,11 @@ module Decidim
26
27
  class_name: "Decidim::User",
27
28
  optional: true
28
29
 
29
- scope :categorized_as, lambda { |category_id|
30
- includes(:categorization)
31
- .where("decidim_categorizations.decidim_category_id" => category_id)
32
- }
33
-
34
30
  scope :active, -> { where(cancelled_on: nil) }
35
31
  scope :cancelled, -> { where.not(cancelled_on: nil) }
36
32
 
33
+ scope_search_multi :with_any_state, [:active, :cancelled]
34
+
37
35
  def self.log_presenter_class_for(_log)
38
36
  Decidim::Sortitions::AdminLog::SortitionPresenter
39
37
  end
@@ -45,7 +43,7 @@ module Decidim
45
43
  def similar_count
46
44
  Sortition.where(component: component)
47
45
  .where(decidim_proposals_component: decidim_proposals_component)
48
- .categorized_as(category&.id)
46
+ .with_category(category&.id)
49
47
  .where(target_items: target_items)
50
48
  .count
51
49
  end
@@ -77,6 +75,14 @@ module Decidim
77
75
  def allow_resource_permissions?
78
76
  true
79
77
  end
78
+
79
+ # Create i18n ransackers for :title, :additional_info and :witnesses.
80
+ # Create the :search_text ransacker alias for searching from all of these.
81
+ ransacker_i18n_multi :search_text, [:title, :additional_info, :witnesses]
82
+
83
+ def self.ransackable_scopes(_auth_object = nil)
84
+ [:with_any_state, :with_category]
85
+ end
80
86
  end
81
87
  end
82
88
  end
@@ -4,7 +4,7 @@ module Decidim
4
4
  module Sortitions
5
5
  module Admin
6
6
  # Query that retrieves a list of proposal components
7
- class ParticipatorySpaceProposalComponents < Rectify::Query
7
+ class ParticipatorySpaceProposalComponents < Decidim::Query
8
8
  attr_reader :participatory_space
9
9
 
10
10
  # Sugar syntax. Allow retrieving all proposal components for the
@@ -3,7 +3,7 @@
3
3
  module Decidim
4
4
  module Sortitions
5
5
  module Admin
6
- class ParticipatorySpaceProposals < Rectify::Query
6
+ class ParticipatorySpaceProposals < Decidim::Query
7
7
  # Sugar syntax. Retrieve all proposals for the given sortition.
8
8
  def self.for(sortition)
9
9
  new(sortition).query
@@ -25,7 +25,7 @@ module Decidim
25
25
  if category.nil?
26
26
  return Decidim::Proposals::Proposal
27
27
  .except_withdrawn
28
- .except_drafts
28
+ .published
29
29
  .except_rejected
30
30
  .not_hidden
31
31
  .where("decidim_proposals_proposals.created_at < ?", request_timestamp)
@@ -37,7 +37,7 @@ module Decidim
37
37
  Decidim::Proposals::Proposal
38
38
  .joins(:categorization)
39
39
  .except_withdrawn
40
- .except_drafts
40
+ .published
41
41
  .except_rejected
42
42
  .not_hidden
43
43
  .where(component: sortition.decidim_proposals_component)
@@ -3,7 +3,7 @@
3
3
  module Decidim
4
4
  module Sortitions
5
5
  # A class used to find sortitions filtered by components and a date range
6
- class FilteredSortitions < Rectify::Query
6
+ class FilteredSortitions < Decidim::Query
7
7
  # Syntactic sugar to initialize the class and return the queried objects.
8
8
  #
9
9
  # components - An array of Decidim::Component
@@ -4,7 +4,7 @@
4
4
  <div class="filters__section">
5
5
  <div class="filters__search">
6
6
  <div class="input-group">
7
- <%= form.search_field :search_text, label: false, class: "input-group-field", placeholder: t(".search"), title: t(".search"), "aria-label": t(".search"), data: { disable_dynamic_change: true } %>
7
+ <%= form.search_field :search_text_cont, label: false, class: "input-group-field", placeholder: t(".search"), title: t(".search"), "aria-label": t(".search"), data: { disable_dynamic_change: true } %>
8
8
  <div class="input-group-button">
9
9
  <button type="submit" class="button" aria-controls="sortitions">
10
10
  <%= icon "magnifying-glass", aria_label: t(".search"), role: "img" %>
@@ -15,7 +15,7 @@
15
15
  </div>
16
16
 
17
17
  <% if current_participatory_space.categories.any? %>
18
- <%= form.categories_select :category_id,
18
+ <%= form.categories_select :with_category,
19
19
  current_participatory_space.categories,
20
20
  {
21
21
  legend_title: t(".category"),
@@ -28,7 +28,7 @@
28
28
  "aria-controls": "sortitions" %>
29
29
  <% end %>
30
30
 
31
- <%= form.collection_radio_buttons :state,
31
+ <%= form.collection_radio_buttons :with_any_state,
32
32
  [["all", t(".all")], ["active", t(".active")], ["cancelled", t(".cancelled")]],
33
33
  :first,
34
34
  :last,
@@ -1 +1,2 @@
1
+ ---
1
2
  am:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ar:
2
3
  activemodel:
3
4
  attributes:
@@ -81,7 +82,6 @@ ar:
81
82
  index:
82
83
  title: Sortitions
83
84
  new:
84
- confirm: بالضغط على الزر التالي ، سوف يسجل Decidim التاريخ والوقت (بدقة من الثواني) وجنبا إلى جنب مع لفة النرد ، سيتم استخدام هذه المعلومات لإنشاء اختيار عشوائي. لن يكون الإجراء قابلاً للرجوع إليه ، بمجرد النقر فوق الزر سيتم نشر نتيجة هذا السحب مع البيانات التي تم إدخالها في هذا النموذج ولا يمكن تعديلها ، يرجى التحقق من المحتوى بعناية
85
85
  create: إنشاء
86
86
  title: فرز جديد
87
87
  show:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  bg:
2
3
  activemodel:
3
4
  attributes:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ca:
2
3
  activemodel:
3
4
  attributes:
@@ -76,7 +77,7 @@ ca:
76
77
  index:
77
78
  title: Sortejos
78
79
  new:
79
- confirm: Pressionant el botó següent, Decidim registrarà la data i l'hora (amb precisió de segons) i, juntament amb la tirada de daus, aquesta informació s'utilitzarà per generar una selecció aleatòria. L'acció serà irreversible, una vegada que es faci clic al botó, es publicarà el resultat d'aquest sorteig, juntament amb les dades introduïdes en aquest formulari i que no es poden modificar. Si us plau, comprova el contingut acuradament
80
+ confirm: Pressionant el segëunt botó, la plataforma registrarà la data i l'hora (amb precisió de segons) i, juntament amb la tirada de daus, aquesta informació s'utilitzarà per generar una selecció aleatòria. L'acció serà irreversible, una vegada que es faci clic al botó, es publicarà el resultat d'aquest sorteig, juntament amb les dades introduïdes en aquest formulari i que no es poden modificar. Si us plau, comprova el contingut acuradament
80
81
  create: Crear
81
82
  title: Nou sorteig
82
83
  show:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  cs:
2
3
  activemodel:
3
4
  attributes:
@@ -80,7 +81,7 @@ cs:
80
81
  index:
81
82
  title: Losování
82
83
  new:
83
- confirm: Stisknutím dalšího tlačítka Decidim zaznamená datum a čas (s přesností sekund) a spolu s vržením kostkou tyto informace budou použity k vytvoření náhodného výběru. Akce bude nevratná, po kliknutí na tlačítko bude výsledek tohoto vrhu publikován, spolu s údaji zadanými v tomto formuláři a nelze je změnit, pečlivě zkontrolujte obsah
84
+ confirm: Stisknutím dalšího tlačítka bude platforma zaznamenávat datum a čas (s přesností sekund) a společně s kostkou, tyto informace budou použity k vytvoření náhodného výběru. Akce bude nevratná, po kliknutí na tlačítko bude výsledek tohoto remízu publikován, spolu s údaji zadanými v tomto formuláři a nelze je změnit, pečlivě zkontrolujte obsah
84
85
  create: Vytvořit
85
86
  title: Nové losování
86
87
  show:
@@ -1 +1,2 @@
1
+ ---
1
2
  da:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  de:
2
3
  activemodel:
3
4
  attributes:
@@ -74,7 +75,6 @@ de:
74
75
  index:
75
76
  title: Sortierungen
76
77
  new:
77
- confirm: Durch Drücken des nächsten Knopfes zeichnet Decidim das Datum und die Zeit (mit der Genauigkeit von Sekunden) auf und zusammen mit dem Würfelwurf wird diese Information verwendet, um eine zufällige Auswahl zu erzeugen. Die Aktion wird unumkehrbar sein, sobald die Schaltfläche angeklickt wird, wird das Ergebnis dieser Verlosung veröffentlicht, zusammen mit den in diesem Formular eingegebenen Daten und kann nicht geändert werden, bitte überprüfen Sie den Inhalt sorgfältig
78
78
  create: Erstellen
79
79
  title: Neue Sortierung
80
80
  show:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  el:
2
3
  activemodel:
3
4
  attributes:
@@ -73,7 +74,6 @@ el:
73
74
  index:
74
75
  title: Κληρώσεις
75
76
  new:
76
- confirm: Πατώντας το επόμενο κουμπί, το Decidim θα καταγράψει την ημερομηνία και την ώρα (με ακρίβεια δευτερολέπτων) και μαζί με τη ζαριά, αυτές οι πληροφορίες θα χρησιμοποιηθούν για τη δημιουργία μιας τυχαίας επιλογής. Η ενέργεια θα είναι μη αναστρέψιμη, μόλις πατήσετε το κουμπί, θα δημοσιευτεί το αποτέλεσμα αυτής της κλήρωσης, μαζί με τα δεδομένα που έχουν εισαχθεί σε αυτήν τη φόρμα και δεν μπορούν να τροποποιηθούν, ελέγξτε προσεκτικά το περιεχόμενο
77
77
  create: Δημιουργία
78
78
  title: Νέα κλήρωση
79
79
  show:
@@ -77,7 +77,7 @@ en:
77
77
  index:
78
78
  title: Sortitions
79
79
  new:
80
- confirm: By pressing the next button Decidim will record the date and time (with precision of seconds) and together with the dice roll, this information will be used to generate a random selection. The action will be irreversible, once the button is clicked the result of this draw will be published, together with the data entered in this form and can not be modified, please check the content carefully
80
+ confirm: By pressing the next button the platform will record the date and time (with precision of seconds) and together with the dice roll, this information will be used to generate a random selection. The action will be irreversible, once the button is clicked the result of this draw will be published, together with the data entered in this form and can not be modified, please check the content carefully
81
81
  create: Create
82
82
  title: New sortition
83
83
  show:
@@ -1 +1,2 @@
1
+ ---
1
2
  eo:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  es-MX:
2
3
  activemodel:
3
4
  attributes:
@@ -76,7 +77,7 @@ es-MX:
76
77
  index:
77
78
  title: Sorteos
78
79
  new:
79
- confirm: Al presionar el botón siguiente, Decidim registrará la fecha y la hora (con precisión de segundos) y junto con la tirada de dados, esta información se usará para generar una selección aleatoria. La acción será irreversible, una vez que se haga clic en el botón, se publicará el resultado de este sorteo, junto con los datos ingresados ​​en este formulario y no se pueden modificar, compruebe el contenido detenidamente
80
+ confirm: Al hacer clic en el siguiente botón, la plataforma registrará la fecha y hora (con una precisión de segundos) y el resultado del dado, y esta información se utilizará para generar una selección aleatoria. Esta acción será irreversible y, una vez que hayas hecho clic en el botón, se publicará el resultado del sorteo junto con los datos facilitados en el presente formulario y no podrán modificarse. Te pedimos que revises el contenido cuidadosamente
80
81
  create: Crear
81
82
  title: Nuevo sorteo
82
83
  show:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  es-PY:
2
3
  activemodel:
3
4
  attributes:
@@ -76,7 +77,7 @@ es-PY:
76
77
  index:
77
78
  title: Sorteos
78
79
  new:
79
- confirm: Al presionar el botón siguiente, Decidim registrará la fecha y la hora (con precisión de segundos) y junto con la tirada de dados, esta información se usará para generar una selección aleatoria. La acción será irreversible, una vez que se haga clic en el botón, se publicará el resultado de este sorteo, junto con los datos ingresados ​​en este formulario y no se pueden modificar, compruebe el contenido detenidamente
80
+ confirm: Al hacer clic en el siguiente botón, la plataforma registrará la fecha y hora (con una precisión de segundos) y el resultado del dado, y esta información se utilizará para generar una selección aleatoria. Esta acción será irreversible y, una vez que hayas hecho clic en el botón, se publicará el resultado del sorteo junto con los datos facilitados en el presente formulario y no podrán modificarse. Te pedimos que revises el contenido cuidadosamente
80
81
  create: Crear
81
82
  title: Nuevo sorteo
82
83
  show:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  es:
2
3
  activemodel:
3
4
  attributes:
@@ -76,7 +77,7 @@ es:
76
77
  index:
77
78
  title: Sorteos
78
79
  new:
79
- confirm: Al presionar el botón siguiente, Decidim registrará la fecha y la hora (con precisión de segundos) y junto con la tirada de dados, esta información se usará para generar una selección aleatoria. La acción será irreversible, una vez que se haga clic en el botón, se publicará el resultado de este sorteo, junto con los datos ingresados ​​en este formulario y no se pueden modificar, compruebe el contenido detenidamente
80
+ confirm: Al hacer clic en el siguiente botón, la plataforma registrará la fecha y hora (con una precisión de segundos) y el resultado del dado, y esta información se utilizará para generar una selección aleatoria. Esta acción será irreversible y, una vez que hayas hecho clic en el botón, se publicará el resultado del sorteo junto con los datos facilitados en el presente formulario y no podrán modificarse. Te pedimos que revises el contenido cuidadosamente
80
81
  create: Crear
81
82
  title: Nuevo sorteo
82
83
  show:
@@ -1 +1,2 @@
1
+ ---
1
2
  et:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  eu:
2
3
  activemodel:
3
4
  attributes:
@@ -76,7 +77,6 @@ eu:
76
77
  index:
77
78
  title: Sortitions
78
79
  new:
79
- confirm: Hurrengo botoia sakatuz gero, data eta ordua (segundotan zehaztuta) eta dadoen zerrendarekin batera grabatu egingo dira, informazio hori ausazko hautapena sortzeko erabiliko da. Ekintza atzeraezina izango da, botoia klik egitean zozketaren emaitza argitaratuko da, formulario honetan bildutako datuak eta ezin dira aldatu, egiaztatu edukia arretaz
80
80
  create: Sortu
81
81
  title: Sortion berria
82
82
  show:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  fi-pl:
2
3
  activemodel:
3
4
  attributes:
@@ -76,7 +77,7 @@ fi-pl:
76
77
  index:
77
78
  title: Satunnaisvalinnat
78
79
  new:
79
- confirm: Painamalla seuraavaa painiketta Decidim tallentaa päivämäärän ja kellonajan (sekuntien tarkkuudella) ja yhdessä nopan heiton kanssa näitä tietoja käytetään satunnaisvalinnan luomiseen. Toimenpide on peruuttamaton, kun painiketta painetaan valinnan tulos julkaistaan ​​yhdessä tämän lomakkeen tietojen kanssa eikä sitä voi muuttaa, tarkista sisältö huolellisesti
80
+ confirm: Kun painat painiketta, palvelin tallentaa päivämäärän ja kellonajan (sekunnin tarkkuudella) ja näitä tietoja käytetään yhdessä nopanheiton kanssa satunnaisen valinnan luomiseen. Toimintoa ei voi peruuttaa. Kun painiketta napsautetaan, arvonnan tulos julkaistaan yhdessä tähän lomakkeeseen syötettyjen tietojen kanssa. Tietoja ei voi muuttaa jälkikäteen, joten tarkista sisältö huolellisesti
80
81
  create: Luo
81
82
  title: Uusi satunnaisvalinta
82
83
  show:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  fi:
2
3
  activemodel:
3
4
  attributes:
@@ -76,7 +77,7 @@ fi:
76
77
  index:
77
78
  title: Satunnaisvalinnat
78
79
  new:
79
- confirm: Painamalla seuraavaa painiketta Decidim tallentaa päivämäärän ja kellonajan (sekuntien tarkkuudella) ja yhdessä nopan heiton kanssa näitä tietoja käytetään satunnaisvalinnan luomiseen. Toimenpide on peruuttamaton, kun painiketta painetaan valinnan tulos julkaistaan ​​yhdessä tämän lomakkeen tietojen kanssa eikä sitä voi muuttaa, tarkista sisältö huolellisesti
80
+ confirm: Kun painat painiketta, palvelin tallentaa päivämäärän ja kellonajan (sekunnin tarkkuudella) ja näitä tietoja käytetään yhdessä nopanheiton kanssa satunnaisen valinnan luomiseen. Toimintoa ei voi peruuttaa. Kun painiketta napsautetaan, arvonnan tulos julkaistaan yhdessä tähän lomakkeeseen syötettyjen tietojen kanssa. Tietoja ei voi muuttaa jälkikäteen, joten tarkista sisältö huolellisesti
80
81
  create: Luo
81
82
  title: Uusi satunnaisvalinta
82
83
  show:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  fr-CA:
2
3
  activemodel:
3
4
  attributes:
@@ -76,7 +77,7 @@ fr-CA:
76
77
  index:
77
78
  title: Tirages au sort
78
79
  new:
79
- confirm: 'En appuyant sur le bouton suivant, Decidim enregistrera la date et l''heure à la seconde près et, en association avec le résultat du tirage de dé, générera un choix aléatoire. Cette action est irréversible : une fois que vous aurez cliqué sur le bouton, le résultat du tirage ainsi que les données saisies dans le formulaire seront publiés et ne pourront pas être modifiés. Veillez donc bien à vérifier les informations renseignées en amont'
80
+ confirm: 'En appuyant sur le bouton suivant, la plateforme enregistrera la date et l''heure à la seconde près et, en association avec le résultat du tirage de dé, générera un choix aléatoire. Cette action est irréversible : une fois que vous aurez cliqué sur le bouton, le résultat du tirage ainsi que les données saisies dans le formulaire seront publiés et ne pourront pas être modifiés. Veillez donc bien à vérifier les informations renseignées en amont'
80
81
  create: Créer
81
82
  title: Nouveau tirage au sort
82
83
  show:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  fr:
2
3
  activemodel:
3
4
  attributes:
@@ -76,7 +77,7 @@ fr:
76
77
  index:
77
78
  title: Tirages au sort
78
79
  new:
79
- confirm: 'En appuyant sur le bouton suivant, Decidim enregistrera la date et l''heure à la seconde près et, en association avec le résultat du tirage de dé, générera un choix aléatoire. Cette action est irréversible : une fois que vous aurez cliqué sur le bouton, le résultat du tirage ainsi que les données saisies dans le formulaire seront publiés et ne pourront pas être modifiés. Veillez donc bien à vérifier les informations renseignées en amont'
80
+ confirm: 'En appuyant sur le bouton suivant, la plateforme enregistrera la date et l''heure à la seconde près et, en association avec le résultat du tirage de dé, générera un choix aléatoire. Cette action est irréversible : une fois que vous aurez cliqué sur le bouton, le résultat du tirage ainsi que les données saisies dans le formulaire seront publiés et ne pourront pas être modifiés. Veillez donc bien à vérifier les informations renseignées en amont'
80
81
  create: Créer
81
82
  title: Nouveau tirage au sort
82
83
  show:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ga:
2
3
  activemodel:
3
4
  attributes:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  gl:
2
3
  activemodel:
3
4
  attributes:
@@ -76,7 +77,7 @@ gl:
76
77
  index:
77
78
  title: Edicións
78
79
  new:
79
- confirm: Ao premer o botón seguinte, Decidim gravará a data e a hora (con precisión de segundos) e xunto co rolo de datos, esta información usarase para xerar unha selección aleatoria. A acción será irreversible, unha vez que se faga clic no botón, o resultado deste sorteo será publicado, xunto cos datos introducidos neste formulario e non se pode modificar, comprobe o contido con atención
80
+ confirm: Ao premer no seguinte botón, a plataforma rexistrará a data e hora (cunha precisión de segundos) e xunto coa tirada de dados, esta información empregarase para xerar unha escolla ao chou. Esta acción será irreversíbel, unha vez premido o botón publicarase o resultado deste sorteo xunto cos datos inseridos neste formulario e que non é posíbel modificar, por favor verifica o contido con coidado
80
81
  create: Crear
81
82
  title: Nova xeración
82
83
  show:
@@ -1 +1,2 @@
1
+ ---
1
2
  hr:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  hu:
2
3
  activemodel:
3
4
  attributes:
@@ -73,7 +74,7 @@ hu:
73
74
  index:
74
75
  title: Sorsolások
75
76
  new:
76
- confirm: A gomb megnyomását követően a Decidim rögzíti a dátumot és az időpontot (másodperc pontossággal), amiket a dobókocka feldobásának eredményével együtt felhasznál a véletlen kiválasztáshoz. A művelet visszavonhatatlan lesz miután rákattintottál a gombra és megjelent az eredmény. Kérlek, többször is ellenőrizd az itt szereplő adatokat, mert többször már nem tudod módosítani őket
77
+ confirm: A következő gomb megnyomásával a platform rögzíti a dátumot és az időt (másodperces pontossággal), és a kockadobással együtt ezt az információt véletlenszerű kiválasztáshoz használja fel. Az akció visszafordíthatatlan, a gombra kattintva a sorsolás eredménye ezen űrlapon megadott adatokkal együtt kerül közzétételre és nem módosítható, kérjük figyelmesen ellenőrizze a tartalmat
77
78
  create: Létrehozás
78
79
  title: Új sorsolás
79
80
  show:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  id:
2
3
  activemodel:
3
4
  attributes:
@@ -71,7 +72,6 @@ id:
71
72
  index:
72
73
  title: Sortasi
73
74
  new:
74
- confirm: Dengan menekan tombol berikutnya, Decidim akan merekam tanggal dan waktu (dengan ketepatan detik) dan bersama dengan gulungan dadu, informasi ini akan digunakan untuk menghasilkan pilihan acak. Tindakan ini tidak akan dapat dikembalikan, setelah tombol diklik, hasil undian ini akan dipublikasikan, bersama dengan data yang dimasukkan dalam formulir ini dan tidak dapat dimodifikasi, silakan periksa konten dengan cermat
75
75
  create: Membuat
76
76
  title: Pemilahan baru
77
77
  show:
@@ -1,4 +1,5 @@
1
- is-IS:
1
+ ---
2
+ is:
2
3
  activemodel:
3
4
  attributes:
4
5
  sortition:
@@ -63,7 +64,6 @@ is-IS:
63
64
  index:
64
65
  title: Flokkanir
65
66
  new:
66
- confirm: Með því að ýta á næstu hnappinn mun Decidim skrá dagsetningu og tíma (með nákvæmni sekúndna) og ásamt dice rúlla, verða þessar upplýsingar notaðar til að búa til handahófi val. Aðgerðin verður óafturkræf, þegar hnappurinn er smelltur verður niðurstaðan af þessari teikningu birt, ásamt þeim gögnum sem slegnar eru inn á þessu eyðublaði og ekki hægt að breyta, vinsamlegast athugaðu efnið vandlega
67
67
  create: Búa til
68
68
  title: Ný flokkun
69
69
  show:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  it:
2
3
  activemodel:
3
4
  attributes:
@@ -76,7 +77,6 @@ it:
76
77
  index:
77
78
  title: Sorteggi
78
79
  new:
79
- confirm: Premendo il pulsante successivo, Decidim registrerà la data e l'ora (con precisione dei secondi) e insieme al lancio dei dadi, queste informazioni verranno utilizzate per generare una selezione casuale. L'azione sarà irreversibile, una volta cliccato il pulsante verrà pubblicato il risultato di questa estrazione, insieme ai dati inseriti in questo modulo e non possono essere modificati, si prega di controllare attentamente il contenuto
80
80
  create: Creare
81
81
  title: Nuova sortizione
82
82
  show:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ja:
2
3
  activemodel:
3
4
  attributes:
@@ -74,7 +75,7 @@ ja:
74
75
  index:
75
76
  title: 並べ替え
76
77
  new:
77
- confirm: 次のボタンを押すと、日付と時刻(秒の精度で)が記録され、サイコロロールと一緒に記録されます。 この情報はランダムな選択を生成するために使用されます アクションは元に戻せません。ボタンをクリックすると、この描画の結果が公開されます。 このフォームに入力されたデータと一緒に変更することはできません。コンテンツを注意深く確認してください。
78
+ confirm: 次のボタンを押すと、プラットフォームは日付と時刻(秒単位の精度) を記録し、サイコロのような乱数と日時の情報を元にランダムな選択を行います。この抽選は、一度ボタンをクリックすると入力されたデータとともに結果が公開され、変更できません。入力内容を注意深く確認してください。
78
79
  create: 作成
79
80
  title: 新しいソート順
80
81
  show:
@@ -1 +1,2 @@
1
+ ---
1
2
  ko:
@@ -1 +1,2 @@
1
+ ---
1
2
  lb:
@@ -1 +1,2 @@
1
+ ---
1
2
  lt:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  lv:
2
3
  activemodel:
3
4
  attributes:
@@ -75,7 +76,6 @@ lv:
75
76
  index:
76
77
  title: Izlozes
77
78
  new:
78
- confirm: Nospiežot nākamo pogu, Decidim fiksēs datumu un laiku (ar sekundes precizitāti) un kopā ar kauliņa metienu šo informāciju izmantos, lai ģenerētu nejaušu izvēli. Darbība kļūs neatgriezeniska brīdī, kad tiks noklikšķināts uz pogas. Izlozes rezultāts tiks publicēts kopā ar šajā veidlapā ievadītajiem datiem, un to nevar mainīt. Lūdzu, rūpīgi pārbaudiet visu saturu.
79
79
  create: Izveidot
80
80
  title: Jauna izloze
81
81
  show:
@@ -1 +1,2 @@
1
+ ---
1
2
  mt:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  nl:
2
3
  activemodel:
3
4
  attributes:
@@ -76,7 +77,6 @@ nl:
76
77
  index:
77
78
  title: Lotingen
78
79
  new:
79
- confirm: Door op de volgende knop te drukken, legt Decidim de datum en tijd vast (met een nauwkeurigheid van seconden) en samen met de dobbelsteenworp wordt deze informatie gebruikt om een ​​willekeurige selectie te genereren. De actie is onomkeerbaar, zodra op de knop is geklikt, wordt het resultaat van deze trekking gepubliceerd, samen met de gegevens die in dit formulier zijn ingevoerd en niet kunnen worden gewijzigd. Bekijk de inhoud zorgvuldig
80
80
  create: Aanmaken
81
81
  title: Nieuwe loting
82
82
  show:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  "no":
2
3
  activemodel:
3
4
  attributes:
@@ -76,7 +77,6 @@
76
77
  index:
77
78
  title: Sorteringer
78
79
  new:
79
- confirm: Ved å trykke på neste knapp vil Decidim registrere dato og tid (med presisjon på sekunder) og sammen med terningkastet vil denne informasjonen bli brukt til å generere et tilfeldig valg. Denne handlingen vil ikke kunne gjøres om, når knappen er klikket blir resultatet av denne trekningen publisert, sammen med dataene som er lagt inn i dette skjemaet og ikke kan endres, vennligst sjekk innholdet nøye
80
80
  create: Opprett
81
81
  title: Ny sortering
82
82
  show:
@@ -1 +1,2 @@
1
+ ---
1
2
  om:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  pl:
2
3
  activemodel:
3
4
  attributes:
@@ -78,7 +79,6 @@ pl:
78
79
  index:
79
80
  title: Wybór losowy
80
81
  new:
81
- confirm: Po naciśnięciu przycisku 'Ok' Decidim zapisze datę i godzinę (z dokładnością do sekund) i wraz z rzutem kości informacje te zostaną wykorzystane do wygenerowania losowego wyboru. Działanie to jest nieodwracalne, po kliknięciu przycisku wynik tego losowania zostanie opublikowany wraz z danymi wprowadzonymi w tym formularzu i nie będzie można go zmienić. Upewnij się, że dane z formularza są poprawne
82
82
  create: Utwórz
83
83
  title: Nowy wybór losowy
84
84
  show:
@@ -1,4 +1,5 @@
1
- pt-BR:
1
+ ---
2
+ pt:
2
3
  activemodel:
3
4
  attributes:
4
5
  sortition:
@@ -74,7 +75,6 @@ pt-BR:
74
75
  index:
75
76
  title: Sorteios
76
77
  new:
77
- confirm: Ao pressionar o botão seguinte, o Decidim registrará a data e a hora (com precisão de segundos) e, junto com o lançamento de dados, essa informação será usada para gerar uma seleção aleatória. A ação será irreversível, uma vez que o botão é clicado o resultado deste sorteio será publicado, juntamente com os dados inseridos neste formulário e não podem ser modificados, por favor, verifique o conteúdo cuidadosamente
78
78
  create: Criar
79
79
  title: Nova classificação
80
80
  show:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  pt:
2
3
  activemodel:
3
4
  attributes:
@@ -76,7 +77,6 @@ pt:
76
77
  index:
77
78
  title: Sorteios
78
79
  new:
79
- confirm: Ao pressionar o botão seguinte, o Decidim registará a data e a hora (com precisão de segundos) e, junto com o lançamento de dados, esta informação será usada para gerar uma seleção aleatória. A ação será irreversível, assim que o botão é clicado, o resultado deste sorteio será publicado, juntamente com os dados inseridos neste formulário e não podem ser modificados, por favor verifique o conteúdo cuidadosamente
80
80
  create: Criar
81
81
  title: Novo sorteio
82
82
  show:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ro:
2
3
  activemodel:
3
4
  attributes:
@@ -78,7 +79,6 @@ ro:
78
79
  index:
79
80
  title: Trageri la sorți
80
81
  new:
81
- confirm: Prin apăsarea butonului următor Decidim va înregistra data şi ora (cu precizie de secunde) şi împreună cu aruncarea zarului, această informaţie va fi folosită pentru a genera o selecţie aleatorie. Acțiunea va fi ireversibilă, odată ce butonul este apăsat, rezultatul acestei trageri la sorți va fi publicat împreună cu datele introduse în acest formular și nu pot fi modificate. Te rugăm să verifici cu atenție conținutul
82
82
  create: Creează
83
83
  title: Tragere la sorți nouă
84
84
  show:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ru:
2
3
  activemodel:
3
4
  attributes:
@@ -77,7 +78,6 @@ ru:
77
78
  index:
78
79
  title: Жеребьевки
79
80
  new:
80
- confirm: После нажатия следующей кнопки, Десидим запишет дату и время (с точностью до секунд) и вместе с результатом броска игрального кубика, эти сведения будут использованы для случайного выбора. Это действие будет необратимым, после нажатия кнопки исход бросания жребия будет обнародован вместе с данными, введенными в этой форме, и их невозможно будет изменить. Пожалуйста, тщательно проверьте содержимое
81
81
  create: Создать
82
82
  title: Добавить жеребьевку
83
83
  show:
@@ -1 +1,2 @@
1
+ ---
1
2
  si:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sk:
2
3
  activemodel:
3
4
  attributes:
@@ -77,7 +78,6 @@ sk:
77
78
  index:
78
79
  title: Voľby losovaním
79
80
  new:
80
- confirm: Stlačením ďalšieho tlačidla Decidim zaznamená dátum a čas (s presnosťou na sekundy) a spoločne s hodom kockami budú tieto informácie použité pre generovanie náhodného výberu. Akcia bude nevratná, po kliknutí na tlačidlo sa výsledky tejto kresby uverejní s údajmi uvedenými v tomto formulári a nemožno ich zmeniť, skontrolujte prosím pozorne obsah
81
81
  create: Vytvoriť
82
82
  title: Nové rozvrhnutie
83
83
  show:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sl:
2
3
  activemodel:
3
4
  attributes:
@@ -1 +1,2 @@
1
+ ---
1
2
  so:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sr:
2
3
  decidim:
3
4
  sortitions:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sv:
2
3
  activemodel:
3
4
  attributes:
@@ -76,7 +77,6 @@ sv:
76
77
  index:
77
78
  title: Tilldelningar
78
79
  new:
79
- confirm: När du trycker på nästa knapp kommer Decidim att registrera datum och tid (med precision i sekunder) och tillsammans med tärningskastet genereras ett slumpmässigt urval. Åtgärden kan inte ångras eller göras om. När knappen har klickats kommer resultatet av lottningen att publiceras, tillsammans med de uppgifter som anges i formuläret, och kan inte längre ändras. Kontrollera innehållet noggrant
80
80
  create: Skapa
81
81
  title: Ny tilldelning
82
82
  show:
@@ -1 +1,2 @@
1
+ ---
1
2
  sw:
@@ -1 +1,2 @@
1
+ ---
1
2
  ti:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  tr:
2
3
  activemodel:
3
4
  attributes:
@@ -74,7 +75,6 @@ tr:
74
75
  index:
75
76
  title: Sıralama
76
77
  new:
77
- confirm: Bir sonraki düğmeye basıldığında Decidim, tarih ve saati (saniyenin kesinliği ile) kaydedecek ve zar rulosuyla birlikte, bu bilgi rastgele bir seçim oluşturmak için kullanılacak. İşlem geri alınamaz, düğme tıklandıktan sonra bu çekilişin sonucu yayınlanacak, bu forma girilen verilerle birlikte değiştirilemez, lütfen içeriği dikkatlice kontrol edin
78
78
  create: Oluştur
79
79
  title: Yeni sıralama
80
80
  show:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  uk:
2
3
  activemodel:
3
4
  attributes:
@@ -77,7 +78,6 @@ uk:
77
78
  index:
78
79
  title: Жеребкування
79
80
  new:
80
- confirm: Після натиснення наступної кнопки, Десідім запише дату та час (з точністю до секунд) і разом з вислідом кидання гральної кістки, ці відомості будуть використані для випадкового вибору. Ця дія буде незворотною, після натиснення кнопки вислід кидання жеребу буде оприлюднено разом із даними, введеними в цій формі, і їх неможливо буде змінити. Будь ласка, ретельно перевірте вміст
81
81
  create: Створити
82
82
  title: Додати жеребкування
83
83
  show:
@@ -1 +1,2 @@
1
+ ---
1
2
  val:
@@ -1 +1,2 @@
1
+ ---
1
2
  vi:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  zh-CN:
2
3
  activemodel:
3
4
  attributes:
@@ -72,7 +73,6 @@ zh-CN:
72
73
  index:
73
74
  title: 联谊会
74
75
  new:
75
- confirm: 按下下一个按钮后,Decidim将录制日期和时间(精确度为秒),并同时录制染色卷, 此信息将用于生成随机选择。 此动作将不可逆,一旦点击此按钮,绘图的结果将被发布, 请仔细检查内容,并在此表单中输入的数据,不能修改
76
76
  create: 创建
77
77
  title: 新的排序方式
78
78
  show:
@@ -1 +1,2 @@
1
+ ---
1
2
  zh-TW:
@@ -3,7 +3,7 @@
3
3
  module Decidim
4
4
  module Sortitions
5
5
  def self.version
6
- "0.26.2"
6
+ "0.27.0.rc1"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-sortitions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.2
4
+ version: 0.27.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Salvador Perez Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-14 00:00:00.000000000 Z
11
+ date: 2022-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-admin
@@ -16,70 +16,70 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.26.2
19
+ version: 0.27.0.rc1
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.26.2
26
+ version: 0.27.0.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: decidim-comments
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.26.2
33
+ version: 0.27.0.rc1
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.26.2
40
+ version: 0.27.0.rc1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: decidim-core
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.26.2
47
+ version: 0.27.0.rc1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.26.2
54
+ version: 0.27.0.rc1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: decidim-proposals
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.26.2
61
+ version: 0.27.0.rc1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 0.26.2
68
+ version: 0.27.0.rc1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: decidim-dev
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 0.26.2
75
+ version: 0.27.0.rc1
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.26.2
82
+ version: 0.27.0.rc1
83
83
  description: This module makes possible to select amont a set of proposal by sortition
84
84
  email:
85
85
  - jsperezg@gmail.com
@@ -120,7 +120,6 @@ files:
120
120
  - app/queries/decidim/sortitions/admin/participatory_space_proposals.rb
121
121
  - app/queries/decidim/sortitions/filtered_sortitions.rb
122
122
  - app/services/decidim/sortitions/admin/draw.rb
123
- - app/services/decidim/sortitions/sortition_search.rb
124
123
  - app/views/decidim/sortitions/admin/sortitions/_form.html.erb
125
124
  - app/views/decidim/sortitions/admin/sortitions/confirm_destroy.html.erb
126
125
  - app/views/decidim/sortitions/admin/sortitions/edit.html.erb
@@ -254,14 +253,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
254
253
  requirements:
255
254
  - - ">="
256
255
  - !ruby/object:Gem::Version
257
- version: '2.7'
256
+ version: '3.0'
258
257
  required_rubygems_version: !ruby/object:Gem::Requirement
259
258
  requirements:
260
- - - ">="
259
+ - - ">"
261
260
  - !ruby/object:Gem::Version
262
- version: '0'
261
+ version: 1.3.1
263
262
  requirements: []
264
- rubygems_version: 3.1.6
263
+ rubygems_version: 3.2.22
265
264
  signing_key:
266
265
  specification_version: 4
267
266
  summary: Decidim sortitions module
@@ -1,30 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Decidim
4
- module Sortitions
5
- # A service to encapsualte all the logic when searching and filtering
6
- # sortitions in a participatory process.
7
- class SortitionSearch < ResourceSearch
8
- text_search_fields :title, :additional_info, :witnesses
9
- # Public: Initializes the service.
10
- # component - A Decidim::Component to get the proposals from.
11
- # page - The page number to paginate the results.
12
- # per_page - The number of proposals to return per page.
13
- def initialize(options = {})
14
- super(Sortition.all, options)
15
- end
16
-
17
- # Handle the state filter
18
- def search_state
19
- case state
20
- when "active"
21
- query.active
22
- when "cancelled"
23
- query.cancelled
24
- else # Assume 'all'
25
- query
26
- end
27
- end
28
- end
29
- end
30
- end