decidim-participatory_processes 0.20.0 → 0.23.1.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/decidim/participatory_processes/admin/participatory_processes.js.es6 +6 -0
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/_all_processes.erb +4 -1
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/show.erb +5 -9
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes/single_process.erb +10 -5
- data/app/cells/decidim/participatory_processes/content_blocks/highlighted_processes_cell.rb +1 -1
- data/app/cells/decidim/participatory_processes/process_filters/show.erb +2 -2
- data/app/cells/decidim/participatory_processes/process_group_m/footer.erb +4 -5
- data/app/cells/decidim/participatory_processes/process_m/data.erb +1 -1
- data/app/cells/decidim/participatory_processes/process_m/footer.erb +5 -6
- data/app/cells/decidim/participatory_processes/process_m/tags.erb +2 -2
- data/app/cells/decidim/participatory_processes/process_m_cell.rb +21 -0
- data/app/cells/decidim/participatory_processes/statistic/show.erb +9 -0
- data/app/cells/decidim/participatory_processes/statistic_cell.rb +20 -0
- data/app/cells/decidim/participatory_processes/statistics/show.erb +17 -0
- data/app/cells/decidim/participatory_processes/statistics_cell.rb +18 -0
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process.rb +13 -3
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process_admin.rb +2 -1
- data/app/commands/decidim/participatory_processes/admin/create_participatory_process_group.rb +3 -3
- data/app/commands/decidim/participatory_processes/admin/notify_role_assigned_to_participatory_process.rb +22 -0
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process.rb +26 -10
- data/app/commands/decidim/participatory_processes/admin/update_participatory_process_admin.rb +3 -1
- data/app/controllers/concerns/decidim/participatory_processes/admin/filterable.rb +27 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_exports_controller.rb +4 -0
- data/app/controllers/decidim/participatory_processes/admin/participatory_process_user_roles_controller.rb +2 -1
- data/app/controllers/decidim/participatory_processes/admin/participatory_processes_controller.rb +6 -16
- data/app/controllers/decidim/participatory_processes/participatory_processes_controller.rb +27 -4
- data/app/controllers/decidim/participatory_processes/{participatory_process_widgets_controller.rb → widgets_controller.rb} +2 -2
- data/app/events/decidim/participatory_process_role_assigned_event.rb +28 -0
- data/app/forms/decidim/participatory_processes/admin/participatory_process_form.rb +18 -6
- data/app/forms/decidim/participatory_processes/admin/participatory_process_group_form.rb +4 -1
- data/app/forms/decidim/participatory_processes/admin/participatory_process_import_form.rb +3 -0
- data/app/forms/decidim/participatory_processes/admin/participatory_process_user_role_form.rb +8 -2
- data/app/functions/decidim/participatory_processes/participatory_process_finder.rb +10 -0
- data/app/functions/decidim/participatory_processes/participatory_process_list.rb +11 -0
- data/app/helpers/decidim/participatory_processes/admin/participatory_process_helper.rb +23 -0
- data/app/helpers/decidim/participatory_processes/participatory_process_helper.rb +11 -0
- data/app/models/decidim/participatory_process.rb +25 -2
- data/app/models/decidim/participatory_process_group.rb +5 -0
- data/app/models/decidim/participatory_process_step.rb +3 -0
- data/app/models/decidim/participatory_process_user_role.rb +32 -0
- data/app/permissions/decidim/participatory_processes/permissions.rb +9 -0
- data/app/presenters/decidim/participatory_processes/participatory_process_metric_charts_presenter.rb +2 -2
- data/app/presenters/decidim/participatory_processes/participatory_process_stats_presenter.rb +32 -22
- data/app/queries/decidim/participatory_processes/stats_followers_count.rb +46 -0
- data/app/queries/decidim/participatory_processes/stats_participants_count.rb +100 -0
- data/app/serializers/decidim/participatory_processes/participatory_process_importer.rb +8 -4
- data/app/serializers/decidim/participatory_processes/participatory_process_serializer.rb +1 -0
- data/app/types/decidim/participatory_processes/participatory_process_group_type.rb +20 -0
- data/app/types/decidim/participatory_processes/participatory_process_input_filter.rb +13 -0
- data/app/types/decidim/participatory_processes/participatory_process_input_sort.rb +15 -0
- data/app/types/decidim/participatory_processes/participatory_process_step_type.rb +7 -4
- data/app/types/decidim/participatory_processes/participatory_process_type.rb +8 -4
- data/app/views/decidim/participatory_process_steps/_participatory_process_step.html.erb +1 -1
- data/app/views/decidim/participatory_processes/admin/participatory_processes/_form.html.erb +31 -0
- data/app/views/decidim/participatory_processes/admin/participatory_processes/index.html.erb +18 -15
- data/app/views/decidim/participatory_processes/participatory_process_groups/show.html.erb +3 -2
- data/app/views/decidim/participatory_processes/participatory_process_steps/index.html.erb +8 -3
- data/app/views/decidim/participatory_processes/participatory_processes/_metrics.html.erb +2 -2
- data/app/views/decidim/participatory_processes/participatory_processes/_promoted_process.html.erb +13 -6
- data/app/views/decidim/participatory_processes/participatory_processes/_statistics.html.erb +0 -10
- data/app/views/decidim/participatory_processes/participatory_processes/{statistics.html.erb → all_metrics.html.erb} +0 -0
- data/app/views/decidim/participatory_processes/participatory_processes/show.html.erb +39 -13
- data/app/views/layouts/decidim/_process_header.html.erb +1 -1
- data/app/views/layouts/decidim/_process_header_steps.html.erb +1 -1
- data/app/views/layouts/decidim/_process_navigation.html.erb +1 -1
- data/app/views/layouts/decidim/admin/participatory_process.html.erb +2 -2
- data/app/views/layouts/decidim/participatory_process.html.erb +1 -0
- data/config/locales/am-ET.yml +1 -0
- data/config/locales/ar.yml +18 -5
- data/config/locales/bg-BG.yml +19 -0
- data/config/locales/bg.yml +19 -0
- data/config/locales/ca.yml +38 -7
- data/config/locales/cs.yml +44 -13
- data/config/locales/da-DK.yml +1 -0
- data/config/locales/da.yml +1 -0
- data/config/locales/de.yml +55 -4
- data/config/locales/el-GR.yml +1 -0
- data/config/locales/el.yml +453 -0
- data/config/locales/en.yml +37 -6
- data/config/locales/eo.yml +1 -0
- data/config/locales/es-MX.yml +54 -4
- data/config/locales/es-PY.yml +54 -4
- data/config/locales/es.yml +55 -5
- data/config/locales/et-EE.yml +1 -0
- data/config/locales/et.yml +1 -0
- data/config/locales/eu.yml +6 -4
- data/config/locales/fi-plain.yml +32 -4
- data/config/locales/fi.yml +105 -77
- data/config/locales/fr-CA.yml +456 -0
- data/config/locales/fr.yml +35 -4
- data/config/locales/ga-IE.yml +1 -0
- data/config/locales/gl.yml +6 -4
- data/config/locales/hr-HR.yml +1 -0
- data/config/locales/hr.yml +1 -0
- data/config/locales/hu.yml +18 -8
- data/config/locales/id-ID.yml +6 -4
- data/config/locales/is-IS.yml +215 -0
- data/config/locales/is.yml +215 -0
- data/config/locales/it.yml +36 -8
- data/config/locales/ja-JP.yml +445 -0
- data/config/locales/ja.yml +445 -0
- data/config/locales/ko-KR.yml +1 -0
- data/config/locales/ko.yml +1 -0
- data/config/locales/lt-LT.yml +1 -0
- data/config/locales/lt.yml +1 -0
- data/config/locales/lv.yml +445 -0
- data/config/locales/mt-MT.yml +1 -0
- data/config/locales/mt.yml +1 -0
- data/config/locales/nl.yml +44 -16
- data/config/locales/no.yml +347 -25
- data/config/locales/om-ET.yml +1 -0
- data/config/locales/pl.yml +203 -152
- data/config/locales/pt-BR.yml +7 -5
- data/config/locales/pt.yml +175 -124
- data/config/locales/ro-RO.yml +461 -0
- data/config/locales/ru.yml +5 -3
- data/config/locales/sk-SK.yml +451 -0
- data/config/locales/sk.yml +451 -0
- data/config/locales/sl.yml +9 -0
- data/config/locales/so-SO.yml +1 -0
- data/config/locales/sr-CS.yml +33 -0
- data/config/locales/sv.yml +155 -111
- data/config/locales/ti-ER.yml +1 -0
- data/config/locales/tr-TR.yml +6 -4
- data/config/locales/uk.yml +5 -3
- data/config/locales/vi-VN.yml +1 -0
- data/config/locales/vi.yml +1 -0
- data/config/locales/zh-CN.yml +445 -0
- data/config/locales/zh-TW.yml +1 -0
- data/db/migrate/20200114142253_add_scope_type_to_participatory_processes.rb +7 -0
- data/db/migrate/20200204154917_add_show_metrics_to_participatory_processes.rb +7 -0
- data/db/migrate/20200320105908_index_foreign_keys_in_decidim_attachments.rb +7 -0
- data/db/migrate/20200320105924_index_foreign_keys_in_decidim_participatory_process_user_roles.rb +7 -0
- data/db/migrate/20200320105925_index_foreign_keys_in_decidim_participatory_processes.rb +8 -0
- data/db/migrate/20201006072346_fix_attachments_titles.rb +38 -0
- data/db/seeds/city.jpeg +0 -0
- data/db/seeds/city2.jpeg +0 -0
- data/lib/decidim/participatory_processes/admin_engine.rb +1 -0
- data/lib/decidim/participatory_processes/engine.rb +22 -5
- data/lib/decidim/participatory_processes/participatory_space.rb +22 -12
- data/lib/decidim/participatory_processes/query_extensions.rb +40 -0
- data/lib/decidim/participatory_processes/test/factories.rb +23 -3
- data/lib/decidim/participatory_processes/version.rb +1 -1
- metadata +73 -14
- data/app/views/decidim/participatory_processes/participatory_process_widgets/show.html.erb +0 -17
@@ -7,7 +7,7 @@
|
|
7
7
|
<span class="timeline__date text-small">
|
8
8
|
<%= participatory_space_helpers.step_dates(participatory_process_step) %>
|
9
9
|
</span>
|
10
|
-
<
|
10
|
+
<h4 class="timeline__title heading4"><%= translated_attribute(participatory_process_step.title) %></h4>
|
11
11
|
</div>
|
12
12
|
<div class="timeline__content">
|
13
13
|
<%= translated_attribute(participatory_process_step.description).html_safe %>
|
@@ -116,6 +116,18 @@
|
|
116
116
|
|
117
117
|
<div class="row column">
|
118
118
|
<%= scopes_picker_field form, :scope_id, root: nil %>
|
119
|
+
|
120
|
+
<div class="row" id="scope-depth ">
|
121
|
+
<%= form.collection_select :scope_type_max_depth_id,
|
122
|
+
organization_scope_depths,
|
123
|
+
:id,
|
124
|
+
:name,
|
125
|
+
scope_type_depth_select_options,
|
126
|
+
scope_type_depth_select_html_options %>
|
127
|
+
<p class="help-text">
|
128
|
+
<%== t(".scope_type_max_depth_help") %>
|
129
|
+
</p>
|
130
|
+
</div>
|
119
131
|
</div>
|
120
132
|
|
121
133
|
<div class="row column">
|
@@ -147,6 +159,21 @@
|
|
147
159
|
</div>
|
148
160
|
</div>
|
149
161
|
|
162
|
+
<div class="card-divider">
|
163
|
+
<h2 class="card-title"><%= t(".related_processes") %></h2>
|
164
|
+
</div>
|
165
|
+
|
166
|
+
<div class="card-section">
|
167
|
+
<div class="row column">
|
168
|
+
<%= form.select(
|
169
|
+
:related_process_ids,
|
170
|
+
@form.processes.order(title: :asc).map{|process| [translated_attribute(process.title), process.id]},
|
171
|
+
{ include_blank: true },
|
172
|
+
{ multiple: true, class: "chosen-select" }
|
173
|
+
) %>
|
174
|
+
</div>
|
175
|
+
</div>
|
176
|
+
|
150
177
|
<div class="card-divider">
|
151
178
|
<h2 class="card-title"><%= t(".other") %></h2>
|
152
179
|
</div>
|
@@ -155,6 +182,10 @@
|
|
155
182
|
<div class="row column">
|
156
183
|
<%= form.check_box :show_statistics %>
|
157
184
|
</div>
|
185
|
+
|
186
|
+
<div class="row column">
|
187
|
+
<%= form.check_box :show_metrics %>
|
188
|
+
</div>
|
158
189
|
</div>
|
159
190
|
</div>
|
160
191
|
|
@@ -1,14 +1,20 @@
|
|
1
1
|
<%= render partial: "decidim/participatory_processes/admin/shared/secondary_nav" %>
|
2
2
|
|
3
|
-
<div class="card" id="processes">
|
3
|
+
<div class="card with-overflow" id="processes">
|
4
4
|
<div class="card-divider">
|
5
5
|
<h2 class="card-title">
|
6
6
|
<%= t("participatory_processes", scope: "decidim.admin.titles") %>
|
7
7
|
|
8
|
-
<% if
|
8
|
+
<% if allowed_to? :create, :process %>
|
9
|
+
<%= link_to t("actions.new_process", scope: "decidim.admin"),
|
10
|
+
["new", "participatory_process"],
|
11
|
+
class: "button tiny button--title" %>
|
12
|
+
<% end %>
|
13
|
+
|
14
|
+
<% if process_group %>
|
9
15
|
<span><</span>
|
10
|
-
<%= link_to translated_attribute(
|
11
|
-
edit_participatory_process_group_path(
|
16
|
+
<%= link_to translated_attribute(process_group.name),
|
17
|
+
edit_participatory_process_group_path(process_group) %>
|
12
18
|
<% end %>
|
13
19
|
|
14
20
|
<% if allowed_to? :import, :process %>
|
@@ -17,28 +23,23 @@
|
|
17
23
|
class: "button tiny button--title" %>
|
18
24
|
<% end %>
|
19
25
|
|
20
|
-
<% if allowed_to? :create, :process %>
|
21
|
-
<%= link_to t("actions.new_process", scope: "decidim.admin"),
|
22
|
-
["new", "participatory_process"],
|
23
|
-
class: "button tiny button--title" %>
|
24
|
-
<% end %>
|
25
|
-
|
26
26
|
<button data-toggle="process_groups" class="dropdown button tiny button--title">
|
27
27
|
<%= t("actions.filter.process_groups", scope: "decidim.admin") %>
|
28
28
|
</button>
|
29
29
|
<div id="process_groups" class="dropdown-pane" data-position="bottom" data-dropdown data-auto-focus="true">
|
30
30
|
<ul class="list-reset">
|
31
|
-
<%= link_to
|
32
|
-
<li><%= t("actions.filter.
|
31
|
+
<%= link_to query_params_with(decidim_participatory_process_group_id_eq: nil) do %>
|
32
|
+
<li><%= t("actions.filter.all_processes", scope: "decidim.admin") %></li>
|
33
33
|
<% end %>
|
34
|
-
<%
|
35
|
-
<%= link_to
|
36
|
-
<li><%=
|
34
|
+
<% process_groups_for_select.each do |group_name, group_id| %>
|
35
|
+
<%= link_to query_params_with(decidim_participatory_process_group_id_eq: group_id) do %>
|
36
|
+
<li><%= group_name %></li>
|
37
37
|
<% end %>
|
38
38
|
<% end %>
|
39
39
|
</ul>
|
40
40
|
</div>
|
41
41
|
</div>
|
42
|
+
<%= admin_filter_selector %>
|
42
43
|
<div class="card-section">
|
43
44
|
<div class="table-scroll">
|
44
45
|
<table class="table-list">
|
@@ -70,6 +71,8 @@
|
|
70
71
|
<% end %>
|
71
72
|
<% if allowed_to? :update, :process, process: process %>
|
72
73
|
<%= link_to translated_attribute(process.title), edit_participatory_process_path(process) %><br>
|
74
|
+
<% elsif allowed_to? :read, :component, process: process %>
|
75
|
+
<%= link_to translated_attribute(process.title), components_path(process) %><br>
|
73
76
|
<% elsif allowed_to? :preview, :process, process: process %>
|
74
77
|
<%= link_to translated_attribute(process.title), decidim_participatory_processes.participatory_process_path(process) %><br>
|
75
78
|
<% elsif allowed_to? :read, :moderation, process: process %>
|
@@ -1,6 +1,7 @@
|
|
1
|
+
<% add_decidim_page_title(translated_attribute(group.name)) %>
|
1
2
|
<% add_decidim_meta_tags(title: t("participatory_process_groups.show.title", scope: "decidim")) %>
|
2
3
|
|
3
|
-
<
|
4
|
+
<div class="wrapper">
|
4
5
|
<section id="processes-grid" class="section row collapse">
|
5
6
|
<h1 class="section-heading"><%= t("participatory_process_groups.show.group_participatory_processes", scope: "decidim", count: participatory_processes.count, group: translated_attribute(group.name)) %></h1>
|
6
7
|
<div class="row small-up-1 medium-up-2 large-up-3 card-grid">
|
@@ -8,4 +9,4 @@
|
|
8
9
|
</div>
|
9
10
|
</section>
|
10
11
|
<%= render_participatory_processes_hook(:process_group_highlighted_elements) %>
|
11
|
-
</
|
12
|
+
</div>
|
@@ -1,14 +1,19 @@
|
|
1
1
|
<% add_decidim_page_title(t("participatory_process_steps.index.title", scope: "decidim")) %>
|
2
2
|
|
3
|
-
<
|
3
|
+
<div class="steps">
|
4
4
|
<div class="row column">
|
5
5
|
<div class="row">
|
6
6
|
<div class="columns mediumlarge-9 large-7">
|
7
7
|
<div class="section">
|
8
|
-
|
8
|
+
<%= link_to participatory_process_path(current_participatory_space), class: "small hollow" do %>
|
9
|
+
<%= icon "chevron-left", class: "icon--small", role: "img", "aria-hidden": true %>
|
10
|
+
<%= t(".back_to_process") %>
|
11
|
+
<% end %>
|
12
|
+
|
13
|
+
<h3 class="section-heading"><%= t("participatory_process_steps.index.process_steps", scope: "decidim") %></h3>
|
9
14
|
<%= render partial: "timeline" %>
|
10
15
|
</div>
|
11
16
|
</div>
|
12
17
|
</div>
|
13
18
|
</div>
|
14
|
-
</
|
19
|
+
</div>
|
@@ -1,10 +1,10 @@
|
|
1
1
|
<div class="section" id="metrics">
|
2
|
-
<
|
2
|
+
<h3 class="section-heading"><%= t("decidim.pages.participatory_space.metrics.headline", name: translated_attribute(current_participatory_space.title)) %></h3>
|
3
3
|
<%= metrics.params %>
|
4
4
|
<div class="row mb-sm">
|
5
5
|
<%= metrics.highlighted %>
|
6
6
|
</div>
|
7
7
|
<div class="row column text-center">
|
8
|
-
<%= link_to t("decidim.pages.participatory_space.metrics.link"),
|
8
|
+
<%= link_to t("decidim.pages.participatory_space.metrics.link"), all_metrics_participatory_process_path(current_participatory_space) %>
|
9
9
|
</div>
|
10
10
|
</div>
|
data/app/views/decidim/participatory_processes/participatory_processes/_promoted_process.html.erb
CHANGED
@@ -1,12 +1,13 @@
|
|
1
|
-
<
|
1
|
+
<div class="card card--full card--process">
|
2
2
|
<div class="row collapse card--process__row">
|
3
3
|
<div class="columns mediumlarge-8 large-6 card--process__column">
|
4
4
|
<div class="card__content">
|
5
5
|
<%= link_to participatory_process_path(promoted_process), class: "card__link" do %>
|
6
|
-
<h2 class="card__title"><%= translated_attribute
|
6
|
+
<h2 class="card__title"><%= decidim_html_escape(translated_attribute(promoted_process.title)).html_safe %></h2>
|
7
7
|
<% end %>
|
8
8
|
<%= decidim_sanitize html_truncate(translated_attribute(promoted_process.short_description), length: 630, separator: "...") %>
|
9
|
-
<%= link_to participatory_process_path(promoted_process), class: "button
|
9
|
+
<%= link_to participatory_process_path(promoted_process), class: "button small hollow card__button" do %>
|
10
|
+
<span class="show-for-sr"><%= decidim_html_escape(translated_attribute(promoted_process.title)) %></span>
|
10
11
|
<%= t("participatory_processes.promoted_process.more_info", scope: "layouts.decidim") %>
|
11
12
|
<% end %>
|
12
13
|
</div>
|
@@ -16,8 +17,14 @@
|
|
16
17
|
style="background-image:url(<%= promoted_process.hero_image.url %>)">
|
17
18
|
<div class="card__content row collapse">
|
18
19
|
<div class="large-6 large-offset-6 columns">
|
19
|
-
<%= link_to
|
20
|
-
|
20
|
+
<%= link_to participatory_process_cta_path(promoted_process), class: "button expanded button--sc" do %>
|
21
|
+
<% if translated_in_current_locale?(promoted_process.active_step&.cta_text) %>
|
22
|
+
<span class="show-for-sr"><%= translated_attribute(promoted_process.active_step.cta_text) %></span>
|
23
|
+
<span aria-hidden="true"><%= translated_attribute(promoted_process.active_step.cta_text) %></span>
|
24
|
+
<% else %>
|
25
|
+
<span class="show-for-sr"><%= t(promoted_process.cta_button_text_key_accessible, resource_name: translated_attribute(promoted_process.title), scope: "layouts.decidim.participatory_processes.promoted_process") %></span>
|
26
|
+
<span aria-hidden="true"><%= t(promoted_process.cta_button_text_key, scope: "layouts.decidim.participatory_processes.promoted_process") %></span>
|
27
|
+
<% end %>
|
21
28
|
<% if promoted_process.active_step %>
|
22
29
|
<span class="button__info">
|
23
30
|
<%= t("participatory_processes.promoted_process.active_step", scope: "layouts.decidim") %> <%= translated_attribute promoted_process.active_step.title %>
|
@@ -29,4 +36,4 @@
|
|
29
36
|
</div>
|
30
37
|
</div>
|
31
38
|
</div>
|
32
|
-
</
|
39
|
+
</div>
|
@@ -1,10 +0,0 @@
|
|
1
|
-
<section class="extended" id="participatory_process-statistics" class="statistics">
|
2
|
-
<div class="row column">
|
3
|
-
<h4 class="section-heading"><%= t("statistics.headline", scope: "decidim.participatory_processes") %></h4>
|
4
|
-
</div>
|
5
|
-
<div class="row">
|
6
|
-
<div class="columns small-centered mediumlarge-12 large-12 process_stats">
|
7
|
-
<%= stats.highlighted %>
|
8
|
-
</div>
|
9
|
-
</div>
|
10
|
-
</section>
|
File without changes
|
@@ -1,17 +1,17 @@
|
|
1
1
|
<% add_decidim_meta_tags({
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
}) %>
|
2
|
+
image_url: current_participatory_space.hero_image.url,
|
3
|
+
description: translated_attribute(current_participatory_space.short_description),
|
4
|
+
url: participatory_process_url(current_participatory_space),
|
5
|
+
twitter_handler: current_organization.twitter_handler
|
6
|
+
}) %>
|
7
7
|
|
8
8
|
<%
|
9
|
-
edit_link(
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
)
|
9
|
+
edit_link(
|
10
|
+
resource_locator(current_participatory_space).edit,
|
11
|
+
:update,
|
12
|
+
:process,
|
13
|
+
process: current_participatory_space
|
14
|
+
)
|
15
15
|
%>
|
16
16
|
|
17
17
|
<%= participatory_space_floating_help %>
|
@@ -37,6 +37,29 @@ edit_link(
|
|
37
37
|
</div>
|
38
38
|
<%= attachments_for current_participatory_space %>
|
39
39
|
<%= render_hook(:participatory_space_highlighted_elements) %>
|
40
|
+
|
41
|
+
<% if related_processes.any? %>
|
42
|
+
<div class="section row collapse related_processes">
|
43
|
+
<h4 class="section-heading"><%= t "related_processes", scope: "decidim.participatory_processes.show" %></h4>
|
44
|
+
<div class="collapsible-list row small-up-1 medium-up-2 card-grid">
|
45
|
+
<% related_processes.each do |related_process| %>
|
46
|
+
<%= card_for(related_process) %>
|
47
|
+
<% end %>
|
48
|
+
</div>
|
49
|
+
</div>
|
50
|
+
<% end %>
|
51
|
+
|
52
|
+
<% if linked_assemblies.any? %>
|
53
|
+
<div class="section">
|
54
|
+
<h4 class="section-heading"><%= t("participatory_process.show.related_assemblies", scope: "decidim") %></h4>
|
55
|
+
<div class="row small-up-1 medium-up-2 card-grid">
|
56
|
+
<% linked_assemblies.each do |linked_assembly| %>
|
57
|
+
<%= card_for(linked_assembly) %>
|
58
|
+
<% end %>
|
59
|
+
</div>
|
60
|
+
</div>
|
61
|
+
<% end %>
|
62
|
+
|
40
63
|
</div>
|
41
64
|
<div class="section columns medium-5 mediumlarge-4 large-3">
|
42
65
|
<div class="card extra">
|
@@ -115,12 +138,15 @@ edit_link(
|
|
115
138
|
</div>
|
116
139
|
<%= resource_reference(current_participatory_space) %>
|
117
140
|
<%= render partial: "decidim/shared/share_modal" %>
|
118
|
-
<%= embed_modal_for
|
141
|
+
<%= embed_modal_for participatory_process_widget_url(current_participatory_space, format: :js) %>
|
119
142
|
</div>
|
120
143
|
</div>
|
121
144
|
|
122
145
|
<% if current_participatory_space.show_statistics? %>
|
123
|
-
<%=
|
146
|
+
<%= cell "decidim/participatory_processes/statistics", stats.collection %>
|
147
|
+
<% end %>
|
148
|
+
|
149
|
+
<% if current_participatory_space.show_metrics? %>
|
124
150
|
<%= render partial: "metrics" %>
|
125
151
|
<% end %>
|
126
152
|
</div>
|
@@ -14,7 +14,7 @@
|
|
14
14
|
<h2 class="text-highlight heading-small">
|
15
15
|
<% if current_participatory_space.hashtag.present? %>
|
16
16
|
<span class="process-header__hashtag">
|
17
|
-
<%= link_to "##{current_participatory_space.hashtag}", "https://twitter.com/hashtag/#{current_participatory_space.hashtag}", target: "_blank" %>
|
17
|
+
<%= link_to "##{decidim_html_escape(current_participatory_space.hashtag)}", "https://twitter.com/hashtag/#{decidim_html_escape(current_participatory_space.hashtag)}", target: "_blank" %>
|
18
18
|
</span>
|
19
19
|
<% end %>
|
20
20
|
<%= translated_attribute(current_participatory_space.subtitle) %>
|
@@ -30,7 +30,7 @@
|
|
30
30
|
class: "button small button--sc show-for-medium"
|
31
31
|
) %>
|
32
32
|
<% else %>
|
33
|
-
<%= link_to t(".view_steps"), decidim_participatory_processes.participatory_process_participatory_process_steps_path(current_participatory_space)
|
33
|
+
<%= link_to t(".view_steps"), decidim_participatory_processes.participatory_process_participatory_process_steps_path(current_participatory_space) %>
|
34
34
|
<% end %>
|
35
35
|
</div>
|
36
36
|
</div>
|
@@ -8,7 +8,7 @@
|
|
8
8
|
name: t(".process_menu_item"),
|
9
9
|
url: decidim_participatory_processes.participatory_process_path(participatory_space),
|
10
10
|
active: is_active_link?(decidim_participatory_processes.participatory_process_path(participatory_space), :exclusive) ||
|
11
|
-
is_active_link?(decidim_participatory_processes.
|
11
|
+
is_active_link?(decidim_participatory_processes.all_metrics_participatory_process_path(participatory_space), :exclusive)
|
12
12
|
}
|
13
13
|
] + components.map do |component|
|
14
14
|
{
|
@@ -15,9 +15,9 @@
|
|
15
15
|
<% if allowed_to? :read, :component %>
|
16
16
|
<li <% if is_active_link?(decidim_admin_participatory_processes.components_path(current_participatory_space)) %> class="is-active" <% end %>>
|
17
17
|
<%= aria_selected_link_to t("components", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin_participatory_processes.components_path(current_participatory_space) %>
|
18
|
-
<ul>
|
18
|
+
<ul id="components-list">
|
19
19
|
<% current_participatory_space.components.each do |component| %>
|
20
|
-
<% if component.manifest.admin_engine %>
|
20
|
+
<% if component.manifest.admin_engine && user_role_config.component_is_accessible?(component.manifest_name) %>
|
21
21
|
<li <% if is_active_link?(manage_component_path(component)) || is_active_link?(decidim_admin_participatory_processes.edit_component_path(current_participatory_space, component)) || is_active_link?(decidim_admin_participatory_processes.edit_component_permissions_path(current_participatory_space, component)) %> class="is-active" <% end %>>
|
22
22
|
<%= link_to manage_component_path(component) do %>
|
23
23
|
<%= translated_attribute component.name %>
|
@@ -0,0 +1 @@
|
|
1
|
+
am:
|
data/config/locales/ar.yml
CHANGED
@@ -22,9 +22,11 @@ ar:
|
|
22
22
|
participatory_structure: كيف تقرر ذلك
|
23
23
|
promoted: رقية
|
24
24
|
published_at: نشرت في
|
25
|
+
related_process_ids: العمليات ذات الصلة
|
25
26
|
scope_id: نطاق
|
26
|
-
scopes_enabled:
|
27
|
+
scopes_enabled: النطاقات المُفعّلَة
|
27
28
|
short_description: وصف قصير
|
29
|
+
show_metrics: اظهر المقاييس
|
28
30
|
show_statistics: عرض الإحصائيات
|
29
31
|
slug: سبيكة العنوان الشبكي
|
30
32
|
start_date: تاريخ البدء
|
@@ -84,8 +86,9 @@ ar:
|
|
84
86
|
duplicate: مكرر
|
85
87
|
edit: تعديل
|
86
88
|
filter:
|
87
|
-
|
89
|
+
all_processes: عرض جميع العمليات
|
88
90
|
process_groups: مجموعات العملية
|
91
|
+
import_process: استيراد
|
89
92
|
new_process: عملية جديدة
|
90
93
|
new_process_group: مجموعة عملية جديدة
|
91
94
|
new_process_step: مرحلة جديدة
|
@@ -158,6 +161,10 @@ ar:
|
|
158
161
|
update:
|
159
162
|
error: حدثت مشكلة أثناء تحديث مجموعة العملية التشاركية هذه.
|
160
163
|
success: تم تحديث مجموعة العملية التشاركية بنجاح.
|
164
|
+
participatory_process_imports:
|
165
|
+
new:
|
166
|
+
import: استيراد
|
167
|
+
title: استيراد مسار تشاركي
|
161
168
|
participatory_process_publications:
|
162
169
|
create:
|
163
170
|
error: كانت هناك مشكلة في نشر هذه العملية التشاركية.
|
@@ -199,13 +206,11 @@ ar:
|
|
199
206
|
destroy:
|
200
207
|
success: تمت إزالة المشرف بنجاح من هذه العملية التشاركية.
|
201
208
|
edit:
|
202
|
-
title: تحديث مسؤول عملية المشاركة.
|
203
209
|
update: تحديث
|
204
210
|
index:
|
205
211
|
process_admins_title: مدراء العملية التشاركية
|
206
212
|
new:
|
207
213
|
create: إنشاء
|
208
|
-
title: مشرف عملية تشاركية جديدة.
|
209
214
|
update:
|
210
215
|
error: حدثت مشكلة أثناء تحديث مسؤول لهذه العملية التشاركية.
|
211
216
|
success: تم تحديث المشرف بنجاح لهذه العملية التشاركية.
|
@@ -303,6 +308,9 @@ ar:
|
|
303
308
|
participatory_process_copies:
|
304
309
|
form:
|
305
310
|
slug_help: 'يتم استخدام slugs URL لإنشاء عناوين URL التي تشير إلى هذه العملية. يقبل الحروف والأرقام والشرطات فقط ، ويجب أن يبدأ بحرف. مثال: %{url}'
|
311
|
+
participatory_process_imports:
|
312
|
+
form:
|
313
|
+
document_legend: إضافة وثيقة
|
306
314
|
participatory_process_steps:
|
307
315
|
form:
|
308
316
|
cta_path_help: 'استخدم المسارات الجزئية ، وليس عناوين URL الكاملة هنا. يقبل الحروف والأرقام والشرطات والمائلة ، ويجب أن يبدأ بحرف. إذا لم يتم تعيينه ، فلن يظهر الزر. مثال: %{url}'
|
@@ -315,6 +323,7 @@ ar:
|
|
315
323
|
images: صور
|
316
324
|
metadata: البيانات الوصفية
|
317
325
|
other: آخر
|
326
|
+
related_processes: العمليات ذات الصلة
|
318
327
|
select_an_area: اختر منطقة
|
319
328
|
select_process_group: حدد مجموعة عملية
|
320
329
|
slug_help: 'يتم استخدام slugs URL لإنشاء عناوين URL التي تشير إلى هذه العملية. يقبل الحروف والأرقام والشرطات فقط ، ويجب أن يبدأ بحرف. مثال: %{url}'
|
@@ -386,6 +395,7 @@ ar:
|
|
386
395
|
participatory_scope: ما الذي تقرر
|
387
396
|
participatory_structure: كيف تقرر ذلك
|
388
397
|
private_space: هذه عملية خاصة
|
398
|
+
related_processes: العمليات ذات الصلة
|
389
399
|
scope: نطاق
|
390
400
|
start_date: تاريخ البدء
|
391
401
|
target: من يشارك
|
@@ -395,17 +405,20 @@ ar:
|
|
395
405
|
comments_count: تعليقات
|
396
406
|
debates_count: المناقشات
|
397
407
|
endorsements_count: موافقات
|
408
|
+
followers_count: المُتابِعون
|
398
409
|
headline: نشاط
|
399
410
|
meetings_count: اجتماعات
|
411
|
+
no_stats: لا توجد أية احصائيات إلى حد الآن.
|
400
412
|
orders_count: الدعم
|
401
413
|
pages_count: صفحات
|
414
|
+
participants_count: المشاركين
|
402
415
|
processes_count: العمليات
|
403
416
|
projects_count: مشاريع
|
404
417
|
proposals_count: اقتراحات
|
405
418
|
results_count: النتائج
|
419
|
+
supports_count: الدعم
|
406
420
|
surveys_count: الدراسات الاستقصائية
|
407
421
|
users_count: المشاركين
|
408
|
-
votes_count: الدعم
|
409
422
|
layouts:
|
410
423
|
decidim:
|
411
424
|
participatory_process_groups:
|