decidim-debates 0.27.4 → 0.28.0.rc5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/app/cells/decidim/debates/debate_activity_cell.rb +1 -12
  3. data/app/cells/decidim/debates/debate_card_metadata_cell.rb +43 -0
  4. data/app/cells/decidim/debates/debate_cell.rb +6 -1
  5. data/app/cells/decidim/debates/debate_l_cell.rb +49 -0
  6. data/app/cells/decidim/debates/debate_s_cell.rb +21 -0
  7. data/app/commands/decidim/debates/admin/close_debate.rb +1 -1
  8. data/app/commands/decidim/debates/close_debate.rb +1 -1
  9. data/app/commands/decidim/debates/create_debate.rb +13 -4
  10. data/app/commands/decidim/debates/update_debate.rb +15 -2
  11. data/app/controllers/decidim/debates/admin/debate_closes_controller.rb +2 -2
  12. data/app/controllers/decidim/debates/admin/debates_controller.rb +5 -5
  13. data/app/controllers/decidim/debates/debates_controller.rb +7 -8
  14. data/app/events/decidim/debates/close_debate_event.rb +1 -1
  15. data/app/events/decidim/debates/create_debate_event.rb +1 -1
  16. data/app/forms/decidim/debates/admin/close_debate_form.rb +1 -1
  17. data/app/forms/decidim/debates/close_debate_form.rb +2 -2
  18. data/app/forms/decidim/debates/debate_form.rb +2 -2
  19. data/app/helpers/decidim/debates/application_helper.rb +42 -17
  20. data/app/jobs/decidim/debates/hide_all_created_by_author_job.rb +13 -0
  21. data/app/jobs/decidim/debates/settings_change_job.rb +2 -2
  22. data/app/models/decidim/debates/debate.rb +4 -4
  23. data/app/packs/entrypoints/decidim_debates.js +2 -0
  24. data/app/packs/images/decidim/gamification/badges/decidim_gamification_badges_commented_debates.svg +42 -1
  25. data/app/presenters/decidim/debates/admin_log/debate_presenter.rb +2 -2
  26. data/app/views/decidim/debates/admin/debate_closes/edit.html.erb +26 -14
  27. data/app/views/decidim/debates/admin/debates/_form.html.erb +40 -39
  28. data/app/views/decidim/debates/admin/debates/edit.html.erb +16 -6
  29. data/app/views/decidim/debates/admin/debates/index.html.erb +60 -58
  30. data/app/views/decidim/debates/admin/debates/new.html.erb +16 -6
  31. data/app/views/decidim/debates/debates/_close_debate_modal.html.erb +22 -11
  32. data/app/views/decidim/debates/debates/_debates.html.erb +11 -9
  33. data/app/views/decidim/debates/debates/_form.html.erb +10 -19
  34. data/app/views/decidim/debates/debates/edit.html.erb +16 -20
  35. data/app/views/decidim/debates/debates/index.html.erb +19 -23
  36. data/app/views/decidim/debates/debates/index.js.erb +3 -4
  37. data/app/views/decidim/debates/debates/new.html.erb +16 -20
  38. data/app/views/decidim/debates/debates/show.html.erb +106 -109
  39. data/app/views/decidim/debates/versions/show.html.erb +14 -5
  40. data/config/environment.rb +3 -0
  41. data/config/locales/ar.yml +1 -17
  42. data/config/locales/bg.yml +0 -4
  43. data/config/locales/ca.yml +11 -29
  44. data/config/locales/cs.yml +11 -29
  45. data/config/locales/de.yml +12 -30
  46. data/config/locales/el.yml +3 -28
  47. data/config/locales/en.yml +12 -30
  48. data/config/locales/es-MX.yml +11 -29
  49. data/config/locales/es-PY.yml +12 -30
  50. data/config/locales/es.yml +11 -29
  51. data/config/locales/eu.yml +42 -60
  52. data/config/locales/fi-plain.yml +11 -29
  53. data/config/locales/fi.yml +11 -29
  54. data/config/locales/fr-CA.yml +12 -30
  55. data/config/locales/fr.yml +12 -30
  56. data/config/locales/ga-IE.yml +0 -15
  57. data/config/locales/gl.yml +0 -16
  58. data/config/locales/hu.yml +3 -29
  59. data/config/locales/id-ID.yml +0 -15
  60. data/config/locales/is-IS.yml +0 -12
  61. data/config/locales/it.yml +0 -31
  62. data/config/locales/ja.yml +10 -31
  63. data/config/locales/lb.yml +0 -21
  64. data/config/locales/lt.yml +8 -29
  65. data/config/locales/lv.yml +0 -17
  66. data/config/locales/nl.yml +0 -28
  67. data/config/locales/no.yml +0 -31
  68. data/config/locales/pl.yml +12 -30
  69. data/config/locales/pt-BR.yml +0 -31
  70. data/config/locales/pt.yml +0 -31
  71. data/config/locales/ro-RO.yml +3 -29
  72. data/config/locales/ru.yml +0 -12
  73. data/config/locales/sk.yml +0 -17
  74. data/config/locales/sl.yml +0 -3
  75. data/config/locales/sq-AL.yml +1 -0
  76. data/config/locales/sr-CS.yml +0 -6
  77. data/config/locales/sv.yml +4 -31
  78. data/config/locales/th-TH.yml +1 -0
  79. data/config/locales/tr-TR.yml +1 -30
  80. data/config/locales/uk.yml +0 -12
  81. data/config/locales/zh-CN.yml +0 -29
  82. data/config/locales/zh-TW.yml +2 -28
  83. data/lib/decidim/debates/component.rb +5 -89
  84. data/lib/decidim/debates/engine.rb +29 -7
  85. data/lib/decidim/debates/seeds.rb +104 -0
  86. data/lib/decidim/debates/test/factories.rb +6 -3
  87. data/lib/decidim/debates/version.rb +1 -1
  88. metadata +29 -27
  89. data/app/cells/decidim/debates/debate_m/data.erb +0 -10
  90. data/app/cells/decidim/debates/debate_m/footer.erb +0 -10
  91. data/app/cells/decidim/debates/debate_m/multiple_dates.erb +0 -17
  92. data/app/cells/decidim/debates/debate_m/open_date.erb +0 -7
  93. data/app/cells/decidim/debates/debate_m/single_date.erb +0 -9
  94. data/app/cells/decidim/debates/debate_m/tags.erb +0 -1
  95. data/app/cells/decidim/debates/debate_m_cell.rb +0 -86
  96. data/app/controllers/decidim/debates/widgets_controller.rb +0 -19
  97. data/app/views/decidim/debates/debates/_count.html.erb +0 -1
  98. data/app/views/decidim/debates/debates/_filters.html.erb +0 -34
  99. data/app/views/decidim/debates/debates/_filters_small_view.html.erb +0 -18
@@ -1,135 +1,132 @@
1
1
  <% add_decidim_meta_tags({
2
- description: translated_attribute(debate.description),
3
- title: present(debate).title,
4
- url: debate_url(debate.id)
5
- }) %>
2
+ description: translated_attribute(debate.description),
3
+ title: present(debate).title,
4
+ url: debate_url(debate.id)
5
+ }) %>
6
6
 
7
7
  <%
8
8
  edit_link(
9
9
  resource_locator(debate).edit,
10
10
  :update,
11
11
  :debate,
12
- debate: debate
12
+ debate:
13
13
  )
14
14
  %>
15
15
 
16
- <div class="row column view-header">
17
- <div class="m-bottom">
18
- <%= link_to debates_path, class: "small hollow js-back-to-list" do %>
19
- <%= icon "chevron-left", class: "icon--small", role: "img", "aria-hidden": true %>
20
- <%= t(".back") %>
21
- <% end %>
22
- </div>
23
-
24
- <h2 class="heading3">
25
- <%== present(debate).title(links: true, html_escape: true) %>
26
- </h2>
27
-
28
- <% debate_presenter = Decidim::Debates::DebatePresenter.new(debate) %>
29
- <%= cell "decidim/author", debate_presenter.author, from: debate, context: { extra_classes: ["author-data--small"] } %>
30
- </div>
31
- <div class="row">
32
- <div class="columns section view-side mediumlarge-4 mediumlarge-push-8 large-3 large-push-9">
33
- <% if allowed_to?(:edit, :debate, debate: debate) %>
34
- <%= link_to t(".edit_debate"), edit_debate_path(debate), class: "button secondary hollow expanded button-sc button--icon follow-button" %>
35
- <% elsif admin_allowed_to?(:update, :debate, debate: debate) %>
36
- <%= link_to t(".edit_debate"), resource_locator(debate).edit, class: "button secondary hollow expanded button-sc button--icon follow-button" %>
37
- <% end %>
38
- <% close_debate_action_text = (debate.closed? ? ".edit_conclusions" : ".close_debate" ) %>
39
- <% if allowed_to?(:close, :debate, debate: debate) %>
40
- <button type="button" data-open="closeDebateModal" title="<%= t(close_debate_action_text) %>" aria-controls="closeDebateModal" aria-haspopup="dialog" tabindex="0" class="button hollow expanded button-sc button--icon follow-button">
41
- <%= t(close_debate_action_text) %>
42
- </button>
43
- <% elsif admin_allowed_to?(:close, :debate, debate: debate) %>
44
- <%= 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" %>
45
- <% end %>
46
- <div class="card extra">
47
- <div class="card__content">
48
- <%= cell("decidim/date_range", { start: debate.start_time, end: debate.end_time }) %>
49
-
50
- <% if endorsements_enabled? && allowed_to?(:endorse, :debate, debate: debate) %>
51
- <div class="row collapse buttons__row">
52
- <div class="column small-12 collapse">
53
- <%= endorsement_buttons_cell(debate) %>
54
- </div>
55
- </div>
56
- <% end %>
57
- <%= follow_button_for(debate) %>
58
- </div>
59
- </div>
60
- <div class="card extra">
61
- <div class="definition-data">
62
- <div class="definition-data__item definition-data__item">
63
- <span class="definition-data__title">
64
- <%= t ".last_comment_by" %>
65
- </span>
66
- <span class="definition-data__text">
67
- <% if debate_presenter.last_comment_by %>
68
- <%= cell "decidim/author", debate_presenter.last_comment_by, context: { extra_classes: ["author-data--small"] } %>
69
- <% else %>
70
- <%= t ".no_comments_yet" %>
71
- <% end %>
72
- </span>
73
- </div>
16
+ <%=
17
+ render partial: "close_debate_modal", locals: {
18
+ debate:,
19
+ form: close_debate_form
20
+ }
21
+ %>
74
22
 
75
- <div class="definition-data__item definition-data__item--double">
76
- <span class="definition-data__title">
77
- <%= t ".participants_count" %>
78
- </span>
79
- <span class="definition-data__number"><%= debate_presenter.participants_count %></span>
80
- </div>
23
+ <%= render layout: "layouts/decidim/shared/layout_item", locals: { back_path: debates_path, commentable: debate } do %>
24
+ <section class="layout-main__section layout-main__heading">
25
+ <h1 class="h2 decorator">
26
+ <%== present(debate).title(links: true, html_escape: true) %>
27
+ </h1>
81
28
 
82
- <div class="definition-data__item definition-data__item--double">
83
- <span class="definition-data__title">
84
- <%= t ".groups_count" %>
85
- </span>
86
- <span class="definition-data__number"><%= debate_presenter.groups_count %></span>
87
- </div>
88
- </div>
89
- </div>
90
- <%= resource_reference(debate) %>
91
- <%= resource_version(debate_presenter, versions_path: debate_versions_path(debate)) %>
92
- <%= render partial: "decidim/shared/share_modal" %>
93
- <%= embed_modal_for debate_widget_url(debate, format: :js) %>
94
- </div>
95
- <div class="columns mediumlarge-8 mediumlarge-pull-4">
96
- <div class="section">
29
+ <% debate_presenter = Decidim::Debates::DebatePresenter.new(debate) %>
30
+ <div class="layout-author">
31
+ <%= cell "decidim/author", debate_presenter.author, skip_profile_link: true %>
97
32
  <% if debate.closed? %>
98
33
  <span class="success label proposal-status">
99
- <%= t(".debate_closed") %>
34
+ <%= t("debate_closed", scope: "decidim.debates.debates.show") %>
100
35
  </span>
101
36
  <% end %>
37
+ </div>
38
+ </section>
102
39
 
40
+ <section class="layout-main__section">
41
+ <div class="editor-content">
103
42
  <%= render_debate_description(debate) %>
43
+ </div>
44
+ </section>
104
45
 
105
- <% if debate.closed? %>
106
- <%= cell("decidim/announcement", { title: t(".debate_conclusions_are", date: l(debate.closed_at, format: :decidim_short)), body: simple_format(translated_attribute(debate.conclusions)) }, callout_class: "success") %>
107
- <% end %>
46
+ <% if debate.closed? || translated_attribute(debate.instructions).present? || translated_attribute(debate.information_updates).present? %>
47
+ <section class="layout-main__section">
48
+ <%= cell("decidim/announcement", { title: t("debate_conclusions_are", scope: "decidim.debates.debates.show", date: l(debate.closed_at, format: :decidim_short)), body: simple_format(translated_attribute(debate.conclusions)) }, callout_class: "success") if debate.closed? %>
108
49
 
109
- <% if translated_attribute(debate.instructions).present? %>
110
- <div class="callout secondary">
111
- <%= decidim_sanitize_editor_admin(simple_format(translated_attribute(debate.instructions), {}, sanitize: false)) %>
112
- </div>
50
+ <%= cell("decidim/announcement", decidim_sanitize_editor_admin(simple_format(translated_attribute(debate.instructions), {}, sanitize: false))) if translated_attribute(debate.instructions).present? %>
51
+
52
+ <%= cell("decidim/announcement", decidim_sanitize_editor_admin(simple_format(translated_attribute(debate.information_updates), {}, sanitize: false)), callout_class: "success") if translated_attribute(debate.information_updates).present? %>
53
+ </section>
54
+ <% end %>
55
+
56
+ <section class="layout-main__section layout-main__buttons" data-buttons>
57
+ <% if endorsements_enabled? && allowed_to?(:endorse, :debate, debate: debate) %>
58
+ <%= endorsement_buttons_cell(debate) %>
59
+ <% end %>
60
+ <%= cell "decidim/comments_button", nil %>
61
+
62
+ <div class="ml-auto">
63
+ <%= render partial: "decidim/shared/tags", locals: { resource: debate } %>
64
+ </div>
65
+ </section>
66
+ <%= cell "decidim/endorsers_list", debate, layout: :full %>
67
+
68
+ <% content_for :aside do %>
69
+ <% if allowed_to?(:edit, :debate, debate: debate) || admin_allowed_to?(:update, :debate, debate: debate) || allowed_to?(:close, :debate, debate: debate) || admin_allowed_to?(:close, :debate, debate: debate) %>
70
+ <section class="layout-aside__section layout-aside__buttons">
71
+ <% if allowed_to?(:edit, :debate, debate: debate) %>
72
+ <%= link_to t("edit_debate", scope: "decidim.debates.debates.show"), edit_debate_path(debate), class: "button button__secondary button__xl w-full mb-4" %>
73
+ <% elsif admin_allowed_to?(:update, :debate, debate: debate) %>
74
+ <%= link_to t("edit_debate", scope: "decidim.debates.debates.show"), resource_locator(debate).edit, class: "button button__secondary button__xl w-full mb-4" %>
113
75
  <% end %>
114
- <% if translated_attribute(debate.information_updates).present? %>
115
- <div class="callout success">
116
- <%= decidim_sanitize_editor_admin(simple_format(translated_attribute(debate.information_updates), {}, sanitize: false)) %>
117
- </div>
76
+ <% close_debate_action_text = (debate.closed? ? "decidim.debates.debates.show.edit_conclusions" : "decidim.debates.debates.show.close_debate" ) %>
77
+ <% if allowed_to?(:close, :debate, debate: debate) %>
78
+ <button type="button" data-dialog-open="close-debate" title="<%= t(close_debate_action_text) %>" aria-controls="closeDebateModal" aria-haspopup="dialog" tabindex="0" class="button button__secondary button__xl w-full mb-4">
79
+ <%= t(close_debate_action_text) %>
80
+ </button>
81
+ <% elsif admin_allowed_to?(:close, :debate, debate: debate) %>
82
+ <%= 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 button__secondary button__xl w-full mb-4" %>
118
83
  <% end %>
84
+ </section>
85
+ <% end %>
86
+ <section class="layout-aside__section">
87
+ <div class="rounded p-4 bg-background mb-4 divide-y divide-gray-3 [&>*]:py-4 first:[&>*]:pt-0 last:[&>*]:pb-0">
88
+ <div class="text-gray-2 space-y-1.5">
89
+ <div class="text-sm flex items-center gap-1">
90
+ <%= icon "calendar-line", class: "inline-block" %>
91
+ <span class="text-gray-2 space-y-1.5"><%= t("start", scope: "decidim.debates.models.debate.fields") %> - <%= t("end", scope: "decidim.debates.models.debate.fields") %></span>
92
+ </div>
119
93
 
120
- <%= render partial: "decidim/shared/tags", locals: { resource: debate, tags_class_extra: "tags--debate" } %>
121
-
122
- <%= cell "decidim/endorsers_list", debate %>
94
+ <div class="text-md font-semibold [&>svg]:inline-block">
95
+ <%= format_date_range(debate.start_time, debate.end_time) || t("open", scope: "decidim.debates.debates.show") %>
96
+ </div>
97
+ </div>
98
+ <div class="text-gray-2 space-y-1.5">
99
+ <div class="text-sm grid grid-cols-2 gap-1">
100
+ <div>
101
+ <span class="block text-center mb-2">
102
+ <%= t("participants_count", scope: "decidim.debates.debates.show") %>
103
+ </span>
104
+ <span class="text-4xl font-bold block text-center"><%= debate_presenter.participants_count %></span>
105
+ </div>
106
+ <div>
107
+ <span class="block text-center mb-2">
108
+ <%= t("groups_count", scope: "decidim.debates.debates.show") %>
109
+ </span>
110
+ <span class="text-4xl font-bold block text-center"><%= debate_presenter.groups_count %></span>
111
+ </div>
112
+ </div>
113
+ </div>
123
114
  </div>
124
- </div>
125
- </div>
115
+ </section>
116
+ <section class="layout-aside__section actions__secondary">
117
+ <%= follow_button_for(debate) %>
118
+ <%= cell "decidim/share_button", nil %>
119
+ <%= cell "decidim/report_button", debate %>
120
+ </section>
126
121
 
127
- <%= comments_for debate %>
122
+ <% end %>
128
123
 
129
- <%= cell("decidim/flag_modal", debate) %>
130
- <%=
131
- render partial: "close_debate_modal", locals: {
132
- debate: debate,
133
- form: close_debate_form
134
- }
135
- %>
124
+ <% content_for :item_footer do %>
125
+ <%= comments_for debate %>
126
+ <ul class="metadata__container layout-main__section" data-metadata-footer>
127
+ <%= content_tag :li, resource_reference(debate), class: "metadata__item" %>
128
+ <%= content_tag :li, resource_version(debate, versions_path: debate_version_path(debate, debate.versions.count)), class: "metadata__item" %>
129
+ </ul>
130
+ <% end %>
131
+
132
+ <% end %>
@@ -1,10 +1,19 @@
1
- <div class="row">
1
+ <% content_for :aside do %>
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
+ <% end %>
9
+
10
+ <%= render layout: "layouts/decidim/shared/layout_item", locals: { back_path: debate_path(versioned_resource) } do %>
2
11
  <%= cell(
3
12
  "decidim/version",
4
13
  current_version,
5
14
  index: params[:id],
6
- versioned_resource: versioned_resource,
7
- versions_path: proc { url_for(action: :index) },
8
- i18n_scope: "decidim.debates.debates.versions.debates"
15
+ versioned_resource:,
16
+ path: proc { |extra_params| url_for(action: :show, id: params[:id], **extra_params) },
17
+ versions_path: proc { url_for(action: :index) }
9
18
  ) %>
10
- </div>
19
+ <% end %>
@@ -0,0 +1,3 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Empty line for playing nice with tpope/vim-rails
@@ -43,7 +43,6 @@ ar:
43
43
  confirm_destroy: هل أنت واثق؟
44
44
  destroy: حذف
45
45
  edit: تعديل
46
- new: جديد %{name}
47
46
  title: أفعال
48
47
  admin:
49
48
  debates:
@@ -63,9 +62,6 @@ ar:
63
62
  update:
64
63
  invalid: كانت هناك مشكلة في تحديث هذا النقاش.
65
64
  success: تم تحديث المناقشة بنجاح.
66
- models:
67
- debate:
68
- name: النقاش
69
65
  admin_log:
70
66
  debate:
71
67
  create: "%{user_name} خلق النقاش %{resource_name} على الفضاء %{space_name}"
@@ -82,9 +78,8 @@ ar:
82
78
  create:
83
79
  invalid: كانت هناك مشكلة في خلق النقاش.
84
80
  success: تم إنشاء النقاش بنجاح.
85
- debate:
86
- participate: مشاركة
87
81
  filters:
82
+ activity: نشاطي
88
83
  all: الكل
89
84
  category: الفئة
90
85
  category_prompt: اختر تصنيف
@@ -93,12 +88,6 @@ ar:
93
88
  origin: الأصل
94
89
  participants: المشاركون
95
90
  search: بحث
96
- user_groups: الفِرَق
97
- filters_small_view:
98
- close_modal: إغلاق مشروط
99
- filter: منقي
100
- filter_by: مصنف بواسطة
101
- unfold: كشف
102
91
  form:
103
92
  select_a_category: الرجاء تحديد الفئة
104
93
  index:
@@ -108,11 +97,8 @@ ar:
108
97
  create: إنشاء
109
98
  title: نقاش جديد
110
99
  show:
111
- date: التاريخ
112
100
  groups_count: الفِرَق
113
101
  participants_count: المشاركون
114
- last_activity:
115
- new_debate_at_html: "<span>مناقشة جديدة في %{link}</span>"
116
102
  models:
117
103
  debate:
118
104
  fields:
@@ -146,7 +132,6 @@ ar:
146
132
  email_intro: 'يمكنك الآن بدء مناقشات جديدة في %{participatory_space_title}! ابدأ المشاركة في هذه الصفحة:'
147
133
  email_outro: لقد تلقيت هذا الإشعار لأنك تتابع %{participatory_space_title}. يمكنك إيقاف تلقي الإخطارات باتباع الرابط السابق.
148
134
  email_subject: المناقشات المتاحة الآن في %{participatory_space_title}
149
- notification_title: يمكنك الآن بدء <a href="%{resource_path}">مناقشات جديدة</a> في <a href="%{participatory_space_url}">%{participatory_space_title}</a>
150
135
  gamification:
151
136
  badges:
152
137
  commented_debates:
@@ -158,7 +143,6 @@ ar:
158
143
  name: المناقشات
159
144
  next_level_in: شارك في %{score} مناقشات أخرى للوصول إلى المستوى التالي!
160
145
  unearned_another: هذا المشارك لم يشارك بعد في أي نقاش.
161
- unearned_own: لم تشارك في أي مناقشات حتى الآن.
162
146
  metrics:
163
147
  debates:
164
148
  description: عدد المناقشات التي تم إنشاؤها
@@ -9,10 +9,6 @@ bg:
9
9
  decidim:
10
10
  debates:
11
11
  debates:
12
- filters:
13
- user_groups: Групи
14
12
  show:
15
13
  groups_count: Групи
16
- last_comment_by: Последно коментиран от
17
- no_comments_yet: Все още няма коментари
18
14
  participants_count: Участници
@@ -52,7 +52,7 @@ ca:
52
52
  confirm_destroy: Segur?
53
53
  destroy: Suprimeix
54
54
  edit: Edita
55
- new: Nou %{name}
55
+ new: Afegir debat
56
56
  title: Accions
57
57
  admin:
58
58
  debate_closes:
@@ -82,9 +82,6 @@ ca:
82
82
  success: Debate actualizado correctament.
83
83
  exports:
84
84
  comments: Comentaris
85
- models:
86
- debate:
87
- name: Debat
88
85
  admin_log:
89
86
  debate:
90
87
  close: "La participant %{user_name} ha tancat el debat %{resource_name} a l'espai %{space_name}"
@@ -97,10 +94,9 @@ ca:
97
94
  invalid: S'ha produït un error en tancar el debat.
98
95
  success: Debat tancat correctament.
99
96
  close_debate_modal:
100
- close: Tanca
97
+ cancel: Cancel·lar
101
98
  description: Quin és el resum o conclusions d'aquest debat?
102
99
  send: Tancar el debat
103
- closed: Tancat
104
100
  count:
105
101
  debates_count:
106
102
  one: "%{count} debat"
@@ -108,8 +104,9 @@ ca:
108
104
  create:
109
105
  invalid: S'ha produït un error en crear el debat.
110
106
  success: Debat creat correctament.
111
- debate:
112
- participate: Participa
107
+ debates:
108
+ empty: Encara no hi ha cap debat.
109
+ empty_filters: No hi ha cap debat amb aquest criteri.
113
110
  edit:
114
111
  back: Enrere
115
112
  save: Guardar canvis
@@ -124,18 +121,12 @@ ca:
124
121
  official: Oficial
125
122
  origin: Origen
126
123
  participants: Participants
127
- scope: Àmbit
128
124
  search: Cerca
129
125
  state: Estat
130
126
  state_values:
131
127
  closed: Tancat
132
128
  open: Obert
133
- user_groups: Grups
134
- filters_small_view:
135
- close_modal: Tancar finestra
136
- filter: Filtra
137
- filter_by: Filtra per
138
- unfold: Desplega
129
+ user_group: Grups
139
130
  form:
140
131
  select_a_category: Si us plau, selecciona una categoria
141
132
  index:
@@ -151,36 +142,27 @@ ca:
151
142
  recent: Més recents
152
143
  updated: Recentment actualitzats
153
144
  show:
154
- back: Torna al llistat
155
145
  close_debate: Tancar el debat
156
- date: Data
157
146
  debate_closed: Tancat
158
147
  debate_conclusions_are: 'El debat es va tancar el %{date} amb aquestes conclusions:'
159
148
  edit_conclusions: Editar conclusions
160
149
  edit_debate: Editar debat
161
150
  groups_count: Grups
162
- last_comment_by: Darrer comentari de
163
- no_comments_yet: Encara no hi ha comentaris
164
151
  open: Debat obert
165
152
  participants_count: Participants
166
153
  update:
167
154
  invalid: S'ha produït un error en actualitzar aquest debat.
168
155
  success: Debat actualitzat correctament.
169
- versions:
170
- debates:
171
- back_to_resource: Tornar al debat
172
- index:
173
- title: Versions
174
- versions_list:
175
- back_to_resource: Tornar al debat
176
156
  last_activity:
177
- debate_updated_at_html: "<span>Debat actualitzat el %{link}</span>"
178
- new_debate_at_html: "<span>Nou debat a %{link}</span>"
157
+ debate_updated: 'Debat actualitzat:'
158
+ new_debate: 'Nou debat:'
179
159
  models:
180
160
  debate:
181
161
  fields:
162
+ end: Finalitza
182
163
  end_time: Data de finalització
183
164
  official_debate: Debat oficial
165
+ start: Comença
184
166
  start_time: Data d'inici
185
167
  title: Títol
186
168
  events:
@@ -209,7 +191,7 @@ ca:
209
191
  email_intro: 'Ja pots crear nous debats a %{participatory_space_title}! Comença a participar en aquesta pàgina:'
210
192
  email_outro: Has rebut aquesta notificació perquè estàs seguint %{participatory_space_title}. Pots deixar de rebre notificacions seguint l'enllaç anterior.
211
193
  email_subject: Els debats ja estan disponibles a %{participatory_space_title}
212
- notification_title: Ja pots començar <a href="%{resource_path}">nous debats</a> a <a href="%{participatory_space_url}">%{participatory_space_title}</a>
194
+ notification_title: Ara pots començar <a href="%{resource_path}">nous debats</a> a <a href="%{participatory_space_url}">%{participatory_space_title}</a>.
213
195
  debate_closed:
214
196
  affected_user:
215
197
  email_intro: 'El debat "%{resource_title}" s''ha tancat. Podeu llegir-ne les conclusions a la seva pàgina:'
@@ -54,7 +54,7 @@ cs:
54
54
  confirm_destroy: Jste si jisti?
55
55
  destroy: Odstranit
56
56
  edit: Upravit
57
- new: Nové %{name}
57
+ new: Nová debata
58
58
  title: Akce
59
59
  admin:
60
60
  debate_closes:
@@ -84,9 +84,6 @@ cs:
84
84
  success: Debata byla úspěšně aktualizována.
85
85
  exports:
86
86
  comments: Komentáře
87
- models:
88
- debate:
89
- name: Debata
90
87
  admin_log:
91
88
  debate:
92
89
  close: "%{user_name} ukončil debatu %{resource_name} ve skupině %{space_name}"
@@ -99,10 +96,9 @@ cs:
99
96
  invalid: Při uzavírání debaty došlo k chybě.
100
97
  success: Debata byla úspěšně uzavřena.
101
98
  close_debate_modal:
102
- close: Zavřít
99
+ cancel: Zrušit
103
100
  description: Jaké je shrnutí nebo závěr této debaty?
104
101
  send: Ukončit debatu
105
- closed: Uzavřeno
106
102
  count:
107
103
  debates_count:
108
104
  one: "%{count} debata"
@@ -112,8 +108,9 @@ cs:
112
108
  create:
113
109
  invalid: Při vytváření debaty došlo k chybě.
114
110
  success: Debata byla úspěšně vytvořena.
115
- debate:
116
- participate: Účastnit se
111
+ debates:
112
+ empty: Zatím nejsou žádné diskuse.
113
+ empty_filters: S těmito kritérii nejsou žádné diskuse.
117
114
  edit:
118
115
  back: Zpět
119
116
  save: Uložit změny
@@ -128,18 +125,12 @@ cs:
128
125
  official: Oficiální
129
126
  origin: Původ
130
127
  participants: Účastníci
131
- scope: Oblast působnosti
132
128
  search: Hledat
133
129
  state: Stav
134
130
  state_values:
135
131
  closed: Uzavřeno
136
132
  open: Otevřeno
137
- user_groups: Skupiny
138
- filters_small_view:
139
- close_modal: Zavřít okno
140
- filter: Filtr
141
- filter_by: Filtrovat podle
142
- unfold: Rozbalit
133
+ user_group: Skupiny
143
134
  form:
144
135
  select_a_category: Vyberte kategorii
145
136
  index:
@@ -155,36 +146,27 @@ cs:
155
146
  recent: Nejnovější
156
147
  updated: Naposledy aktualizované
157
148
  show:
158
- back: Zpět na seznam
159
149
  close_debate: Ukončit debatu
160
- date: Datum
161
150
  debate_closed: Uzavřeno
162
151
  debate_conclusions_are: 'Debata byla uzavřena dne %{date} těmito závěry:'
163
152
  edit_conclusions: Upravit závěry
164
153
  edit_debate: Upravit debatu
165
154
  groups_count: Skupiny
166
- last_comment_by: Poslední komentář od
167
- no_comments_yet: Zatím žádné komentáře
168
155
  open: Otevřená diskuse
169
156
  participants_count: Účastníci
170
157
  update:
171
158
  invalid: Při aktualizaci rozpravy došlo k chybě.
172
159
  success: Debata byla úspěšně aktualizována.
173
- versions:
174
- debates:
175
- back_to_resource: Přejít zpět k debatě
176
- index:
177
- title: Verze
178
- versions_list:
179
- back_to_resource: Přejít zpět k debatě
180
160
  last_activity:
181
- debate_updated_at_html: "<span>Debata byla aktualizována na %{link}</span>"
182
- new_debate_at_html: "<span>Nová debata na %{link}</span>"
161
+ debate_updated: 'Debata aktualizována:'
162
+ new_debate: 'Nová debata:'
183
163
  models:
184
164
  debate:
185
165
  fields:
166
+ end: Konec
186
167
  end_time: Datum ukončení
187
168
  official_debate: Oficiální debata
169
+ start: Začátek
188
170
  start_time: Datum zahájení
189
171
  title: Titul
190
172
  events:
@@ -213,7 +195,7 @@ cs:
213
195
  email_intro: 'Nyní můžete začít debaty v %{participatory_space_title}! Začněte se účastnit této stránky:'
214
196
  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í.
215
197
  email_subject: Debaty jsou nyní k dispozici v %{participatory_space_title}
216
- notification_title: Nyní můžete začít <a href="%{resource_path}">novou debatu</a> v <a href="%{participatory_space_url}">%{participatory_space_title}</a>
198
+ notification_title: Nyní můžete začít <a href="%{resource_path}">novou debatu</a> v <a href="%{participatory_space_url}">%{participatory_space_title}</a>.
217
199
  debate_closed:
218
200
  affected_user:
219
201
  email_intro: 'Debata "%{resource_title}" byla ukončena. Závěry si můžete přečíst z její stránky:'