decidim-debates 0.22.0 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/debates/debate_activity_cell.rb +4 -0
  3. data/app/cells/decidim/debates/debate_m/data.erb +10 -8
  4. data/app/cells/decidim/debates/debate_m/footer.erb +5 -0
  5. data/app/cells/decidim/debates/debate_m_cell.rb +24 -2
  6. data/app/commands/decidim/debates/admin/close_debate.rb +54 -0
  7. data/app/commands/decidim/debates/admin/create_debate.rb +4 -2
  8. data/app/commands/decidim/debates/admin/update_debate.rb +5 -2
  9. data/app/commands/decidim/debates/close_debate.rb +58 -0
  10. data/app/commands/decidim/debates/create_debate.rb +17 -12
  11. data/app/commands/decidim/debates/update_debate.rb +56 -0
  12. data/app/controllers/decidim/debates/admin/debate_closes_controller.rb +43 -0
  13. data/app/controllers/decidim/debates/admin/debates_controller.rb +4 -2
  14. data/app/controllers/decidim/debates/debates_controller.rb +70 -9
  15. data/app/controllers/decidim/debates/orderable.rb +41 -0
  16. data/app/controllers/decidim/debates/versions_controller.rb +16 -0
  17. data/app/controllers/decidim/debates/widgets_controller.rb +19 -0
  18. data/app/events/decidim/debates/close_debate_event.rb +15 -0
  19. data/app/forms/decidim/debates/admin/close_debate_form.rb +34 -0
  20. data/app/forms/decidim/debates/admin/debate_form.rb +5 -1
  21. data/app/forms/decidim/debates/close_debate_form.rb +39 -0
  22. data/app/forms/decidim/debates/debate_form.rb +27 -1
  23. data/app/helpers/decidim/debates/admin/application_helper.rb +13 -0
  24. data/app/helpers/decidim/debates/application_helper.rb +37 -1
  25. data/app/models/decidim/debates/debate.rb +60 -8
  26. data/app/permissions/decidim/debates/admin/permissions.rb +3 -1
  27. data/app/permissions/decidim/debates/permissions.rb +28 -0
  28. data/app/presenters/decidim/debates/admin_log/debate_presenter.rb +6 -2
  29. data/app/presenters/decidim/debates/admin_log/value_types/debate_title_description_presenter.rb +20 -0
  30. data/app/presenters/decidim/debates/debate_presenter.rb +62 -7
  31. data/app/presenters/decidim/debates/log/resource_presenter.rb +18 -0
  32. data/app/presenters/decidim/debates/official_author_presenter.rb +1 -29
  33. data/app/services/decidim/debates/debate_search.rb +13 -23
  34. data/app/services/decidim/debates/diff_renderer.rb +27 -0
  35. data/app/views/decidim/debates/admin/debate_closes/edit.html.erb +17 -0
  36. data/app/views/decidim/debates/admin/debates/_form.html.erb +4 -4
  37. data/app/views/decidim/debates/admin/debates/index.html.erb +7 -1
  38. data/app/views/decidim/debates/debates/_close_debate_modal.html.erb +13 -0
  39. data/app/views/decidim/debates/debates/_debates.html.erb +7 -0
  40. data/app/views/decidim/debates/debates/_filters.html.erb +15 -13
  41. data/app/views/decidim/debates/debates/_form.html.erb +19 -0
  42. data/app/views/decidim/debates/debates/edit.html.erb +22 -0
  43. data/app/views/decidim/debates/debates/new.html.erb +1 -22
  44. data/app/views/decidim/debates/debates/show.html.erb +81 -11
  45. data/app/views/decidim/debates/versions/index.html.erb +8 -0
  46. data/app/views/decidim/debates/versions/show.html.erb +10 -0
  47. data/config/locales/am-ET.yml +1 -0
  48. data/config/locales/ar.yml +2 -1
  49. data/config/locales/bg.yml +15 -0
  50. data/config/locales/ca.yml +70 -1
  51. data/config/locales/cs.yml +70 -1
  52. data/config/locales/da.yml +1 -0
  53. data/config/locales/de.yml +48 -1
  54. data/config/locales/el.yml +2 -1
  55. data/config/locales/en.yml +70 -1
  56. data/config/locales/eo.yml +1 -0
  57. data/config/locales/es-MX.yml +70 -1
  58. data/config/locales/es-PY.yml +70 -1
  59. data/config/locales/es.yml +70 -1
  60. data/config/locales/et.yml +1 -0
  61. data/config/locales/eu.yml +2 -1
  62. data/config/locales/fi-plain.yml +70 -1
  63. data/config/locales/fi.yml +70 -1
  64. data/config/locales/fr-CA.yml +70 -1
  65. data/config/locales/fr.yml +70 -1
  66. data/config/locales/gl.yml +2 -1
  67. data/config/locales/hr.yml +1 -0
  68. data/config/locales/hu.yml +24 -1
  69. data/config/locales/id-ID.yml +2 -1
  70. data/config/locales/is-IS.yml +2 -1
  71. data/config/locales/is.yml +102 -0
  72. data/config/locales/it.yml +33 -1
  73. data/config/locales/ja-JP.yml +63 -20
  74. data/config/locales/ja.yml +221 -0
  75. data/config/locales/ko-KR.yml +1 -0
  76. data/config/locales/ko.yml +1 -0
  77. data/config/locales/lt.yml +1 -0
  78. data/config/locales/{lv-LV.yml → lv.yml} +0 -0
  79. data/config/locales/mt.yml +1 -0
  80. data/config/locales/nl.yml +46 -1
  81. data/config/locales/no.yml +42 -1
  82. data/config/locales/om-ET.yml +1 -0
  83. data/config/locales/pl.yml +58 -6
  84. data/config/locales/pt-BR.yml +2 -1
  85. data/config/locales/pt.yml +18 -1
  86. data/config/locales/ro-RO.yml +18 -1
  87. data/config/locales/ru.yml +2 -1
  88. data/config/locales/sk.yml +2 -1
  89. data/config/locales/sl.yml +13 -1
  90. data/config/locales/so-SO.yml +1 -0
  91. data/config/locales/sv.yml +51 -1
  92. data/config/locales/ti-ER.yml +1 -0
  93. data/config/locales/tr-TR.yml +2 -1
  94. data/config/locales/uk.yml +2 -1
  95. data/config/locales/vi-VN.yml +1 -0
  96. data/config/locales/vi.yml +1 -0
  97. data/config/locales/zh-CN.yml +218 -0
  98. data/config/locales/zh-TW.yml +1 -0
  99. data/db/migrate/20200703134657_close_debates.rb +9 -0
  100. data/db/migrate/20200708072042_fix_debates_i18n_fields.rb +48 -0
  101. data/db/migrate/20200716143929_add_endorsable_to_debates.rb +8 -0
  102. data/db/migrate/20200827154116_add_commentable_counter_cache_to_debates.rb +14 -0
  103. data/db/migrate/20200902133452_add_cached_comment_metadata_to_debates.rb +23 -0
  104. data/lib/decidim/debates/admin_engine.rb +3 -1
  105. data/lib/decidim/debates/component.rb +44 -1
  106. data/lib/decidim/debates/engine.rb +7 -1
  107. data/lib/decidim/debates/test/factories.rb +62 -6
  108. data/lib/decidim/debates/version.rb +1 -1
  109. metadata +57 -13
@@ -11,26 +11,7 @@
11
11
  <div class="card">
12
12
  <div class="card__content">
13
13
  <%= decidim_form_for(@form) do |form| %>
14
- <div class="field">
15
- <%= form.text_field :title %>
16
- </div>
17
-
18
- <div class="field">
19
- <%= text_editor_for_debate_description(form) %>
20
- </div>
21
-
22
- <% if current_participatory_space.categories&.any? %>
23
- <div class="field">
24
- <%= form.categories_select :category_id, current_participatory_space.categories, include_blank: t(".select_a_category"), disable_parents: false %>
25
- </div>
26
- <% end %>
27
-
28
- <% if Decidim::UserGroups::ManageableUserGroups.for(current_user).verified.any? %>
29
- <div class="field">
30
- <%= form.select :user_group_id, Decidim::UserGroups::ManageableUserGroups.for(current_user).verified.map{|g| [g.name, g.id]}, prompt: current_user.name %>
31
- </div>
32
- <% end %>
33
-
14
+ <%= render partial: "form", locals: { form: form } %>
34
15
  <div class="actions">
35
16
  <%= form.submit t(".create"), class: "button expanded", data: { disable: true } %>
36
17
  </div>
@@ -39,5 +20,3 @@
39
20
  </div>
40
21
  </div>
41
22
  </div>
42
-
43
- <%= javascript_include_tag "decidim/proposals/add_proposal" %>
@@ -14,22 +14,33 @@ edit_link(
14
14
  %>
15
15
 
16
16
  <div class="row column view-header">
17
-
18
- <%= link_to :debates, class: "small hollow" do %>
17
+ <%= link_to debates_path(filter_link_params), class: "small hollow" do %>
19
18
  <%= icon "chevron-left", class: "icon--small", role: "img", "aria-hidden": true %>
20
19
  <%= t(".back") %>
21
20
  <% end %>
22
21
 
23
- <h2 class="heading2">
24
- <%== present(debate).title %>
22
+ <h2 class="heading3">
23
+ <%== present(debate).title(links: true) %>
25
24
  </h2>
26
25
 
27
- <%= cell "decidim/author", Decidim::Debates::DebatePresenter.new(debate).author, context: { extra_classes: ["author-data--small"] } %>
28
-
26
+ <% debate_presenter = Decidim::Debates::DebatePresenter.new(debate) %>
27
+ <%= cell "decidim/author", debate_presenter.author, from: debate, context: { extra_classes: ["author-data--small"] } %>
29
28
  </div>
30
29
  <div class="row">
31
- <div class="columns section view-side mediumlarge-4 mediumlarge-push-8
32
- large-3 large-push-9">
30
+ <div class="columns section view-side mediumlarge-4 mediumlarge-push-8 large-3 large-push-9">
31
+ <% if allowed_to?(:edit, :debate, debate: debate) %>
32
+ <%= link_to t(".edit_debate"), edit_debate_path(debate), class: "button secondary hollow expanded button-sc button--icon follow-button" %>
33
+ <% elsif admin_allowed_to?(:update, :debate, debate: debate) %>
34
+ <%= link_to t(".edit_debate"), resource_locator(debate).edit, class: "button secondary hollow expanded button-sc button--icon follow-button" %>
35
+ <% end %>
36
+ <% close_debate_action_text = (debate.closed? ? ".edit_conclusions" : ".close_debate" ) %>
37
+ <% if allowed_to?(:close, :debate, debate: debate) %>
38
+ <button type="button" data-open="closeDebateModal" title="<%= t(close_debate_action_text) %>" aria-controls="closeDebateModal" aria-haspopup="true" tabindex="0" class="button hollow expanded button-sc button--icon follow-button">
39
+ <%= t(close_debate_action_text) %>
40
+ </button>
41
+ <% elsif admin_allowed_to?(:close, :debate, debate: debate) %>
42
+ <%= link_to t(close_debate_action_text), Decidim::EngineRouter.admin_proxy(debate.component).edit_debate_debate_close_path(debate_id: debate.id, id: debate.id), class: "button hollow expanded button-sc button--icon follow-button" %>
43
+ <% end %>
33
44
  <div class="card extra">
34
45
  <div class="card__content">
35
46
  <% if debate.start_time.present? && debate.end_time.present? %>
@@ -40,23 +51,74 @@ edit_link(
40
51
  <%= l debate.start_time, format: "%H:%M" %> - <%= l debate.end_time, format: "%H:%M" %>
41
52
  </div>
42
53
  <% end %>
43
- <%= render partial: "decidim/shared/follow_button", locals: { followable: debate, large: false } %>
54
+
55
+ <% if endorsements_enabled? && allowed_to?(:endorse, :debate, debate: debate) %>
56
+ <div class="row collapse buttons__row">
57
+ <div class="column small-12 collapse">
58
+ <%= endorsement_buttons_cell(debate) %>
59
+ </div>
60
+ </div>
61
+ <% end %>
62
+ <%= follow_button_for(debate) %>
63
+ </div>
64
+ </div>
65
+ <div class="card extra">
66
+ <div class="definition-data">
67
+ <div class="definition-data__item definition-data__item">
68
+ <span class="definition-data__title">
69
+ <%= t ".last_comment_by" %>
70
+ </span>
71
+ <span class="definition-data__text">
72
+ <% if debate_presenter.last_comment_by %>
73
+ <%= cell "decidim/author", debate_presenter.last_comment_by, context: { extra_classes: ["author-data--small"] } %>
74
+ <% else %>
75
+ <%= t ".no_comments_yet" %>
76
+ <% end %>
77
+ </span>
78
+ </div>
79
+
80
+ <div class="definition-data__item definition-data__item--double">
81
+ <span class="definition-data__title">
82
+ <%= t ".participants_count" %>
83
+ </span>
84
+ <span class="definition-data__number"><%= debate_presenter.participants_count %></span>
85
+ </div>
86
+
87
+ <div class="definition-data__item definition-data__item--double">
88
+ <span class="definition-data__title">
89
+ <%= t ".groups_count" %>
90
+ </span>
91
+ <span class="definition-data__number"><%= debate_presenter.groups_count %></span>
92
+ </div>
44
93
  </div>
45
94
  </div>
46
95
  <%= resource_reference(debate) %>
96
+ <%= resource_version(debate_presenter, versions_path: debate_versions_path(debate)) %>
47
97
  <%= render partial: "decidim/shared/share_modal" %>
98
+ <%= embed_modal_for debate_widget_url(debate, format: :js) %>
48
99
  </div>
49
100
  <div class="columns mediumlarge-8 mediumlarge-pull-4">
50
101
  <div class="section">
102
+ <% if debate.closed? %>
103
+ <span class="success label proposal-status">
104
+ <%= t(".debate_closed") %>
105
+ </span>
106
+ <% end %>
107
+
51
108
  <%= render_debate_description(debate) %>
109
+
110
+ <% if debate.closed? %>
111
+ <%= cell("decidim/announcement", { announcement: { title: t(".debate_conclusions_are", date: l(debate.closed_at, format: :decidim_short)), body: simple_format(translated_attribute(debate.conclusions)) }, callout_class: "success" }) %>
112
+ <% end %>
113
+
52
114
  <% if translated_attribute(debate.instructions).present? %>
53
115
  <div class="callout secondary">
54
- <%= decidim_sanitize(simple_format(translated_attribute(debate.instructions))) %>
116
+ <%= decidim_sanitize(simple_format(translated_attribute(debate.instructions), {}, sanitize: false)) %>
55
117
  </div>
56
118
  <% end %>
57
119
  <% if translated_attribute(debate.information_updates).present? %>
58
120
  <div class="callout success">
59
- <%= simple_format(translated_attribute(debate.information_updates)) %>
121
+ <%= decidim_sanitize(simple_format(translated_attribute(debate.information_updates), {}, sanitize: false)) %>
60
122
  </div>
61
123
  <% end %>
62
124
  <% if debate.category %>
@@ -64,6 +126,8 @@ edit_link(
64
126
  <li><%= link_to translated_attribute(debate.category.name), debates_path(filter: { category_id: debate.category.id }) %></li>
65
127
  </ul>
66
128
  <% end %>
129
+
130
+ <%= cell "decidim/endorsers_list", debate %>
67
131
  </div>
68
132
  </div>
69
133
  </div>
@@ -77,3 +141,9 @@ edit_link(
77
141
  url: decidim.report_path(sgid: debate.to_sgid.to_s)
78
142
  }
79
143
  %>
144
+ <%=
145
+ render partial: "close_debate_modal", locals: {
146
+ debate: debate,
147
+ form: close_debate_form
148
+ }
149
+ %>
@@ -0,0 +1,8 @@
1
+ <div class="row">
2
+ <%= cell(
3
+ "decidim/versions_list",
4
+ versioned_resource,
5
+ version_path: proc { |version_index| url_for(action: :show, id: version_index) },
6
+ i18n_scope: "decidim.debates.debates.versions_list"
7
+ ) %>
8
+ </div>
@@ -0,0 +1,10 @@
1
+ <div class="row">
2
+ <%= cell(
3
+ "decidim/version",
4
+ current_version,
5
+ index: params[:id],
6
+ versioned_resource: versioned_resource,
7
+ versions_path: proc { url_for(action: :index) },
8
+ i18n_scope: "decidim.debates.debates.versions.#{item_name.to_s.pluralize}"
9
+ ) %>
10
+ </div>
@@ -0,0 +1 @@
1
+ am:
@@ -97,12 +97,13 @@ ar:
97
97
  filter: منقي
98
98
  filter_by: مصنف بواسطة
99
99
  unfold: كشف
100
+ form:
101
+ select_a_category: الرجاء تحديد الفئة
100
102
  index:
101
103
  new_debate: نقاش جديد
102
104
  new:
103
105
  back: الى الخلف
104
106
  create: إنشاء
105
- select_a_category: الرجاء تحديد الفئة
106
107
  title: نقاش جديد
107
108
  last_activity:
108
109
  new_debate_at_html: "<span>مناقشة جديدة في %{link}</span>"
@@ -0,0 +1,15 @@
1
+ bg:
2
+ activemodel:
3
+ attributes:
4
+ debate:
5
+ category_id: Категория
6
+ decidim_category_id: Категория
7
+ description: Описание
8
+ decidim:
9
+ debates:
10
+ debates:
11
+ show:
12
+ groups_count: Групи
13
+ last_comment_by: Последно коментиран от
14
+ no_comments_yet: Все още няма коментари
15
+ participants_count: Участници
@@ -3,6 +3,8 @@ ca:
3
3
  attributes:
4
4
  debate:
5
5
  category_id: Categoria
6
+ closed_at: Tancat el
7
+ conclusions: Conclusions
6
8
  decidim_category_id: Categoria
7
9
  description: Descripció
8
10
  end_time: Data de finalització
@@ -12,6 +14,7 @@ ca:
12
14
  title: Títol
13
15
  user_group_id: Crea un debat com
14
16
  models:
17
+ decidim/debates/close_debate_event: Debat tancat
15
18
  decidim/debates/create_debate_event: Debat
16
19
  decidim/debates/creation_disabled_event: Debats deshabilitats
17
20
  decidim/debates/creation_enabled_event: Debats habilitats
@@ -25,23 +28,34 @@ ca:
25
28
  debates:
26
29
  actions:
27
30
  create: Crear
31
+ endorse: Adherir-se
28
32
  name: Debats
29
33
  settings:
30
34
  global:
31
35
  announcement: Avís
32
36
  comments_enabled: Comentaris habilitats
37
+ comments_max_length: Longitud màxima dels comentaris (deixa 0 si vols mantenir la configuració per defecte)
38
+ scope_id: Àmbit
39
+ scopes_enabled: Àmbits habilitats
33
40
  step:
34
41
  announcement: Avís
35
42
  comments_blocked: Comentaris bloquejats
36
43
  creation_enabled: Creació de debats per part de les participants habilitada
44
+ endorsements_blocked: Adhesions bloquejades
45
+ endorsements_enabled: Adhesions habilitades
37
46
  debates:
38
47
  actions:
48
+ close: Tanca
39
49
  confirm_destroy: N'estàs segura?
40
50
  destroy: Suprimeix
41
51
  edit: Edita
42
52
  new: Nou %{name}
43
53
  title: Accions
44
54
  admin:
55
+ debate_closes:
56
+ edit:
57
+ close: Tanca
58
+ title: Tancar el debat
45
59
  debates:
46
60
  create:
47
61
  invalid: S'ha produït un error en crear el debat.
@@ -64,9 +78,20 @@ ca:
64
78
  name: Debat
65
79
  admin_log:
66
80
  debate:
81
+ close: "La participant %{user_name} ha tancat el debat %{resource_name} a l'espai %{space_name}"
67
82
  create: "La participant %{user_name} ha creat el debat %{resource_name} a l'espai %{space_name}"
68
83
  update: "La participant %{user_name} ha actualitzat el debat %{resource_name} a l'espai %{space_name}"
84
+ debate_m:
85
+ commented_time_ago: Comentat fa %{time}
69
86
  debates:
87
+ close:
88
+ invalid: S'ha produït un error en tancar el debat.
89
+ success: Debat tancat correctament.
90
+ close_debate_modal:
91
+ close: Tanca
92
+ description: Quin és el resum o conclusions d'aquest debat?
93
+ send: Tancar el debat
94
+ closed: Tancat
70
95
  count:
71
96
  debates_count:
72
97
  one: "%{count} debat"
@@ -76,29 +101,68 @@ ca:
76
101
  success: Debat creat correctament.
77
102
  debate:
78
103
  participate: Participa
104
+ edit:
105
+ back: Enrere
106
+ save: Guardar canvis
107
+ title: Editar debat
79
108
  filters:
109
+ activity: La meva activitat
80
110
  all: Tots
81
111
  category: Categoria
82
112
  category_prompt: Selecciona una categoria
83
113
  citizens: Ciutadania
114
+ commented: Comentat
115
+ my_debates: Els meus debats
84
116
  official: Oficial
85
117
  origin: Origen
118
+ scope: Àmbit
86
119
  search: Cerca
120
+ state: Estat
121
+ state_values:
122
+ closed: Tancat
123
+ open: Obert
124
+ user_groups: Grups
87
125
  filters_small_view:
88
126
  close_modal: Tancar finestra
89
127
  filter: Filtra
90
128
  filter_by: Filtra per
91
129
  unfold: Desplega
130
+ form:
131
+ select_a_category: Si us plau, selecciona una categoria
92
132
  index:
93
133
  new_debate: Nou debat
94
134
  new:
95
135
  back: Torna
96
136
  create: Crear
97
- select_a_category: Si us plau, selecciona una categoria
98
137
  title: Nou debat
138
+ orders:
139
+ commented: Més comentats
140
+ label: Ordenar debats per
141
+ random: Ordre aleatori
142
+ recent: Més recents
143
+ updated: Recentment actualitzats
99
144
  show:
100
145
  back: Torna al llistat
146
+ close_debate: Tancar el debat
101
147
  date: Data
148
+ debate_closed: Tancat
149
+ debate_conclusions_are: 'El debat es va tancar el %{date} amb aquestes conclusions:'
150
+ edit_conclusions: Editar conclusions
151
+ edit_debate: Editar debat
152
+ groups_count: Grups
153
+ last_comment_by: Darrer comentari de
154
+ no_comments_yet: Encara no hi ha comentaris
155
+ participants_count: Participants
156
+ update:
157
+ invalid: S'ha produït un error en actualitzar aquest debat.
158
+ success: Debat actualitzat correctament.
159
+ versions:
160
+ debates:
161
+ back_to_resource: Tornar al debat
162
+ index:
163
+ title: Versions
164
+ versions_list:
165
+ back_to_resource: Tornar al debat
102
166
  last_activity:
103
167
  new_debate_at_html: "<span>Nou debat a %{link}</span>"
104
168
  models:
@@ -135,6 +199,11 @@ ca:
135
199
  email_outro: Has rebut aquesta notificació perquè estàs seguint %{participatory_space_title}. Pots deixar de rebre notificacions seguint l'enllaç anterior.
136
200
  email_subject: Els debats ja estan disponibles a %{participatory_space_title}
137
201
  notification_title: Ja pots començar <a href="%{resource_path}">nous debats</a> a <a href="%{participatory_space_url}">%{participatory_space_title}</a>
202
+ debate_closed:
203
+ email_intro: 'El debat "%{resource_title}" s''ha tancat. Podeu llegir-ne les conclusions a la seva pàgina:'
204
+ email_outro: Has rebut aquesta notificació perquè estàs seguint el debat "%{resource_title}". Pots deixar-la de seguir des de l'enllaç anterior.
205
+ email_subject: El debat "%{resource_title}" s'ha tancat
206
+ notification_title: El debat <a href="%{resource_path}">%{resource_title}</a> s'ha tancat.
138
207
  gamification:
139
208
  badges:
140
209
  commented_debates:
@@ -3,6 +3,8 @@ cs:
3
3
  attributes:
4
4
  debate:
5
5
  category_id: Kategorie
6
+ closed_at: Uzavřeno v
7
+ conclusions: Závěry
6
8
  decidim_category_id: Kategorie
7
9
  description: Popis
8
10
  end_time: Končí v
@@ -12,6 +14,7 @@ cs:
12
14
  title: Titul
13
15
  user_group_id: Vytvořte debatu jako
14
16
  models:
17
+ decidim/debates/close_debate_event: Debata byla uzavřena
15
18
  decidim/debates/create_debate_event: Debata
16
19
  decidim/debates/creation_disabled_event: Debaty zakázány
17
20
  decidim/debates/creation_enabled_event: Debaty povoleny
@@ -27,23 +30,34 @@ cs:
27
30
  debates:
28
31
  actions:
29
32
  create: Vytvořit
33
+ endorse: Schválit
30
34
  name: Debaty
31
35
  settings:
32
36
  global:
33
37
  announcement: Oznámení
34
38
  comments_enabled: Komentáře povoleny
39
+ comments_max_length: Maximální délka komentáře (ponechte 0 pro výchozí hodnotu)
40
+ scope_id: Oblast působnosti
41
+ scopes_enabled: Oblasti působnosti povoleny
35
42
  step:
36
43
  announcement: Oznámení
37
44
  comments_blocked: Komentáře blokovány
38
45
  creation_enabled: Vytváření debaty účastníky povoleno
46
+ endorsements_blocked: Schvalování blokováno
47
+ endorsements_enabled: Schvalování povoleno
39
48
  debates:
40
49
  actions:
50
+ close: Zavřít
41
51
  confirm_destroy: Jste si jisti?
42
52
  destroy: Odstranit
43
53
  edit: Upravit
44
54
  new: Nové %{name}
45
55
  title: Akce
46
56
  admin:
57
+ debate_closes:
58
+ edit:
59
+ close: Zavřít
60
+ title: Ukončit debatu
47
61
  debates:
48
62
  create:
49
63
  invalid: Během debaty vznikl problém.
@@ -66,9 +80,20 @@ cs:
66
80
  name: Debata
67
81
  admin_log:
68
82
  debate:
83
+ close: "%{user_name} ukončil debatu %{resource_name} ve skupině %{space_name}"
69
84
  create: "%{user_name} vytvořil debatu %{resource_name} o skupině %{space_name}"
70
85
  update: "%{user_name} aktualizovala %{resource_name} diskusi o %{space_name} prostoru"
86
+ debate_m:
87
+ commented_time_ago: Komentováno před %{time}
71
88
  debates:
89
+ close:
90
+ invalid: Při uzavírání debaty došlo k chybě.
91
+ success: Debata byla úspěšně uzavřena.
92
+ close_debate_modal:
93
+ close: Zavřít
94
+ description: Jaké je shrnutí nebo závěr této debaty?
95
+ send: Ukončit debatu
96
+ closed: Uzavřeno
72
97
  count:
73
98
  debates_count:
74
99
  one: "%{count} debata"
@@ -80,29 +105,68 @@ cs:
80
105
  success: Debata byla úspěšně vytvořena.
81
106
  debate:
82
107
  participate: Účastnit se
108
+ edit:
109
+ back: Zpět
110
+ save: Uložit změny
111
+ title: Upravit debatu
83
112
  filters:
113
+ activity: Moje aktivita
84
114
  all: Vše
85
115
  category: Kategorie
86
116
  category_prompt: Vyberte kategorii
87
117
  citizens: Občané
118
+ commented: Okomentováno
119
+ my_debates: Moje rozpravy
88
120
  official: Oficiální
89
121
  origin: Původ
122
+ scope: Oblast působnosti
90
123
  search: Hledat
124
+ state: Stav
125
+ state_values:
126
+ closed: Uzavřeno
127
+ open: Otevřeno
128
+ user_groups: Skupiny
91
129
  filters_small_view:
92
130
  close_modal: Zavřít okno
93
131
  filter: Filtr
94
132
  filter_by: Filtrovat podle
95
133
  unfold: Rozbalit
134
+ form:
135
+ select_a_category: Vyberte kategorii
96
136
  index:
97
137
  new_debate: Nová debata
98
138
  new:
99
139
  back: Zpět
100
140
  create: Vytvořit
101
- select_a_category: Vyberte kategorii
102
141
  title: Nová debata
142
+ orders:
143
+ commented: Nejvíce komentované
144
+ label: Řazení rozprav podle
145
+ random: Náhodné pořadí
146
+ recent: Nejnovější
147
+ updated: Naposledy aktualizované
103
148
  show:
104
149
  back: Zpět na seznam
150
+ close_debate: Ukončit debatu
105
151
  date: Datum
152
+ debate_closed: Uzavřeno
153
+ debate_conclusions_are: 'Debata byla uzavřena dne %{date} těmito závěry:'
154
+ edit_conclusions: Upravit závěry
155
+ edit_debate: Upravit debatu
156
+ groups_count: Skupiny
157
+ last_comment_by: Poslední komentář od
158
+ no_comments_yet: Zatím žádné komentáře
159
+ participants_count: Účastníci
160
+ update:
161
+ invalid: Při aktualizaci rozpravy došlo k chybě.
162
+ success: Debata byla úspěšně aktualizována.
163
+ versions:
164
+ debates:
165
+ back_to_resource: Přejít zpět k debatě
166
+ index:
167
+ title: Verze
168
+ versions_list:
169
+ back_to_resource: Přejít zpět k debatě
106
170
  last_activity:
107
171
  new_debate_at_html: "<span>Nová debata na %{link}</span>"
108
172
  models:
@@ -139,6 +203,11 @@ cs:
139
203
  email_outro: Toto oznámení jste obdrželi, protože jste sledovali %{participatory_space_title}. Na předchozím odkazu můžete přestat přijímat oznámení.
140
204
  email_subject: Debaty jsou nyní k dispozici v %{participatory_space_title}
141
205
  notification_title: Nyní můžete začít <a href="%{resource_path}">novou debatu</a> v <a href="%{participatory_space_url}">%{participatory_space_title}</a>
206
+ debate_closed:
207
+ email_intro: 'Debata "%{resource_title}" byla ukončena. Závěry si můžete přečíst z její stránky:'
208
+ email_outro: Obdrželi jste toto oznámení, protože sledujete debatu "%{resource_title}". Můžete ji zrušit z předchozího odkazu.
209
+ email_subject: Debata "%{resource_title}" byla ukončena
210
+ notification_title: Debata <a href="%{resource_path}">%{resource_title}</a> byla ukončena.
142
211
  gamification:
143
212
  badges:
144
213
  commented_debates: