decidim-comments 0.26.4 → 0.27.0.rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/comments/comment_cell.rb +2 -2
  3. data/app/cells/decidim/comments/comments/comments_loading.erb +3 -0
  4. data/app/cells/decidim/comments/comments/show.erb +1 -0
  5. data/app/cells/decidim/comments/comments_cell.rb +7 -12
  6. data/app/cells/decidim/comments/edit_comment_modal_form_cell.rb +1 -1
  7. data/app/commands/decidim/comments/create_comment.rb +1 -1
  8. data/app/commands/decidim/comments/delete_comment.rb +1 -1
  9. data/app/commands/decidim/comments/update_comment.rb +8 -1
  10. data/app/commands/decidim/comments/vote_comment.rb +1 -1
  11. data/app/controllers/decidim/comments/comments_controller.rb +13 -9
  12. data/app/helpers/decidim/comments/comment_cells_helper.rb +1 -1
  13. data/app/models/decidim/comments/comment.rb +9 -10
  14. data/app/models/decidim/comments/comment_vote.rb +1 -1
  15. data/app/packs/src/decidim/comments/comments.component.js +32 -13
  16. data/app/packs/src/decidim/comments/comments.component.test.js +9 -5
  17. data/app/permissions/decidim/comments/permissions.rb +5 -7
  18. data/app/queries/decidim/comments/sorted_comments.rb +1 -3
  19. data/app/services/decidim/comments/new_comment_notification_creator.rb +1 -1
  20. data/app/views/decidim/comments/comments/index.js.erb +1 -0
  21. data/app/views/decidim/comments/comments/reload.js.erb +1 -0
  22. data/config/locales/am-ET.yml +1 -0
  23. data/config/locales/ar.yml +1 -0
  24. data/config/locales/bg.yml +1 -0
  25. data/config/locales/ca.yml +1 -0
  26. data/config/locales/cs.yml +1 -0
  27. data/config/locales/da.yml +1 -0
  28. data/config/locales/de.yml +1 -0
  29. data/config/locales/el.yml +1 -0
  30. data/config/locales/eo.yml +1 -0
  31. data/config/locales/es-MX.yml +1 -0
  32. data/config/locales/es-PY.yml +1 -0
  33. data/config/locales/es.yml +1 -0
  34. data/config/locales/et.yml +1 -0
  35. data/config/locales/eu.yml +1 -0
  36. data/config/locales/fi-plain.yml +1 -0
  37. data/config/locales/fi.yml +1 -0
  38. data/config/locales/fr-CA.yml +1 -0
  39. data/config/locales/fr.yml +1 -0
  40. data/config/locales/ga-IE.yml +1 -0
  41. data/config/locales/gl.yml +1 -0
  42. data/config/locales/hr.yml +1 -0
  43. data/config/locales/hu.yml +1 -0
  44. data/config/locales/id-ID.yml +1 -0
  45. data/config/locales/is-IS.yml +2 -1
  46. data/config/locales/it.yml +1 -0
  47. data/config/locales/ja.yml +1 -0
  48. data/config/locales/ko.yml +1 -0
  49. data/config/locales/lb.yml +1 -0
  50. data/config/locales/lt.yml +1 -175
  51. data/config/locales/lv.yml +1 -0
  52. data/config/locales/mt.yml +1 -0
  53. data/config/locales/nl.yml +1 -18
  54. data/config/locales/no.yml +1 -0
  55. data/config/locales/om-ET.yml +1 -0
  56. data/config/locales/pl.yml +1 -0
  57. data/config/locales/pt-BR.yml +2 -1
  58. data/config/locales/pt.yml +1 -0
  59. data/config/locales/ro-RO.yml +1 -2
  60. data/config/locales/ru.yml +1 -0
  61. data/config/locales/si-LK.yml +1 -0
  62. data/config/locales/sk.yml +1 -0
  63. data/config/locales/sl.yml +1 -0
  64. data/config/locales/so-SO.yml +1 -0
  65. data/config/locales/sr-CS.yml +1 -0
  66. data/config/locales/sv.yml +1 -0
  67. data/config/locales/sw-KE.yml +1 -0
  68. data/config/locales/ti-ER.yml +1 -0
  69. data/config/locales/tr-TR.yml +1 -0
  70. data/config/locales/uk.yml +1 -0
  71. data/config/locales/val-ES.yml +1 -0
  72. data/config/locales/vi.yml +1 -0
  73. data/config/locales/zh-CN.yml +1 -0
  74. data/config/locales/zh-TW.yml +1 -0
  75. data/db/migrate/20181016142511_make_authors_polymorphic_for_comments.rb +1 -0
  76. data/db/migrate/20181019092928_make_author_polymorphic_for_comment_votes.rb +1 -0
  77. data/lib/decidim/comments/comment_serializer.rb +1 -1
  78. data/lib/decidim/comments/comment_vote_serializer.rb +1 -1
  79. data/lib/decidim/comments/markdown.rb +0 -12
  80. data/lib/decidim/comments/test/shared_examples/translatable_comment.rb +1 -1
  81. data/lib/decidim/comments/version.rb +1 -1
  82. metadata +13 -15
  83. data/config/locales/gn-PY.yml +0 -1
  84. data/config/locales/lo-LA.yml +0 -1
  85. data/config/locales/oc-FR.yml +0 -1
@@ -1,176 +1,2 @@
1
+ ---
1
2
  lt:
2
- activemodel:
3
- models:
4
- decidim/comments/comment_by_followed_user_event: Komentarai
5
- decidim/comments/comment_created_event: Komentarai
6
- decidim/comments/comment_upvoted_event: Komentaras palaikytas
7
- decidim/comments/reply_created_event: Atsakymas į komentarą
8
- decidim/comments/user_group_mentioned_event: Paminėjimas
9
- decidim/comments/user_mentioned_event: Paminėti
10
- activerecord:
11
- models:
12
- decidim/comments/comment:
13
- one: Komentaras
14
- few: Komentarai
15
- many: Komentarai
16
- other: Komentarai
17
- decidim/comments/comment_vote:
18
- one: Balsuoti
19
- few: Balsai
20
- many: Balsai
21
- other: Balsai
22
- decidim:
23
- comments:
24
- admin:
25
- shared:
26
- availability_fields:
27
- enabled: Komentarai aktyvuoti
28
- end_time: Komentarai aktyvuoti iki
29
- start_time: Komentarai aktyvuoti nuo
30
- comments:
31
- create:
32
- error: Kuriant šį komentarą iškilo problema.
33
- delete:
34
- error: Komentaro ištrinti nepavyko.
35
- update:
36
- error: Atnaujinant šį komentarą iškilo problema.
37
- comments_count: Komentarų skaičius
38
- comments_title: Komentarai
39
- last_activity:
40
- new_comment_at_html: "<span>Naujas komentaras %{link}</span>"
41
- view: Rodyti
42
- votes:
43
- create:
44
- error: Balsuojant už komentarą iškilo problema.
45
- components:
46
- add_comment_form:
47
- account_message: <a href="%{sign_in_url}">Prisijunkite</a>arba<a href="%{sign_up_url}">registruokitės</a>norėdami komentuoti.
48
- form:
49
- body:
50
- label: Komentaras
51
- placeholder: Ką manote apie tai?
52
- form_error: Tekstas būtinais ir negali viršyti %{length} simbolių.
53
- submit: Publikuoti
54
- user_group_id:
55
- label: Komentuoti kaip
56
- opinion:
57
- label: Jūsų nuomonė šiuo klausimu
58
- negative: Negatyvi
59
- negative_selected: Jūsų nuomonė apie šią temą yra negatyvi
60
- neutral: Neutrali
61
- neutral_selected: Jūsų nuomonė apie šią temą yra neutrali
62
- positive: Pozityvi
63
- positive_selected: Jūsų nuomonė apie šią temą yra pozityvi
64
- remaining_characters: "Liko %{count} simbolių"
65
- remaining_characters_1: "Liko %{count} simbolių"
66
- title: Pridėti komentarą
67
- comment:
68
- alignment:
69
- against: Prieš
70
- in_favor: Už
71
- confirm_destroy: Ar tikrai norite ištrinti šį komentarą?
72
- delete: Ištrinti
73
- deleted_at: Komentaras ištrintas %{date}
74
- deleted_user: Ištrintas dalyvis
75
- edit: Redaguoti
76
- edited: Redaguota
77
- hide_replies: Paslėpti atsakymus
78
- moderated_at: Komentaras moderuotas %{date}
79
- reply: Atsakyti
80
- report:
81
- action: Raportuoti
82
- already_reported: Šis turinys jau praneštas ir bus peržiūrėtas administratoriaus.
83
- close: Uždaryti
84
- description: Ar šis turinys netinkamas?
85
- details: Papildomi komentarai
86
- reasons:
87
- does_not_belong: Pateikta informacija susijusi su neteisėta veikla, savižudybe, asmenine ar kita informacija netinkančia %{organization_name}.
88
- offensive: Pateikiamoje informacijoje yra rasizmo, seksizmo, keiksmažodžių, asmeninių atakų, grasinimų ar kitokios neapykantos kalbos.
89
- spam: Pateikiamoje informacijoje yra reklamos, antraščių mąsalo ar apgavysčių.
90
- title: Pranešti apie netinkamą turinį
91
- show_replies: Rodyti %{replies_count} atsakymus
92
- single_comment_link_title: Gauti nuorodą
93
- comment_order_selector:
94
- order:
95
- best_rated: Geriausiai įvertinti
96
- most_discussed: Labiausiai aptarti
97
- older: Ankstesni
98
- recent: Paskutiniai
99
- title: 'Rikiuoti pagal:'
100
- comment_thread:
101
- title: Pokalbis su %{authorName}
102
- comments:
103
- blocked_comments_for_unauthorized_user_warning: Norėdami komentuoti turite būti patvirtintas(-a), tačiau galite skaityti egzistuojančius komentarus.
104
- blocked_comments_for_user_warning: Šiuo metu komentarų pateikti negalite, tačiau galite perskaityti ankstesnius komentarus.
105
- blocked_comments_warning: Komentarai šiuo metu išjungti, tačiau galite perskaityti ankstesnius komentarus.
106
- comment_details_title: Komentaro detalės
107
- loading: Komentarai įkeliami...
108
- single_comment_warning: <a href="%{url}">Peržiūrėti visus komentarus</a>
109
- single_comment_warning_title: Matote vieną komentarą
110
- title:
111
- one: "%{count} komentaras"
112
- few: "%{count} komentarai"
113
- many: "%{count} komentarai"
114
- other: "%{count} komentarai"
115
- down_vote_button:
116
- text: Nesutinku su šiuo komentaru
117
- edit_comment_modal_form:
118
- close: Uždaryti
119
- form:
120
- body:
121
- label: Komentaras
122
- placeholder: Ką apie tai manote?
123
- submit: Siųsti
124
- title: Taisyti komentarą
125
- up_vote_button:
126
- text: Sutinku su šiuo komentaru
127
- events:
128
- comments:
129
- comment_by_followed_user:
130
- email_intro: "%{author_name} pakomentavo %{resource_title}. Komentarą galite perskaityti:"
131
- email_outro: Gavote šį pranešimą nes sekate %{author_name}. Galite pasirinkti nebesekti šio naudotojo jo profilio puslapyje.
132
- email_subject: Naujas komentaras %{resource_title} iš %{author_name}
133
- notification_title: Naujas komentaras <a href="%{resource_path}">%{resource_title}</a> iš <a href="%{author_path}">%{author_name}%{author_nickname}</a>.
134
- comment_by_followed_user_group:
135
- email_intro: 'Grupė %{author_name} paliko komentarą po %{resource_title}. Galite jį perskaityti šiame puslapyje:'
136
- email_outro: Šį pranešimą gavote dėl to, kad sekate %{author_name}. Jūs galite nebesekti šios grupės pasirinkdami šį nustatymą jos profilio puslapyje.
137
- email_subject: Naujas komentaras %{resource_title} iš %{author_name}
138
- notification_title: Naujas komentaras <a href="%{resource_path}">%{resource_title}</a> iš <a href="%{author_path}">%{author_name}%{author_nickname}</a>.
139
- comment_created:
140
- email_intro: "%{resource_title} pateiktas komentaras. Komentarą galite perskaityti šiame puslapyje:"
141
- email_outro: Šį pranešimą gavote dėl to, kad sekate „%{resource_title}“ arba jo autorių. Jūs galite jo nebesekti spustelėdami aukščiau esančią nuorodą.
142
- email_subject: '%{author_name} paliko naują komentarą %{resource_title}'
143
- notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> paliko naują komentarą <a href="%{resource_path}">%{resource_title}</a>
144
- comment_downvoted:
145
- email_intro: Jūsų komentaras %{resource_title} buvo nepakaikyas. Komentaras dabar turi %{upvotes} palaikymus ir %{downvotes} nepalaikymus.
146
- email_outro: Šį pranešimą gavote dėl to, kad esate pasiūlymo autorius.
147
- email_subject: Jūsų komentaras %{resource_title} buvo įvertintas neigiamai.
148
- notification_title: Jūsų <a href="%{resource_path}"> komentaras</a> %{resource_title} buvo įvertintas neigiamai. Dabar jis turi %{upvotes} teigiamus ir %{downvotes} neigiamus įvertinimus.
149
- comment_upvoted:
150
- email_intro: Jūsų komentaras %{resource_title} buvo įvertintas teigiamai. Jis turi %{upvotes} teigiamus ir %{downvotes} neigiamus įvertinimus.
151
- email_outro: Šį pranešimą gavote nes esate komentaro autorius.
152
- email_subject: Komentaras %{resource_title} buvo įvertintas teigiamai.
153
- notification_title: Jūsų <a href="%{resource_path}">komentaras</a> %{resource_title} buvo įvertintas teigiamai. Jis turi %{upvotes} teigiamus ir %{downvotes} neigiamus įvertinimus.
154
- reply_created:
155
- email_intro: "%{author_name} atsakė į komentarą %{resource_title}. Galite jį perskaityti:"
156
- email_outro: Gavote šį pranešimą nes į Jūsų komentarą buvo atsakyta.
157
- email_subject: "%{author_name} atsakė į komentarą %{resource_title}"
158
- notification_title: <a href="%{author_path}">%{author_name}%{author_nickname}</a> atsakė į komentarą <a href="%{resource_path}">%{resource_title}</a>
159
- user_group_mentioned:
160
- email_intro: Grupė, kuriai priklausote, buvo paminėta
161
- email_outro: Gavote šį pranešimą nes esate %{resource_title} paminėtos grupės %{group_name} narė(-ys).
162
- email_subject: Buvote paminėtas %{resource_title} kaip %{group_name} narys
163
- notification_title: Buvote paminėtas <a href="%{resource_path}">%{resource_title} <a href="%{author_path}">%{author_name}%{author_nickname}</a> kaip <a href="%{group_path}">%{group_name}%{group_nickname}</a> narį
164
- user_mentioned:
165
- email_intro: Buvote paminėta(-s)
166
- email_outro: Gavote šį pranešimą nes buvote paminėta(-s) %{resource_title}.
167
- email_subject: Buvote paminėta(-s) %{resource_title}
168
- notification_title: Buvote paminėta(-s) <a href="%{resource_path}"> %{resource_title}</a><a href="%{author_path}">%{author_name}%{author_nickname}</a>
169
- metrics:
170
- comments:
171
- description: Komentarų sugeneruotų dalyvių skaičius
172
- object: komentarai
173
- title: Komentarai
174
- errors:
175
- messages:
176
- cannot_have_comments: negali būti komentuota
@@ -1,3 +1,4 @@
1
+ ---
1
2
  lv:
2
3
  activemodel:
3
4
  models:
@@ -1 +1,2 @@
1
+ ---
1
2
  mt:
@@ -1,9 +1,9 @@
1
+ ---
1
2
  nl:
2
3
  activemodel:
3
4
  models:
4
5
  decidim/comments/comment_by_followed_user_event: Commentaar
5
6
  decidim/comments/comment_created_event: Commentaar
6
- decidim/comments/comment_upvoted_event: Reactie omhoog gestemd
7
7
  decidim/comments/reply_created_event: Reactie antwoord
8
8
  decidim/comments/user_group_mentioned_event: Vermelding
9
9
  decidim/comments/user_mentioned_event: Vermelding
@@ -24,14 +24,11 @@ nl:
24
24
  end_time: Reacties ingeschakeld tot
25
25
  start_time: Commentaren ingeschakeld vanaf
26
26
  comments:
27
- create:
28
- error: Er is een probleem opgetreden bij het aanmaken van de reactie.
29
27
  delete:
30
28
  error: De reactie kon niet worden verwijderd.
31
29
  update:
32
30
  error: Er is een probleem opgetreden bij het bijwerken van de reactie.
33
31
  comments_count: Aantal reacties
34
- comments_title: Reacties
35
32
  last_activity:
36
33
  new_comment_at_html: "<span>Nieuwe opmerking op %{link}</span>"
37
34
  view: Bekijk
@@ -71,7 +68,6 @@ nl:
71
68
  edit: Bewerk
72
69
  edited: Bewerkt
73
70
  hide_replies: Antwoorden verbergen
74
- moderated_at: Reactie gemodereerd op %{date}
75
71
  reply: Antwoord
76
72
  report:
77
73
  action: Melden
@@ -103,9 +99,6 @@ nl:
103
99
  loading: Reacties laden...
104
100
  single_comment_warning: <a href="%{url}">Bekijk alle reacties</a>
105
101
  single_comment_warning_title: Je ziet een enkele reactie
106
- title:
107
- one: "%{count} reacties"
108
- other: "%{count} reacties"
109
102
  down_vote_button:
110
103
  text: Ik ben het niet eens met deze reactie
111
104
  edit_comment_modal_form:
@@ -135,16 +128,6 @@ nl:
135
128
  email_outro: Je hebt deze melding ontvangen omdat je '%{resource_title}' of de auteur ervan volgt. Ontvolgen kan door te klikken op de vorige link.
136
129
  email_subject: Er is een nieuwe reactie van %{author_name} in %{resource_title}
137
130
  notification_title: Er is een nieuwe reactie van <a href="%{author_path}">%{author_name} %{author_nickname}</a> in <a href="%{resource_path}">%{resource_title}</a>
138
- comment_downvoted:
139
- email_intro: Je reactie in "%{resource_title}" kreeg een tegenstem. Het heeft nu een totaal van %{upvotes} stemmen 'voor' en %{downvotes} stemmen 'tegen'.
140
- email_outro: Je hebt deze melding ontvangen omdat je de auteur bent van deze reactie.
141
- email_subject: Je reactie in "%{resource_title}" kreeg een tegenstem.
142
- notification_title: Je <a href="%{resource_path}">reactie</a> in "%{resource_title}" kreeg een tegenstem. Het heeft nu een totaal van %{upvotes} stemmen 'voor' en %{downvotes} stemmen 'tegen'.
143
- comment_upvoted:
144
- email_intro: Je reactie in "%{resource_title}" kreeg een stem 'voor'. Het heeft nu een totaal van %{upvotes} stemmen 'voor' en %{downvotes} stemmen 'tegen'.
145
- email_outro: Je hebt deze melding ontvangen omdat je de auteur bent van deze reactie.
146
- email_subject: Je reactie in "%{resource_title}" kreeg een stem 'voor'.
147
- notification_title: Je <a href="%{resource_path}">reactie</a> in "%{resource_title}" kreeg een stem 'voor'. Het heeft nu een totaal van %{upvotes} stemmen 'voor' en %{downvotes} stemmen 'tegen'.
148
131
  reply_created:
149
132
  email_intro: "%{author_name} heeft gereageerd op jouw opmerking in %{resource_title}. Lees het via deze link:"
150
133
  email_outro: Je hebt deze melding ontvangen omdat je reactie beantwoord is.
@@ -1,3 +1,4 @@
1
+ ---
1
2
  "no":
2
3
  activemodel:
3
4
  models:
@@ -1 +1,2 @@
1
+ ---
1
2
  om:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  pl:
2
3
  activemodel:
3
4
  models:
@@ -1,4 +1,5 @@
1
- pt-BR:
1
+ ---
2
+ pt:
2
3
  activemodel:
3
4
  models:
4
5
  decidim/comments/comment_by_followed_user_event: Comente
@@ -1,3 +1,4 @@
1
+ ---
1
2
  pt:
2
3
  activemodel:
3
4
  models:
@@ -1,9 +1,9 @@
1
+ ---
1
2
  ro:
2
3
  activemodel:
3
4
  models:
4
5
  decidim/comments/comment_by_followed_user_event: Comentariu
5
6
  decidim/comments/comment_created_event: Comentează
6
- decidim/comments/comment_upvoted_event: Comentariu votat
7
7
  decidim/comments/reply_created_event: Răspuns la comentariu
8
8
  decidim/comments/user_group_mentioned_event: Menționează
9
9
  decidim/comments/user_mentioned_event: Menționează
@@ -73,7 +73,6 @@ ro:
73
73
  edit: Editează
74
74
  edited: Editat
75
75
  hide_replies: Ascunde răspunsurile
76
- moderated_at: Comentariu moderat pe %{date}
77
76
  reply: Răspunde
78
77
  report:
79
78
  action: Raportează
@@ -1,3 +1,4 @@
1
+ ---
1
2
  ru:
2
3
  activemodel:
3
4
  models:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  si:
2
3
  activemodel:
3
4
  models:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sk:
2
3
  activemodel:
3
4
  models:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sl:
2
3
  activemodel:
3
4
  models:
@@ -1 +1,2 @@
1
+ ---
1
2
  so:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sr:
2
3
  decidim:
3
4
  components:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  sv:
2
3
  activemodel:
3
4
  models:
@@ -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
  models:
@@ -1,3 +1,4 @@
1
+ ---
1
2
  uk:
2
3
  activemodel:
3
4
  models:
@@ -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
  models:
@@ -1 +1,2 @@
1
+ ---
1
2
  zh-TW:
@@ -4,6 +4,7 @@ class MakeAuthorsPolymorphicForComments < ActiveRecord::Migration[5.2]
4
4
  class Comment < ApplicationRecord
5
5
  self.table_name = :decidim_comments_comments
6
6
  end
7
+
7
8
  def change
8
9
  add_column :decidim_comments_comments, :decidim_author_type, :string
9
10
 
@@ -4,6 +4,7 @@ class MakeAuthorPolymorphicForCommentVotes < ActiveRecord::Migration[5.2]
4
4
  class CommentVote < ApplicationRecord
5
5
  self.table_name = :decidim_comments_comment_votes
6
6
  end
7
+
7
8
  def change
8
9
  add_column :decidim_comments_comment_votes, :decidim_author_type, :string
9
10
 
@@ -32,7 +32,7 @@ module Decidim
32
32
  private
33
33
 
34
34
  def root_commentable_url
35
- @root_commentable_url ||= if resource.root_commentable&.respond_to?(:polymorphic_resource_url)
35
+ @root_commentable_url ||= if resource.root_commentable.respond_to?(:polymorphic_resource_url)
36
36
  resource.root_commentable.polymorphic_resource_url
37
37
  else
38
38
  ResourceLocatorPresenter.new(resource.root_commentable).url
@@ -37,7 +37,7 @@ module Decidim
37
37
  private
38
38
 
39
39
  def root_commentable_url
40
- @root_commentable_url ||= if resource.comment.root_commentable&.respond_to?(:polymorphic_resource_url)
40
+ @root_commentable_url ||= if resource.comment.root_commentable.respond_to?(:polymorphic_resource_url)
41
41
  resource.comment.root_commentable.polymorphic_resource_url
42
42
  else
43
43
  ResourceLocatorPresenter.new(resource.comment.root_commentable).url
@@ -50,18 +50,6 @@ module Decidim
50
50
 
51
51
  "<p>#{text}</p>"
52
52
  end
53
-
54
- # Prevents underscores to be replaced with <em> tags in comments, such as
55
- # https://github.com/org/module_with_underscores or within words such as
56
- # "Look for comment_maximum_length in the code". The `no_intra_emphasis`
57
- # option for Redcarpet does not apparently work for this renderer.
58
- #
59
- # Related issues:
60
- # https://github.com/vmg/redcarpet/issues/402
61
- # https://github.com/vmg/redcarpet/issues/427
62
- def emphasis(text)
63
- "_#{text}_"
64
- end
65
53
  end
66
54
  end
67
55
  end
@@ -5,7 +5,7 @@ require "spec_helper"
5
5
  shared_examples_for "a translated comment event" do
6
6
  describe "translated notifications" do
7
7
  let(:en_body) { "This is Sparta!" }
8
- let(:body) { { "en": en_body, "machine_translations": { "ca": "C'est Sparta!" } } }
8
+ let(:body) { { en: en_body, machine_translations: { ca: "C'est Sparta!" } } }
9
9
  let(:participatory_process) { create :participatory_process, organization: organization }
10
10
  let(:component) { create(:component, participatory_space: participatory_process) }
11
11
  let(:commentable) { create(:dummy_resource, component: component) }
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-comments version.
5
5
  module Comments
6
6
  def self.version
7
- "0.26.4"
7
+ "0.27.0.rc1"
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-comments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.4
4
+ version: 0.27.0.rc1
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: 2022-11-15 00:00:00.000000000 Z
13
+ date: 2022-06-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-core
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.26.4
21
+ version: 0.27.0.rc1
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.26.4
28
+ version: 0.27.0.rc1
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: redcarpet
31
31
  requirement: !ruby/object:Gem::Requirement
@@ -52,28 +52,28 @@ dependencies:
52
52
  requirements:
53
53
  - - '='
54
54
  - !ruby/object:Gem::Version
55
- version: 0.26.4
55
+ version: 0.27.0.rc1
56
56
  type: :development
57
57
  prerelease: false
58
58
  version_requirements: !ruby/object:Gem::Requirement
59
59
  requirements:
60
60
  - - '='
61
61
  - !ruby/object:Gem::Version
62
- version: 0.26.4
62
+ version: 0.27.0.rc1
63
63
  - !ruby/object:Gem::Dependency
64
64
  name: decidim-dev
65
65
  requirement: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - '='
68
68
  - !ruby/object:Gem::Version
69
- version: 0.26.4
69
+ version: 0.27.0.rc1
70
70
  type: :development
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
73
73
  requirements:
74
74
  - - '='
75
75
  - !ruby/object:Gem::Version
76
- version: 0.26.4
76
+ version: 0.27.0.rc1
77
77
  description: Pluggable comments system for some components.
78
78
  email:
79
79
  - josepjaume@gmail.com
@@ -107,6 +107,7 @@ files:
107
107
  - app/cells/decidim/comments/comment_thread_cell.rb
108
108
  - app/cells/decidim/comments/comments/add_comment.erb
109
109
  - app/cells/decidim/comments/comments/blocked_comments_warning.erb
110
+ - app/cells/decidim/comments/comments/comments_loading.erb
110
111
  - app/cells/decidim/comments/comments/order_control.erb
111
112
  - app/cells/decidim/comments/comments/show.erb
112
113
  - app/cells/decidim/comments/comments/single_comment_warning.erb
@@ -196,7 +197,6 @@ files:
196
197
  - config/locales/fr.yml
197
198
  - config/locales/ga-IE.yml
198
199
  - config/locales/gl.yml
199
- - config/locales/gn-PY.yml
200
200
  - config/locales/hr-HR.yml
201
201
  - config/locales/hr.yml
202
202
  - config/locales/hu.yml
@@ -209,7 +209,6 @@ files:
209
209
  - config/locales/ko.yml
210
210
  - config/locales/lb-LU.yml
211
211
  - config/locales/lb.yml
212
- - config/locales/lo-LA.yml
213
212
  - config/locales/lt-LT.yml
214
213
  - config/locales/lt.yml
215
214
  - config/locales/lv.yml
@@ -217,7 +216,6 @@ files:
217
216
  - config/locales/mt.yml
218
217
  - config/locales/nl.yml
219
218
  - config/locales/no.yml
220
- - config/locales/oc-FR.yml
221
219
  - config/locales/om-ET.yml
222
220
  - config/locales/pl.yml
223
221
  - config/locales/pt-BR.yml
@@ -299,14 +297,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
299
297
  requirements:
300
298
  - - ">="
301
299
  - !ruby/object:Gem::Version
302
- version: '2.7'
300
+ version: '3.0'
303
301
  required_rubygems_version: !ruby/object:Gem::Requirement
304
302
  requirements:
305
- - - ">="
303
+ - - ">"
306
304
  - !ruby/object:Gem::Version
307
- version: '0'
305
+ version: 1.3.1
308
306
  requirements: []
309
- rubygems_version: 3.1.6
307
+ rubygems_version: 3.2.22
310
308
  signing_key:
311
309
  specification_version: 4
312
310
  summary: Decidim comments module
@@ -1 +0,0 @@
1
- gn:
@@ -1 +0,0 @@
1
- lo:
@@ -1 +0,0 @@
1
- oc: