decidim-debates 0.27.6 → 0.28.0.rc4

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 +15 -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/permissions/decidim/debates/permissions.rb +0 -6
  26. data/app/presenters/decidim/debates/admin_log/debate_presenter.rb +2 -2
  27. data/app/views/decidim/debates/admin/debate_closes/edit.html.erb +26 -14
  28. data/app/views/decidim/debates/admin/debates/_form.html.erb +40 -39
  29. data/app/views/decidim/debates/admin/debates/edit.html.erb +16 -6
  30. data/app/views/decidim/debates/admin/debates/index.html.erb +60 -58
  31. data/app/views/decidim/debates/admin/debates/new.html.erb +16 -6
  32. data/app/views/decidim/debates/debates/_close_debate_modal.html.erb +22 -11
  33. data/app/views/decidim/debates/debates/_debates.html.erb +5 -6
  34. data/app/views/decidim/debates/debates/_form.html.erb +10 -19
  35. data/app/views/decidim/debates/debates/edit.html.erb +16 -20
  36. data/app/views/decidim/debates/debates/index.html.erb +19 -23
  37. data/app/views/decidim/debates/debates/index.js.erb +3 -4
  38. data/app/views/decidim/debates/debates/new.html.erb +16 -20
  39. data/app/views/decidim/debates/debates/show.html.erb +106 -109
  40. data/app/views/decidim/debates/versions/show.html.erb +14 -5
  41. data/config/locales/ar.yml +7 -17
  42. data/config/locales/bg.yml +0 -33
  43. data/config/locales/ca.yml +14 -35
  44. data/config/locales/cs.yml +13 -34
  45. data/config/locales/de.yml +14 -35
  46. data/config/locales/el.yml +10 -28
  47. data/config/locales/en.yml +13 -34
  48. data/config/locales/es-MX.yml +12 -33
  49. data/config/locales/es-PY.yml +13 -34
  50. data/config/locales/es.yml +15 -36
  51. data/config/locales/eu.yml +16 -37
  52. data/config/locales/fi-plain.yml +12 -33
  53. data/config/locales/fi.yml +12 -33
  54. data/config/locales/fr-CA.yml +14 -35
  55. data/config/locales/fr.yml +14 -35
  56. data/config/locales/ga-IE.yml +0 -15
  57. data/config/locales/gl.yml +7 -16
  58. data/config/locales/hu.yml +13 -32
  59. data/config/locales/id-ID.yml +7 -15
  60. data/config/locales/is-IS.yml +3 -9
  61. data/config/locales/it.yml +7 -31
  62. data/config/locales/ja.yml +13 -37
  63. data/config/locales/lb.yml +7 -25
  64. data/config/locales/lt.yml +14 -29
  65. data/config/locales/lv.yml +6 -17
  66. data/config/locales/nl.yml +7 -28
  67. data/config/locales/no.yml +7 -31
  68. data/config/locales/pl.yml +14 -33
  69. data/config/locales/pt-BR.yml +7 -39
  70. data/config/locales/pt.yml +7 -31
  71. data/config/locales/ro-RO.yml +10 -29
  72. data/config/locales/ru.yml +3 -12
  73. data/config/locales/sk.yml +6 -17
  74. data/config/locales/sl.yml +0 -3
  75. data/config/locales/sr-CS.yml +0 -6
  76. data/config/locales/sv.yml +11 -31
  77. data/config/locales/tr-TR.yml +6 -35
  78. data/config/locales/uk.yml +3 -12
  79. data/config/locales/zh-CN.yml +7 -29
  80. data/config/locales/zh-TW.yml +9 -28
  81. data/lib/decidim/debates/component.rb +4 -88
  82. data/lib/decidim/debates/engine.rb +29 -7
  83. data/lib/decidim/debates/seeds.rb +104 -0
  84. data/lib/decidim/debates/test/factories.rb +19 -14
  85. data/lib/decidim/debates/version.rb +1 -1
  86. metadata +31 -33
  87. data/app/cells/decidim/debates/debate_m/data.erb +0 -10
  88. data/app/cells/decidim/debates/debate_m/footer.erb +0 -10
  89. data/app/cells/decidim/debates/debate_m/multiple_dates.erb +0 -17
  90. data/app/cells/decidim/debates/debate_m/open_date.erb +0 -7
  91. data/app/cells/decidim/debates/debate_m/single_date.erb +0 -9
  92. data/app/cells/decidim/debates/debate_m/tags.erb +0 -1
  93. data/app/cells/decidim/debates/debate_m_cell.rb +0 -86
  94. data/app/controllers/decidim/debates/widgets_controller.rb +0 -29
  95. data/app/views/decidim/debates/debates/_count.html.erb +0 -1
  96. data/app/views/decidim/debates/debates/_filters.html.erb +0 -34
  97. data/app/views/decidim/debates/debates/_filters_small_view.html.erb +0 -18
  98. data/config/locales/he-IL.yml +0 -1
  99. data/decidim-debates.gemspec +0 -32
@@ -1,9 +1,8 @@
1
1
  var $debates = $('#debates');
2
- var $debatesCount = $('#debates-count');
3
2
  var $orderFilterInput = $('.order_filter');
4
3
 
5
4
  $debates.html('<%= j(render partial: "debates").strip.html_safe %>');
6
- $debatesCount.html('<%= j(render partial: "count").strip.html_safe %>');
5
+ $orderFilterInput.val('<%= order %>');
7
6
 
8
- var $dropdownMenu = $('.dropdown.menu', $debates);
9
- $dropdownMenu.foundation();
7
+ $debates[0].innerHTML = $debates[0].innerHTML.replace('data-open="false"', 'data-open="true"');
8
+ document.dispatchEvent(new CustomEvent("ajax:loaded", { detail: $debates[0] }));
@@ -1,24 +1,20 @@
1
- <div class="row columns">
2
- <div class="m-bottom">
3
- <%= link_to :back, class: "muted-link" do %>
4
- <%= icon "chevron-left", class: "icon--small", role: "img", "aria-hidden": true %>
5
- <%= t(".back") %>
6
- <% end %>
1
+ <%= render layout: "layouts/decidim/shared/layout_center" do %>
2
+ <div class="text-center py-10">
3
+ <h1 class="title-decorator inline-block text-left">
4
+ <%= t("title", scope: "decidim.debates.debates.new") %>
5
+ </h1>
7
6
  </div>
8
- <h2 class="section-heading"><%= t(".title") %></h2>
9
- </div>
10
-
11
- <div class="row">
12
- <div class="columns large-6 medium-centered">
13
- <div class="card">
14
- <div class="card__content">
15
- <%= decidim_form_for(@form) do |form| %>
16
- <%= render partial: "form", locals: { form: form } %>
17
- <div class="actions">
18
- <%= form.submit t(".create"), class: "button expanded", data: { disable: true } %>
19
- </div>
7
+ <div class="mb-24">
8
+ <%= decidim_form_for(@form) do |form| %>
9
+ <%= render partial: "form", locals: { form: } %>
10
+ <div class="form__wrapper-block flex-col-reverse md:flex-row justify-between">
11
+ <%= link_to :back, class: "button button__sm md:button__lg button__text-secondary" do %>
12
+ <%= icon "arrow-left-line", class: "fill-current" %>
13
+ <%= t("back", scope: "decidim.debates.debates.new") %>
20
14
  <% end %>
15
+ <%= form.submit t("create", scope: "decidim.debates.debates.new"), class: "button button__sm md:button__lg button__secondary", data: { disable: true } %>
16
+ </div>
21
17
  </div>
22
- </div>
18
+ <% end %>
23
19
  </div>
24
- </div>
20
+ <% end %>
@@ -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 %>
@@ -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,8 +78,6 @@ ar:
82
78
  create:
83
79
  invalid: كانت هناك مشكلة في خلق النقاش.
84
80
  success: تم إنشاء النقاش بنجاح.
85
- debate:
86
- participate: مشاركة
87
81
  filters:
88
82
  activity: نشاطي
89
83
  all: الكل
@@ -94,12 +88,6 @@ ar:
94
88
  origin: الأصل
95
89
  participants: المشاركون
96
90
  search: بحث
97
- user_groups: الفِرَق
98
- filters_small_view:
99
- close_modal: إغلاق مشروط
100
- filter: منقي
101
- filter_by: مصنف بواسطة
102
- unfold: كشف
103
91
  form:
104
92
  select_a_category: الرجاء تحديد الفئة
105
93
  index:
@@ -109,11 +97,8 @@ ar:
109
97
  create: إنشاء
110
98
  title: نقاش جديد
111
99
  show:
112
- date: التاريخ
113
100
  groups_count: الفِرَق
114
101
  participants_count: المشاركون
115
- last_activity:
116
- new_debate_at_html: "<span>مناقشة جديدة في %{link}</span>"
117
102
  models:
118
103
  debate:
119
104
  fields:
@@ -124,6 +109,13 @@ ar:
124
109
  events:
125
110
  debates:
126
111
  create_debate_event:
112
+ space_followers:
113
+ email_intro: |-
114
+ مرحبا،
115
+ نقاش الجديدة "%{resource_title}" تم إنشاؤها على %{space_title} مساحة المشاركة، والتحقق من ذلك والمساهمة:
116
+ email_outro: لقد تلقيت هذا الإشعار لأنك تتابع مساحة المشاركة %{space_title} . يمكنك إيقاف تلقي الإخطارات باتباع الرابط السابق.
117
+ email_subject: مناقشة جديدة "%{resource_title}" في %{space_title}
118
+ notification_title: تم إنشاء المناقشة <a href="%{resource_path}">%{resource_title}</a> في <a href="%{space_path}">%{space_title}</a>.
127
119
  user_followers:
128
120
  email_intro: |-
129
121
  مرحبًا ،
@@ -140,7 +132,6 @@ ar:
140
132
  email_intro: 'يمكنك الآن بدء مناقشات جديدة في %{participatory_space_title}! ابدأ المشاركة في هذه الصفحة:'
141
133
  email_outro: لقد تلقيت هذا الإشعار لأنك تتابع %{participatory_space_title}. يمكنك إيقاف تلقي الإخطارات باتباع الرابط السابق.
142
134
  email_subject: المناقشات المتاحة الآن في %{participatory_space_title}
143
- notification_title: يمكنك الآن بدء <a href="%{resource_path}">مناقشات جديدة</a> في <a href="%{participatory_space_url}">%{participatory_space_title}</a>
144
135
  gamification:
145
136
  badges:
146
137
  commented_debates:
@@ -152,7 +143,6 @@ ar:
152
143
  name: المناقشات
153
144
  next_level_in: شارك في %{score} مناقشات أخرى للوصول إلى المستوى التالي!
154
145
  unearned_another: هذا المشارك لم يشارك بعد في أي نقاش.
155
- unearned_own: لم تشارك في أي مناقشات حتى الآن.
156
146
  metrics:
157
147
  debates:
158
148
  description: عدد المناقشات التي تم إنشاؤها
@@ -8,40 +8,7 @@ bg:
8
8
  description: Описание
9
9
  decidim:
10
10
  debates:
11
- actions:
12
- new: Ново %{name}
13
11
  debates:
14
- debate:
15
- participate: Участвайте
16
- filters:
17
- user_groups: Групи
18
- filters_small_view:
19
- close_modal: Затвори прозореца
20
- filter: Филтър
21
- filter_by: Филтрирай по
22
- unfold: Разгъване
23
12
  show:
24
- back: Назад към списъка
25
- date: Дата
26
13
  groups_count: Групи
27
- last_comment_by: Последен коментар от
28
- no_comments_yet: Все още няма коментари
29
14
  participants_count: Участници
30
- versions:
31
- debates:
32
- back_to_resource: Назад към дебата
33
- index:
34
- title: Версии
35
- versions_list:
36
- back_to_resource: Назад към дебата
37
- last_activity:
38
- debate_updated_at_html: "<span>Дебатът беше актуализиран на: %{link}</span>"
39
- new_debate_at_html: "<span>Нов дебат на адрес: %{link}</span>"
40
- events:
41
- debates:
42
- creation_enabled:
43
- notification_title: Вече можете да създавате <a href="%{resource_path}">нови дебати</a> в(ъв) <a href="%{participatory_space_url}">%{participatory_space_title}</a>
44
- gamification:
45
- badges:
46
- commented_debates:
47
- unearned_own: Все още не сте участвали в нито един дебат.
@@ -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,6 @@ 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
113
107
  debates:
114
108
  empty: Encara no hi ha cap debat.
115
109
  empty_filters: No hi ha cap debat amb aquest criteri.
@@ -127,18 +121,12 @@ ca:
127
121
  official: Oficial
128
122
  origin: Origen
129
123
  participants: Participants
130
- scope: Àmbit
131
124
  search: Cerca
132
125
  state: Estat
133
126
  state_values:
134
127
  closed: Tancat
135
128
  open: Obert
136
- user_groups: Grups
137
- filters_small_view:
138
- close_modal: Tancar finestra
139
- filter: Filtra
140
- filter_by: Filtra per
141
- unfold: Desplega
129
+ user_group: Grups
142
130
  form:
143
131
  select_a_category: Si us plau, selecciona una categoria
144
132
  index:
@@ -154,36 +142,27 @@ ca:
154
142
  recent: Més recents
155
143
  updated: Recentment actualitzats
156
144
  show:
157
- back: Torna al llistat
158
145
  close_debate: Tancar el debat
159
- date: Data
160
146
  debate_closed: Tancat
161
147
  debate_conclusions_are: 'El debat es va tancar el %{date} amb aquestes conclusions:'
162
148
  edit_conclusions: Editar conclusions
163
149
  edit_debate: Editar debat
164
150
  groups_count: Grups
165
- last_comment_by: Darrer comentari de
166
- no_comments_yet: Encara no hi ha comentaris
167
151
  open: Debat obert
168
152
  participants_count: Participants
169
153
  update:
170
154
  invalid: S'ha produït un error en actualitzar aquest debat.
171
155
  success: Debat actualitzat correctament.
172
- versions:
173
- debates:
174
- back_to_resource: Tornar al debat
175
- index:
176
- title: Versions
177
- versions_list:
178
- back_to_resource: Tornar al debat
179
156
  last_activity:
180
- debate_updated_at_html: "<span>Debat actualitzat el %{link}</span>"
181
- new_debate_at_html: "<span>Nou debat a %{link}</span>"
157
+ debate_updated: 'Debat actualitzat:'
158
+ new_debate: 'Nou debat:'
182
159
  models:
183
160
  debate:
184
161
  fields:
162
+ end: Finalitza
185
163
  end_time: Data de finalització
186
164
  official_debate: Debat oficial
165
+ start: Comença
187
166
  start_time: Data d'inici
188
167
  title: Títol
189
168
  events:
@@ -192,10 +171,10 @@ ca:
192
171
  space_followers:
193
172
  email_intro: |-
194
173
  Hola,
195
- S'ha creat un nou debat "%{resource_title}" a l'espai participatiu %{participatory_space_title}, dona-hi una ullada i contribueix-hi:
196
- email_outro: Has rebut aquesta notificació perquè estàs seguint l'espai "%{participatory_space_title}". Pots deixar de rebre notificacions des de l'enllaç anterior.
197
- email_subject: Nou debat "%{resource_title}" a %{participatory_space_title}
198
- notification_title: S'ha creat el debat <a href="%{resource_path}">%{resource_title}</a> a <a href="%{participatory_space_url}">%{participatory_space_title}</a>.
174
+ S'ha creat un nou debat "%{resource_title}" a l'espai participatiu %{space_title}, fes-hi un cop d'ull i contribueix:
175
+ email_outro: Has rebut aquesta notificació perquè estàs seguint %{space_title}. Pots deixar de rebre notificacions seguint l'enllaç anterior.
176
+ email_subject: Nou debat "%{resource_title}" el dia %{space_title}
177
+ notification_title: El debat <a href="%{resource_path}">%{resource_title}</a> s'ha creat a <a href="%{space_path}">%{space_title}</a>.
199
178
  user_followers:
200
179
  email_intro: |-
201
180
  Hola,
@@ -205,14 +184,14 @@ ca:
205
184
  notification_title: <a href="%{author_path}">%{author_name} %{author_nickname}</a> ha creat el debat <a href="%{resource_path}">%{resource_title}</a>.
206
185
  creation_disabled:
207
186
  email_intro: 'La creació de debats ja no està activa a %{participatory_space_title}. Encara pots participar en debats oberts des d''aquesta pàgina:'
208
- email_outro: Has rebut aquesta notificació perquè estàs seguint l'espai "%{participatory_space_title}". Pots deixar de rebre notificacions seguint l'enllaç anterior.
187
+ email_outro: Has rebut aquesta notificació perquè estàs seguint l'espai %{participatory_space_title}. Pots deixar de rebre notificacions seguint l'enllaç anterior.
209
188
  email_subject: S'ha desactivat la creació de debats a %{participatory_space_title}
210
189
  notification_title: La creació de debats està deshabilitada a l'espai <a href="%{participatory_space_url}">%{participatory_space_title}</a>
211
190
  creation_enabled:
212
191
  email_intro: 'Ja pots crear nous debats a %{participatory_space_title}! Comença a participar en aquesta pàgina:'
213
- email_outro: Has rebut aquesta notificació perquè estàs seguint l'espai "%{participatory_space_title}". Pots deixar de rebre notificacions seguint l'enllaç anterior.
192
+ email_outro: Has rebut aquesta notificació perquè estàs seguint %{participatory_space_title}. Pots deixar de rebre notificacions seguint l'enllaç anterior.
214
193
  email_subject: Els debats ja estan disponibles a %{participatory_space_title}
215
- 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>.
216
195
  debate_closed:
217
196
  affected_user:
218
197
  email_intro: 'El debat "%{resource_title}" s''ha tancat. Podeu llegir-ne les conclusions a la seva pàgina:'