decidim-debates 0.27.9 → 0.28.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/cells/decidim/debates/debate_activity_cell.rb +1 -12
- data/app/cells/decidim/debates/debate_card_metadata_cell.rb +43 -0
- data/app/cells/decidim/debates/debate_cell.rb +6 -1
- data/app/cells/decidim/debates/debate_l_cell.rb +49 -0
- data/app/cells/decidim/debates/debate_s_cell.rb +21 -0
- data/app/commands/decidim/debates/admin/close_debate.rb +1 -1
- data/app/commands/decidim/debates/close_debate.rb +1 -1
- data/app/commands/decidim/debates/create_debate.rb +13 -4
- data/app/commands/decidim/debates/update_debate.rb +15 -2
- data/app/controllers/decidim/debates/admin/debate_closes_controller.rb +2 -2
- data/app/controllers/decidim/debates/admin/debates_controller.rb +5 -5
- data/app/controllers/decidim/debates/debates_controller.rb +7 -9
- data/app/events/decidim/debates/close_debate_event.rb +1 -1
- data/app/events/decidim/debates/create_debate_event.rb +15 -1
- data/app/forms/decidim/debates/admin/close_debate_form.rb +1 -1
- data/app/forms/decidim/debates/close_debate_form.rb +2 -2
- data/app/forms/decidim/debates/debate_form.rb +2 -2
- data/app/helpers/decidim/debates/application_helper.rb +42 -17
- data/app/jobs/decidim/debates/hide_all_created_by_author_job.rb +13 -0
- data/app/jobs/decidim/debates/settings_change_job.rb +2 -2
- data/app/models/decidim/debates/debate.rb +4 -10
- data/app/packs/entrypoints/decidim_debates.js +2 -0
- data/app/packs/images/decidim/gamification/badges/decidim_gamification_badges_commented_debates.svg +42 -1
- data/app/permissions/decidim/debates/permissions.rb +0 -6
- data/app/presenters/decidim/debates/admin_log/debate_presenter.rb +6 -2
- data/app/presenters/decidim/debates/admin_log/value_types/debate_title_description_presenter.rb +1 -1
- data/app/presenters/decidim/debates/log/resource_presenter.rb +18 -0
- data/app/views/decidim/debates/admin/debate_closes/edit.html.erb +26 -14
- data/app/views/decidim/debates/admin/debates/_form.html.erb +40 -39
- data/app/views/decidim/debates/admin/debates/edit.html.erb +16 -6
- data/app/views/decidim/debates/admin/debates/index.html.erb +60 -58
- data/app/views/decidim/debates/admin/debates/new.html.erb +16 -6
- data/app/views/decidim/debates/debates/_close_debate_modal.html.erb +22 -11
- data/app/views/decidim/debates/debates/_debates.html.erb +5 -6
- data/app/views/decidim/debates/debates/_form.html.erb +10 -19
- data/app/views/decidim/debates/debates/edit.html.erb +16 -20
- data/app/views/decidim/debates/debates/index.html.erb +19 -23
- data/app/views/decidim/debates/debates/index.js.erb +3 -4
- data/app/views/decidim/debates/debates/new.html.erb +16 -20
- data/app/views/decidim/debates/debates/show.html.erb +106 -109
- data/app/views/decidim/debates/versions/show.html.erb +15 -6
- data/config/locales/ar.yml +7 -17
- data/config/locales/bg.yml +0 -231
- data/config/locales/ca.yml +14 -35
- data/config/locales/cs.yml +13 -34
- data/config/locales/de.yml +14 -35
- data/config/locales/el.yml +10 -28
- data/config/locales/en.yml +13 -34
- data/config/locales/es-MX.yml +12 -33
- data/config/locales/es-PY.yml +13 -34
- data/config/locales/es.yml +15 -36
- data/config/locales/eu.yml +16 -37
- data/config/locales/fi-plain.yml +12 -33
- data/config/locales/fi.yml +14 -35
- data/config/locales/fr-CA.yml +14 -35
- data/config/locales/fr.yml +14 -35
- data/config/locales/ga-IE.yml +0 -15
- data/config/locales/gl.yml +7 -16
- data/config/locales/hu.yml +13 -32
- data/config/locales/id-ID.yml +7 -15
- data/config/locales/is-IS.yml +3 -9
- data/config/locales/it.yml +7 -31
- data/config/locales/ja.yml +13 -37
- data/config/locales/lb.yml +7 -25
- data/config/locales/lt.yml +14 -29
- data/config/locales/lv.yml +6 -17
- data/config/locales/nl.yml +7 -28
- data/config/locales/no.yml +7 -31
- data/config/locales/pl.yml +12 -38
- data/config/locales/pt-BR.yml +7 -39
- data/config/locales/pt.yml +7 -31
- data/config/locales/ro-RO.yml +10 -29
- data/config/locales/ru.yml +3 -12
- data/config/locales/sk.yml +6 -17
- data/config/locales/sl.yml +0 -3
- data/config/locales/sr-CS.yml +0 -6
- data/config/locales/sv.yml +34 -54
- data/config/locales/tr-TR.yml +6 -38
- data/config/locales/uk.yml +3 -12
- data/config/locales/zh-CN.yml +7 -29
- data/config/locales/zh-TW.yml +9 -28
- data/lib/decidim/debates/component.rb +4 -88
- data/lib/decidim/debates/engine.rb +29 -7
- data/lib/decidim/debates/seeds.rb +104 -0
- data/lib/decidim/debates/test/factories.rb +19 -14
- data/lib/decidim/debates/version.rb +1 -1
- metadata +29 -30
- data/app/cells/decidim/debates/debate_m/data.erb +0 -10
- data/app/cells/decidim/debates/debate_m/footer.erb +0 -10
- data/app/cells/decidim/debates/debate_m/multiple_dates.erb +0 -17
- data/app/cells/decidim/debates/debate_m/open_date.erb +0 -7
- data/app/cells/decidim/debates/debate_m/single_date.erb +0 -9
- data/app/cells/decidim/debates/debate_m/tags.erb +0 -1
- data/app/cells/decidim/debates/debate_m_cell.rb +0 -86
- data/app/controllers/decidim/debates/widgets_controller.rb +0 -29
- data/app/views/decidim/debates/debates/_count.html.erb +0 -1
- data/app/views/decidim/debates/debates/_filters.html.erb +0 -34
- data/app/views/decidim/debates/debates/_filters_small_view.html.erb +0 -18
- data/config/locales/he-IL.yml +0 -1
- data/decidim-debates.gemspec +0 -32
@@ -1,26 +1,22 @@
|
|
1
|
-
|
1
|
+
<% content_for :aside do %>
|
2
|
+
<h1 class="title-decorator"><%= component_name %></h1>
|
2
3
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
<%=
|
7
|
-
</h2>
|
8
|
-
<% if current_settings.creation_enabled? && current_component.participatory_space.can_participate?(current_user) %>
|
9
|
-
<%= action_authorized_link_to :create, new_debate_path, class: "title-action__action button small", data: { "redirect_url" => new_debate_path } do %>
|
10
|
-
<%= t(".new_debate") %>
|
11
|
-
<%= icon "plus", role: "img", "aria-hidden": true %>
|
12
|
-
<% end %>
|
4
|
+
<% if current_settings.creation_enabled? && current_component.participatory_space.can_participate?(current_user) %>
|
5
|
+
<%= action_authorized_link_to :create, new_debate_path, class: "button button__xl button__secondary w-full", data: { "redirect_url" => new_debate_path } do %>
|
6
|
+
<span><%= t(".new_debate") %></span>
|
7
|
+
<%= icon "add-fill" %>
|
13
8
|
<% end %>
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
9
|
+
<% end %>
|
10
|
+
|
11
|
+
<%= render layout: "decidim/shared/filters", locals: { filter_sections:, search_variable:, skip_to_id: "debates" } do %>
|
12
|
+
<%= hidden_field_tag :order, order, id: nil, class: "order_filter" %>
|
13
|
+
<% end %>
|
14
|
+
<% end %>
|
15
|
+
|
16
|
+
<%= render layout: "layouts/decidim/shared/layout_two_col" do %>
|
17
|
+
<%= render partial: "decidim/shared/component_announcement" %>
|
18
|
+
|
19
|
+
<section id="debates" class="layout-main__section layout-main__heading">
|
24
20
|
<%= render partial: "debates" %>
|
25
|
-
</
|
26
|
-
|
21
|
+
</section>
|
22
|
+
<% end %>
|
@@ -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
|
-
$
|
5
|
+
$orderFilterInput.val('<%= order %>');
|
7
6
|
|
8
|
-
|
9
|
-
|
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
|
-
|
2
|
-
<div class="
|
3
|
-
|
4
|
-
<%=
|
5
|
-
|
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
|
-
<
|
9
|
-
|
10
|
-
|
11
|
-
<div class="row">
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|
-
|
18
|
+
<% end %>
|
23
19
|
</div>
|
24
|
-
|
20
|
+
<% end %>
|
@@ -1,135 +1,132 @@
|
|
1
1
|
<% add_decidim_meta_tags({
|
2
|
-
|
3
|
-
|
4
|
-
|
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:
|
12
|
+
debate:
|
13
13
|
)
|
14
14
|
%>
|
15
15
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
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
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
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
|
-
|
83
|
-
|
84
|
-
|
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("
|
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
|
-
|
106
|
-
|
107
|
-
|
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
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
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
|
-
<%
|
115
|
-
|
116
|
-
|
117
|
-
|
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
|
-
|
121
|
-
|
122
|
-
|
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
|
-
</
|
125
|
-
|
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
|
-
|
122
|
+
<% end %>
|
128
123
|
|
129
|
-
|
130
|
-
<%=
|
131
|
-
|
132
|
-
|
133
|
-
|
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
|
-
|
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
|
-
index: params[:id]
|
6
|
-
versioned_resource
|
7
|
-
|
8
|
-
|
14
|
+
index: params[:id],
|
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
|
-
|
19
|
+
<% end %>
|
data/config/locales/ar.yml
CHANGED
@@ -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: عدد المناقشات التي تم إنشاؤها
|