decidim-consultations 0.25.0.rc4 → 0.26.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5aa524deefdaef9be5dc1c2f64beadc017ad0ef763b0567437b82e93f38573cd
4
- data.tar.gz: 302a087db8e132962bb79cd124977b75a91b64848794ff743590fe27dfe2fac0
3
+ metadata.gz: 222606360dacc46d61332e54b86163818942b6d2951b8939686506306abd5813
4
+ data.tar.gz: d2240f2a437e76d0616872ae908273991428603ffe251c6a98c13e8a7821f93e
5
5
  SHA512:
6
- metadata.gz: 6cbbd8a681bdfa90b2896138e8ceba1b9c5d8bee88daf63ef88e8473cd7eceb26c8da32f250143c321d0121bda16d6fba7d19bedc86b9fe2b56080064d9f159b
7
- data.tar.gz: c38c6f123b0e88754238caf18c265549f2d153618aff871c5ab67e136dd4789cb0cfb87bdf418c4e86654953b9833c276ab05c596a87a5e95404189631c00ef1
6
+ metadata.gz: 43b18cc9ddd8a30a01fa9e532d0408c0c0d970e83d2efd6acaa2fca9f95453bea28280b8b340f9afcb9d75a47a254b6ff6c1f488251d81001ec827e0aaeedbc1
7
+ data.tar.gz: 01ce50dc1050ff14842a9268ebbf9f1f69ae24b03d3765ceb516058fe25141104f2a399e8f0c751ac0ac6026e726badc6630405b7eb28b5b0b7e17ce09ebfe43
@@ -35,7 +35,7 @@ module Decidim
35
35
  # makes the layout look good.
36
36
  def description
37
37
  text = super
38
- text.gsub!(/^<p>/, "<p>#{render :badge}")
38
+ text.sub!(/<p>/, "<p>#{render :badge}")
39
39
  html_truncate(text, length: 100)
40
40
  end
41
41
 
@@ -18,12 +18,12 @@ module Decidim
18
18
  # Handle the search_text filter
19
19
  def search_search_text
20
20
  query
21
- .where("title->>'#{current_locale}' ILIKE ?", "%#{search_text}%")
21
+ .where(Arel.sql("title->>'#{current_locale}' ILIKE ?").to_s, "%#{search_text}%")
22
22
  .or(
23
- query.where("description->>'#{current_locale}' ILIKE ?", "%#{search_text}%")
23
+ query.where(Arel.sql("description->>'#{current_locale}' ILIKE ?").to_s, "%#{search_text}%")
24
24
  )
25
25
  .or(
26
- query.where("subtitle->>'#{current_locale}' ILIKE ?", "%#{search_text}%")
26
+ query.where(Arel.sql("subtitle->>'#{current_locale}' ILIKE ?").to_s, "%#{search_text}%")
27
27
  )
28
28
  end
29
29
 
@@ -1,6 +1,6 @@
1
1
  <div class="row section" id="consultation-details">
2
2
  <div class="columns medium-6 large-5 large-push-1">
3
- <p class="lead"><%= decidim_sanitize translated_attribute(consultation.description) %></p>
3
+ <p class="lead"><%= decidim_sanitize_editor translated_attribute(consultation.description) %></p>
4
4
  </div>
5
5
  <div class="columns medium-6 large-5 large-pull-1">
6
6
  <% if consultation.introductory_video_url.blank? %>
@@ -1,5 +1,5 @@
1
1
  <div class="filters-controls hide-for-mediumlarge">
2
- <button data-open="filter-box" class="filters-controls__trigger">
2
+ <button data-open="filter-box" class="filters-controls__trigger" aria-controls="filter-box" aria-haspopup="dialog">
3
3
  <%= t "consultations.filters_small_view.filter", scope: "decidim" %>
4
4
  <%= icon "caret-bottom",
5
5
  class: "icon--small float-right",
@@ -8,9 +8,9 @@
8
8
  </button>
9
9
  </div>
10
10
 
11
- <div class="reveal" id="filter-box" data-reveal>
11
+ <div class="reveal" id="filter-box" data-reveal role="dialog" aria-modal="true" aria-labelledby="filter-box-label">
12
12
  <div class="reveal__header">
13
- <h3 class="reveal__title"><%= t "consultations.filters_small_view.filter_by", scope: "decidim" %>:</h3>
13
+ <h3 id="filter-box-label" class="reveal__title"><%= t "consultations.filters_small_view.filter_by", scope: "decidim" %>:</h3>
14
14
  <button class="close-button" data-close
15
15
  aria-label="<%= t("consultations.filters_small_view.close_modal", scope: "decidim") %>"
16
16
  type="button">
@@ -8,7 +8,7 @@
8
8
  <li><%= t(".minimum_votes_per_user.description", votes: question.min_votes) %></li>
9
9
  </ul>
10
10
  <% if question.instructions %>
11
- <%= decidim_sanitize translated_attribute question.instructions %>
11
+ <%= decidim_sanitize_editor translated_attribute question.instructions %>
12
12
  <% end %>
13
13
  </div>
14
14
  <div class="columns medium-4 large-3">
@@ -1,2 +1,2 @@
1
1
  <% content_for(:title, translated_attribute(model.title)) %>
2
- <%= decidim_sanitize html_truncate(translated_attribute(model.question_context), length: 100, separator: "...") %>
2
+ <%= decidim_sanitize_editor html_truncate(translated_attribute(model.question_context), length: 100, separator: "...") %>
@@ -2,7 +2,7 @@
2
2
  <div class="row">
3
3
  <div class="columns medium-7 mediumlarge-8">
4
4
  <div class="section">
5
- <%= decidim_sanitize translated_attribute current_question.question_context %>
5
+ <%= decidim_sanitize_editor translated_attribute current_question.question_context %>
6
6
 
7
7
  <div class="show-more">
8
8
  <button class="button hollow small"><%= t "read_more", scope: "decidim.questions.show" %></button>
@@ -13,12 +13,12 @@
13
13
 
14
14
  <div class="section">
15
15
  <h2 class=section-heading><%= t "question.what_is_decided", scope: "activemodel.attributes" %></h2>
16
- <p><%= decidim_sanitize translated_attribute(current_question.what_is_decided), strip_tags: true %></p>
16
+ <p><%= decidim_sanitize_editor translated_attribute(current_question.what_is_decided), strip_tags: true %></p>
17
17
  </div>
18
18
 
19
19
  <div class="section">
20
20
  <h2 class=section-heading><%= t "question.question_context", scope: "activemodel.attributes" %></h2>
21
- <p><%= decidim_sanitize translated_attribute(current_question.question_context), strip_tags: true %></p>
21
+ <p><%= decidim_sanitize_editor translated_attribute(current_question.question_context), strip_tags: true %></p>
22
22
  </div>
23
23
  </div>
24
24
  </div>
@@ -359,6 +359,7 @@ ca:
359
359
  resources:
360
360
  consultations:
361
361
  actions:
362
+ comment: Comentar
362
363
  vote: Vota
363
364
  statistics:
364
365
  consultations_count: Consultes
@@ -379,6 +379,7 @@ cs:
379
379
  resources:
380
380
  consultations:
381
381
  actions:
382
+ comment: Komentář
382
383
  vote: Hlasovat
383
384
  statistics:
384
385
  consultations_count: Konzultace
@@ -359,6 +359,7 @@ es-MX:
359
359
  resources:
360
360
  consultations:
361
361
  actions:
362
+ comment: Comentar
362
363
  vote: Votar
363
364
  statistics:
364
365
  consultations_count: Consultas
@@ -359,6 +359,7 @@ es-PY:
359
359
  resources:
360
360
  consultations:
361
361
  actions:
362
+ comment: Comentar
362
363
  vote: Votar
363
364
  statistics:
364
365
  consultations_count: Consultas
@@ -359,6 +359,7 @@ es:
359
359
  resources:
360
360
  consultations:
361
361
  actions:
362
+ comment: Comentar
362
363
  vote: Votar
363
364
  statistics:
364
365
  consultations_count: Consultas
@@ -19,6 +19,9 @@ eu:
19
19
  hashtag: hashtag
20
20
  hero_image: Hasiera irudia
21
21
  i_frame_url: Kanpoko boto-sistemaren URLa
22
+ instructions: Jarraibide osagarriak botoa emateko
23
+ max_votes: Gehieneko boto kopurua
24
+ min_votes: Gutxieneko boto kopurua
22
25
  origin_scope: esparrua
23
26
  origin_title: Origin
24
27
  origin_url: Jatorria URLa
@@ -31,11 +34,24 @@ eu:
31
34
  subtitle: azpititulua
32
35
  vote: Kanpoko boto sistema
33
36
  what_is_decided: Zer erabaki
37
+ response:
38
+ decidim_consultations_response_group_id: Taldea
34
39
  errors:
40
+ models:
41
+ question:
42
+ attributes:
43
+ max_votes:
44
+ lower_than_min: Gehieneko boto kopurua gutxienekoa baino handiagoa edo berdina izan behar da.
35
45
  vote:
36
46
  decidim_consultations_response_id:
37
47
  not_found: Erantzuna ez da aurkitu.
38
48
  activerecord:
49
+ errors:
50
+ models:
51
+ decidim/consultations/vote:
52
+ attributes:
53
+ question:
54
+ invalid_num_votes: Boto kopurua ez da baliozkoa
39
55
  models:
40
56
  decidim/consultation:
41
57
  one: Consulta
@@ -52,10 +68,13 @@ eu:
52
68
  decidim:
53
69
  admin:
54
70
  actions:
71
+ back_to_responses: Itzuli erantzunetara
55
72
  new_consultation: Kontsulta berria
56
73
  new_question: Galdera berria
57
74
  new_response: Erantzun berria
75
+ new_response_group: Talde berri bat
58
76
  publish_results: Argitaratu emaitzak
77
+ response_groups: Kudeatu erantzun-multzoak
59
78
  unpublish_results: Argitaratu emaitzak
60
79
  consultation_publications:
61
80
  create:
@@ -75,6 +94,7 @@ eu:
75
94
  create:
76
95
  error: Errore bat gertatu da kontsulta berri bat sortzean.
77
96
  success: Kontsulta sortu da.
97
+ deprecation_warning: Kontsulten modulua laster zaharkituta egongo da. Lantzen ari gara kriptografikoki segurua izango den hurrengo bertsioa, Bozketak izenekoa.
78
98
  edit:
79
99
  update: eguneratzearen
80
100
  form:
@@ -86,6 +106,10 @@ eu:
86
106
  new:
87
107
  create: Sortu
88
108
  title: Kontsulta berria
109
+ results:
110
+ not_visible: Emaitzak eskuragai egongo dira inkesta ixten denean
111
+ participants: "%{count} parte-hartzaile"
112
+ total_votes: 'Guztira: %{count} boto'
89
113
  update:
90
114
  error: Errore bat gertatu da kontsulta hau eguneratzean.
91
115
  success: Kontsultak eguneratu egin du.
@@ -94,10 +118,12 @@ eu:
94
118
  consultations_submenu:
95
119
  info: informazioa
96
120
  questions: Galderak
121
+ results: Emaitzak
97
122
  questions_submenu:
98
123
  attachments: eranskinak
99
124
  categories: Kategoriak
100
125
  components: Osagaiak
126
+ configuration: Konfigurazioa
101
127
  consultation: Consulta
102
128
  info: informazioa
103
129
  responses: Erantzunak
@@ -121,10 +147,16 @@ eu:
121
147
  response:
122
148
  fields:
123
149
  created_at: Sortutako at
150
+ response_group: Taldea
124
151
  title: Izenburua
125
152
  name:
126
153
  one: Erantzun
127
154
  other: Erantzunak
155
+ question_configuration:
156
+ disable_external_voting: Mesedez, desaktibatu kanpoko bozketa konfigurazio aurreratuetarako
157
+ form:
158
+ help: Erantzun anitzeko aukerak dituzten galderak konfiguratzen ditu, parte-hartzaile batek aukera ditzakeen erantzun kopurua handituz. Aurrez zehaztutako gehieneko balioa 1 da, eta horrek esan nahi du erantzun bakarra aukera daitekeela.
159
+ title: Konfigurazio aurreratua
128
160
  question_publications:
129
161
  create:
130
162
  error: Errore bat gertatu da galdera hau argitaratzean.
@@ -151,6 +183,24 @@ eu:
151
183
  update:
152
184
  error: Errore bat gertatu da galdera hau eguneratzean.
153
185
  success: Galdera ondo eguneratu da.
186
+ response_groups:
187
+ create:
188
+ error: Errore bat gertatu da erantzun-multzo berri bat sortzean.
189
+ success: Erantzun-multzoa zuzen sortu da.
190
+ destroy:
191
+ error: Arazo bat gertatu da erantzun-multzoa ezabatzean. Egiaztatu ez dagoela erantzunik horren menpe.
192
+ success: Erantzun-multzoa zuzen ezabatu da.
193
+ edit:
194
+ update: Eguneratu
195
+ form:
196
+ title: Informazio orokorra
197
+ help: Erabili multzoak aukera anitzeko galderak paketetan antolatzeko.
198
+ new:
199
+ create: Sortu
200
+ title: Erantzun-multzo berria
201
+ update:
202
+ error: Arazoa gertatu da erantzun hau eguneratzean.
203
+ success: Erantzuna zuzen eguneratu da.
154
204
  responses:
155
205
  create:
156
206
  error: Errore bat gertatu da erantzun berri bat sortzean.
@@ -171,6 +221,7 @@ eu:
171
221
  titles:
172
222
  consultations: kontsultak
173
223
  questions: Galderak
224
+ response_groups: Erantzun-multzoak
174
225
  responses: Erantzunak
175
226
  consultations:
176
227
  admin:
@@ -187,6 +238,8 @@ eu:
187
238
  label: 'Ordenatu kontsultak honela:'
188
239
  random: Random
189
240
  recent: Berrienak
241
+ show:
242
+ dates: Datak
190
243
  content_blocks:
191
244
  highlighted_consultations:
192
245
  name: Nabarmendutako kontsultak
@@ -228,9 +281,28 @@ eu:
228
281
  votes_out_of:
229
282
  one: bozkatu
230
283
  other: botoetatik kanpo
284
+ question_multiple_votes:
285
+ results_rules:
286
+ minimum_votes_per_user:
287
+ description: Parte-hartzaileek gutxienez %{votes} banatu ahal dituzte hainbat aukeraren artean.
288
+ title: Galdera honetan, aukera anitzeko erantzunak egon daitezke
289
+ total_participants: Kontsultan, guztira %{count} pertsonak hartu dute parte.
290
+ vote_limit:
291
+ description: Parte-hartzaileek gehienez %{limit} aukera bozkatu ahal dituzte.
292
+ voting_rules:
293
+ minimum_votes_per_user:
294
+ description: Gutxienez %{votes} boto banatu behar dituzu proposamen desberdinen artean.
295
+ title: 'Bozketa indarrean dagoen araudiaren araberakoa da:'
296
+ vote_limit:
297
+ description: Gehienez, %{limit} aukera bozkatu ahal duzu.
298
+ left: Gainontzekoak
299
+ votes: Botoak
231
300
  question_votes:
232
301
  create:
233
302
  error: Arazoak izan dira galdera hautapenean
303
+ success: Kontsultaren amaiera arte alda dezakezu. Azken botoa baino ez da onartuko.
304
+ title_error: Boto-akatsa!
305
+ title_success: Botoa zuzen erregistratu da
234
306
  regular_questions:
235
307
  title: Kontsulta honi buruzko galderak
236
308
  show:
@@ -252,6 +324,8 @@ eu:
252
324
  menu:
253
325
  consultations: kontsultak
254
326
  questions:
327
+ next_button: Hurrengo galdera
328
+ previous_button: Aurreko galdera
255
329
  results:
256
330
  title: Emaitzak
257
331
  show:
@@ -267,15 +341,26 @@ eu:
267
341
  already_voted: Bozkatu
268
342
  already_voted_hover: Ezeztatu laguntza
269
343
  starting_from: '%{date}tik hasita'
344
+ verification_required: Egiaztatu zure kontua bozkatzeko
270
345
  vote: Bozkatu
271
346
  vote_modal:
347
+ close_modal: Itxi leihoa
272
348
  contextual_help: Aukeratu aukera bat.
273
349
  title: 'Kontsulta: galdera-laguntza'
274
350
  vote_modal_confirm:
275
351
  change: Aldaketa
352
+ close_modal: Itxi leihoa
276
353
  confirm: Berretsi
277
354
  contextual_help: Berretsi hautatutako aukera.
278
355
  title: 'Kontsulta: berretsi laguntza'
356
+ resources:
357
+ consultations:
358
+ actions:
359
+ comment: Iruzkina
360
+ vote: Eman botoa
361
+ statistics:
362
+ consultations_count: Kontsultak
363
+ votes_count: Botoak
279
364
  layouts:
280
365
  decidim:
281
366
  consultation_voting_data:
@@ -285,3 +370,4 @@ eu:
285
370
  unfold: Zabaldu
286
371
  question_header:
287
372
  back_to_consultation: Ikusi kontsulta guztiak
373
+ back_to_question: Itzuli galderara
@@ -359,6 +359,7 @@ fi-pl:
359
359
  resources:
360
360
  consultations:
361
361
  actions:
362
+ comment: Kommentoi
362
363
  vote: Äänestä
363
364
  statistics:
364
365
  consultations_count: Kuulemista
@@ -359,6 +359,7 @@ fi:
359
359
  resources:
360
360
  consultations:
361
361
  actions:
362
+ comment: Kommentoi
362
363
  vote: Äänestä
363
364
  statistics:
364
365
  consultations_count: Kuulemista
@@ -359,7 +359,11 @@ fr-CA:
359
359
  resources:
360
360
  consultations:
361
361
  actions:
362
+ comment: Commenter
362
363
  vote: Voter
364
+ statistics:
365
+ consultations_count: Consultations
366
+ votes_count: Votes
363
367
  layouts:
364
368
  decidim:
365
369
  consultation_voting_data:
@@ -359,7 +359,11 @@ fr:
359
359
  resources:
360
360
  consultations:
361
361
  actions:
362
+ comment: Commenter
362
363
  vote: Voter
364
+ statistics:
365
+ consultations_count: Consultations
366
+ votes_count: Votes
363
367
  layouts:
364
368
  decidim:
365
369
  consultation_voting_data:
@@ -1 +1,137 @@
1
1
  ga:
2
+ activemodel:
3
+ attributes:
4
+ consultation:
5
+ questions: Ceisteanna
6
+ slug: Píosa URL
7
+ subtitle: Fotheideal
8
+ title: Teideal
9
+ question:
10
+ hashtag: Haischlib
11
+ origin_scope: Scóip
12
+ origin_title: Bunús
13
+ question_context: Comhthéacs
14
+ slug: Píosa URL
15
+ subtitle: Fotheideal
16
+ response:
17
+ decidim_consultations_response_group_id: Grúpa
18
+ activerecord:
19
+ models:
20
+ decidim/consultations/question:
21
+ one: Ceist
22
+ two: Ceisteanna
23
+ few: Ceisteanna
24
+ many: Ceisteanna
25
+ other: Ceisteanna
26
+ decidim/consultations/vote:
27
+ one: Vóta
28
+ two: Vótaí
29
+ few: Vótaí
30
+ many: Vótaí
31
+ other: Vótaí
32
+ decidim:
33
+ admin:
34
+ consultations:
35
+ edit:
36
+ update: Nuashonraigh
37
+ new:
38
+ create: Cruthaigh
39
+ menu:
40
+ consultations_submenu:
41
+ questions: Ceisteanna
42
+ results: Torthaí
43
+ questions_submenu:
44
+ attachments: Ceangaltáin
45
+ categories: Catagóirí
46
+ models:
47
+ consultation:
48
+ fields:
49
+ title: Teideal
50
+ question:
51
+ fields:
52
+ title: Teideal
53
+ name:
54
+ one: Ceist
55
+ two: Ceisteanna
56
+ few: Ceisteanna
57
+ many: Ceisteanna
58
+ other: Ceisteanna
59
+ response:
60
+ fields:
61
+ response_group: Grúpa
62
+ title: Teideal
63
+ name:
64
+ one: Freagra
65
+ two: Freagraí
66
+ few: Freagraí
67
+ many: Freagraí
68
+ other: Freagraí
69
+ questions:
70
+ edit:
71
+ update: Nuashonraigh
72
+ new:
73
+ create: Cruthaigh
74
+ response_groups:
75
+ edit:
76
+ update: Nuashonraigh
77
+ new:
78
+ create: Cruthaigh
79
+ responses:
80
+ edit:
81
+ update: Nuashonraigh
82
+ new:
83
+ create: Cruthaigh
84
+ titles:
85
+ questions: Ceisteanna
86
+ results: Torthaí
87
+ consultations:
88
+ consultations:
89
+ orders:
90
+ random: Randamach
91
+ show:
92
+ dates: Dátaí
93
+ filters:
94
+ active: Gníomhach
95
+ all: Uile
96
+ finished: Críochnaithe
97
+ search: Cuardaigh
98
+ state: Stádas
99
+ upcoming: Le teacht
100
+ filters_small_view:
101
+ filter: Scag
102
+ unfold: Oscail
103
+ question_multiple_votes:
104
+ voting_rules:
105
+ vote_limit:
106
+ votes: Vótaí
107
+ show:
108
+ badge_name:
109
+ finished: Críochnaithe
110
+ open: Oscail
111
+ footer_button_text:
112
+ debate: Díospóireacht
113
+ view: Amharc
114
+ vote: Vótáil
115
+ questions:
116
+ results:
117
+ title: Torthaí
118
+ statistics:
119
+ comments_count_title: Tráchtanna
120
+ meetings_count_title: Cruinnithe
121
+ supports_count_title: Vótaí
122
+ vote_button:
123
+ vote: Vótáil
124
+ vote_modal_confirm:
125
+ change: Athrú
126
+ confirm: Deimhnigh
127
+ resources:
128
+ consultations:
129
+ actions:
130
+ comment: Tabhair Trácht
131
+ vote: Vótáil
132
+ statistics:
133
+ votes_count: Vótaí
134
+ layouts:
135
+ decidim:
136
+ question_components:
137
+ unfold: Oscail
@@ -359,6 +359,7 @@ it:
359
359
  resources:
360
360
  consultations:
361
361
  actions:
362
+ comment: Commenta
362
363
  vote: Vota
363
364
  statistics:
364
365
  consultations_count: Consultazioni
@@ -230,7 +230,7 @@ ja:
230
230
  consultations:
231
231
  orders:
232
232
  label: '議案の並び替え:'
233
- random: Random
233
+ random: ランダム
234
234
  recent: 直近のもの
235
235
  show:
236
236
  dates: 日付
@@ -266,7 +266,7 @@ ja:
266
266
  see_all_consultations: すべての議案を見る
267
267
  voting_ends_in:
268
268
  other: 投票は <strong>%{count} 日</strong>で終了します
269
- voting_ends_today: 投票は今日終了 <strong></strong>
269
+ voting_ends_today: <strong>本日</strong>投票終了
270
270
  question:
271
271
  take_part: 参加する
272
272
  view_results: 結果を表示
@@ -349,6 +349,7 @@ ja:
349
349
  resources:
350
350
  consultations:
351
351
  actions:
352
+ comment: コメント
352
353
  vote: 投票
353
354
  statistics:
354
355
  consultations_count: コンサルテーション