decidim-initiatives 0.24.0 → 0.25.0.rc1
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/initiatives/content_blocks/highlighted_initiatives/show.erb +2 -0
- data/app/cells/decidim/initiatives/initiative_m_cell.rb +1 -3
- data/app/commands/decidim/initiatives/attachment_methods.rb +2 -1
- data/app/controllers/concerns/decidim/initiatives/admin/initiative_admin.rb +7 -0
- data/app/controllers/decidim/initiatives/admin/initiatives_controller.rb +7 -1
- data/app/controllers/decidim/initiatives/admin/initiatives_permissions_controller.rb +27 -0
- data/app/controllers/decidim/initiatives/admin/initiatives_types_controller.rb +0 -2
- data/app/controllers/decidim/initiatives/initiatives_controller.rb +4 -0
- data/app/controllers/decidim/initiatives/versions_controller.rb +6 -0
- data/app/forms/decidim/initiatives/admin/initiative_type_form.rb +5 -1
- data/app/forms/decidim/initiatives/initiative_form.rb +2 -1
- data/app/helpers/decidim/initiatives/admin/initiatives_helper.rb +25 -0
- data/app/jobs/decidim/initiatives/export_initiatives_job.rb +12 -5
- data/app/models/decidim/initiative.rb +21 -15
- data/app/models/decidim/initiatives_type.rb +3 -1
- data/app/packs/entrypoints/decidim_initiatives.js +6 -0
- data/app/packs/entrypoints/decidim_initiatives_admin.js +3 -0
- data/app/packs/entrypoints/decidim_initiatives_initiatives_votes.js +1 -0
- data/app/packs/entrypoints/decidim_initiatives_initiatives_votes.scss +1 -0
- data/app/packs/entrypoints/decidim_initiatives_print.js +1 -0
- data/app/packs/entrypoints/decidim_initiatives_print.scss +1 -0
- data/app/{assets/images/decidim/gamification/badges/initiatives.svg → packs/images/decidim/gamification/badges/decidim_gamification_badges_initiatives.svg} +0 -0
- data/app/{assets/images/decidim/initiatives/icon.svg → packs/images/decidim/initiatives/decidim_initiatives.svg} +0 -0
- data/app/{assets/javascripts/decidim/initiatives/admin/initiatives_types.js.es6 → packs/src/decidim/initiatives/admin/initiatives_types.js} +0 -0
- data/app/{assets/javascripts → packs/src}/decidim/initiatives/admin/invite_users.js +2 -2
- data/app/packs/src/decidim/initiatives/application.js +3 -0
- data/app/{assets/javascripts → packs/src}/decidim/initiatives/identity_selector_dialog.js +2 -2
- data/app/{assets/javascripts → packs/src}/decidim/initiatives/scoped_type.js +2 -2
- data/app/{assets/stylesheet/decidim/initiatives/admin.css.scss → packs/stylesheets/decidim/initiatives/admin.scss} +0 -0
- data/app/{assets/stylesheet/decidim/initiatives/initiatives-votes.css.scss → packs/stylesheets/decidim/initiatives/initiatives-votes.scss} +0 -0
- data/app/{assets/stylesheet → packs/stylesheets}/decidim/initiatives/initiatives.scss +3 -3
- data/app/{assets/stylesheet/decidim/initiatives/popularity_item.css.scss → packs/stylesheets/decidim/initiatives/popularity_item.scss} +0 -0
- data/app/{assets/stylesheet/decidim/initiatives/print-initiative.css.scss → packs/stylesheets/decidim/initiatives/print-initiative.scss} +0 -0
- data/app/{assets/stylesheet/decidim/initiatives/statistics.css.scss → packs/stylesheets/decidim/initiatives/statistics.scss} +0 -0
- data/app/permissions/decidim/initiatives/permissions.rb +22 -16
- data/app/queries/decidim/initiatives/admin/admin_users.rb +13 -8
- data/app/views/decidim/initiatives/admin/committee_requests/index.html.erb +1 -1
- data/app/views/decidim/initiatives/admin/exports/_dropdown.html.erb +19 -3
- data/app/views/decidim/initiatives/admin/initiatives/_form.html.erb +1 -1
- data/app/views/decidim/initiatives/admin/initiatives/index.html.erb +17 -14
- data/app/views/decidim/initiatives/admin/initiatives/show.html.erb +1 -1
- data/app/views/decidim/initiatives/admin/initiatives_types/_form.html.erb +1 -1
- data/app/views/decidim/initiatives/admin/initiatives_types/index.html.erb +1 -1
- data/app/views/decidim/initiatives/committee_requests/new.html.erb +2 -2
- data/app/views/decidim/initiatives/create_initiative/_share_committee_link.html.erb +1 -1
- data/app/views/decidim/initiatives/initiatives/_author.html.erb +4 -4
- data/app/views/decidim/initiatives/initiatives/_committee_members.html.erb +1 -1
- data/app/views/decidim/initiatives/initiatives/_filters.html.erb +1 -1
- data/app/views/decidim/initiatives/initiatives/_form.html.erb +2 -2
- data/app/views/decidim/initiatives/initiatives/index.html.erb +0 -3
- data/app/views/decidim/initiatives/initiatives/print.html.erb +1 -1
- data/app/views/decidim/initiatives/initiatives/show.html.erb +2 -2
- data/app/views/layouts/decidim/_initiative_header.html.erb +1 -1
- data/app/views/layouts/decidim/admin/initiative.html.erb +4 -51
- data/app/views/layouts/decidim/admin/initiatives.html.erb +1 -1
- data/app/views/layouts/decidim/admin/initiatives_votes.pdf.erb +1 -1
- data/app/views/layouts/decidim/initiative_creation.html.erb +1 -1
- data/app/views/layouts/decidim/initiative_signature_creation.html.erb +1 -1
- data/config/assets.rb +12 -0
- data/config/locales/ar.yml +2 -5
- data/config/locales/ca.yml +5 -6
- data/config/locales/cs.yml +29 -30
- data/config/locales/de.yml +5 -6
- data/config/locales/el.yml +2 -5
- data/config/locales/en.yml +8 -6
- data/config/locales/es-MX.yml +5 -6
- data/config/locales/es-PY.yml +5 -6
- data/config/locales/es.yml +5 -6
- data/config/locales/eu.yml +2 -5
- data/config/locales/fi-plain.yml +5 -6
- data/config/locales/fi.yml +5 -6
- data/config/locales/fr-CA.yml +2 -6
- data/config/locales/fr-LU.yml +613 -0
- data/config/locales/fr.yml +2 -6
- data/config/locales/gl.yml +5 -5
- data/config/locales/hu.yml +2 -6
- data/config/locales/id-ID.yml +2 -5
- data/config/locales/is-IS.yml +2 -5
- data/config/locales/it.yml +120 -5
- data/config/locales/ja.yml +112 -20
- data/config/locales/lb-LU.yml +1 -0
- data/config/locales/lv.yml +2 -5
- data/config/locales/nl.yml +5 -6
- data/config/locales/no.yml +2 -6
- data/config/locales/pl.yml +6 -7
- data/config/locales/pt-BR.yml +187 -5
- data/config/locales/pt.yml +2 -5
- data/config/locales/ro-RO.yml +117 -6
- data/config/locales/ru.yml +2 -5
- data/config/locales/sk.yml +2 -5
- data/config/locales/sv.yml +57 -6
- data/config/locales/tr-TR.yml +2 -6
- data/config/locales/uk.yml +2 -5
- data/config/locales/zh-CN.yml +2 -6
- data/db/migrate/20191002082220_move_signature_type_to_initative_type.rb +1 -1
- data/lib/decidim/api/initiative_api_type.rb +4 -0
- data/lib/decidim/initiatives/admin_engine.rb +70 -25
- data/lib/decidim/initiatives/engine.rb +5 -11
- data/lib/decidim/initiatives/participatory_space.rb +16 -3
- data/lib/decidim/initiatives/version.rb +1 -1
- metadata +41 -55
- data/app/assets/config/admin_decidim_initiatives_manifest.js +0 -4
- data/app/assets/config/decidim_initiatives_manifest.css +0 -3
- data/app/assets/config/decidim_initiatives_manifest.js +0 -5
- data/app/assets/javascripts/decidim/initiatives/application.js +0 -1
- data/app/helpers/decidim/initiatives/admin/initiative_admin_menu_helper.rb +0 -15
- data/config/locales/ja-JP.yml +0 -529
@@ -3,7 +3,7 @@
|
|
3
3
|
module Decidim
|
4
4
|
module Initiatives
|
5
5
|
module Admin
|
6
|
-
# A class used to find the admins for an initiative.
|
6
|
+
# A class used to find the admins for an initiative or an organization initiatives.
|
7
7
|
class AdminUsers < Rectify::Query
|
8
8
|
# Syntactic sugar to initialize the class and return the queried objects.
|
9
9
|
#
|
@@ -12,27 +12,32 @@ module Decidim
|
|
12
12
|
new(initiative).query
|
13
13
|
end
|
14
14
|
|
15
|
+
# Syntactic sugar to initialize the class and return the queried objects.
|
16
|
+
#
|
17
|
+
# organization - an organization that needs to find its initiative admins
|
18
|
+
def self.for_organization(organization)
|
19
|
+
new(nil, organization).query
|
20
|
+
end
|
21
|
+
|
15
22
|
# Initializes the class.
|
16
23
|
#
|
17
24
|
# initiative - Decidim::Initiative
|
18
|
-
|
25
|
+
# organization - an organization that needs to find its initiative admins
|
26
|
+
def initialize(initiative, organization = nil)
|
19
27
|
@initiative = initiative
|
28
|
+
@organization = initiative&.organization || organization
|
20
29
|
end
|
21
30
|
|
22
31
|
# Finds organization admins and the users with role admin for the given initiative.
|
23
32
|
#
|
24
33
|
# Returns an ActiveRecord::Relation.
|
25
34
|
def query
|
26
|
-
|
35
|
+
organization.admins
|
27
36
|
end
|
28
37
|
|
29
38
|
private
|
30
39
|
|
31
|
-
attr_reader :initiative
|
32
|
-
|
33
|
-
def organization_admins
|
34
|
-
initiative.organization.admins
|
35
|
-
end
|
40
|
+
attr_reader :initiative, :organization
|
36
41
|
end
|
37
42
|
end
|
38
43
|
end
|
@@ -1,8 +1,24 @@
|
|
1
|
-
<span class="exports dropdown tiny button button--simple" data-toggle="
|
2
|
-
|
1
|
+
<span class="exports dropdown tiny button button--simple" data-toggle="<%= dropdown_id(collection_ids) %>">
|
2
|
+
<% if collection_ids.present? %>
|
3
|
+
<%= t("actions.export-selection", scope: "decidim.admin") %>
|
4
|
+
<% else %>
|
5
|
+
<%= t("actions.export", scope: "decidim.admin") %>
|
6
|
+
<% end %>
|
7
|
+
</span>
|
8
|
+
<div class="dropdown-pane"
|
9
|
+
id="<%= dropdown_id(collection_ids) %>"
|
10
|
+
data-dropdown
|
11
|
+
data-position=bottom
|
12
|
+
data-alignment=right
|
13
|
+
data-auto-focus="true"
|
14
|
+
data-close-on-click="true">
|
3
15
|
<ul class="vertical menu add-components">
|
4
16
|
<% %w{CSV JSON}.each do |format| %>
|
5
|
-
<li class="exports--format--<%= format.downcase %> exports--initiatives"
|
17
|
+
<li class="exports--format--<%= format.downcase %> exports--initiatives">
|
18
|
+
<%= link_to t("decidim.admin.exports.export_as", name: t("decidim.initiatives.admin.exports.initiatives"),
|
19
|
+
export_format: format.upcase),
|
20
|
+
export_initiatives_path(format: format, collection_ids: collection_ids) %>
|
21
|
+
</li>
|
6
22
|
<% end %>
|
7
23
|
</ul>
|
8
24
|
</div>
|
@@ -3,7 +3,9 @@
|
|
3
3
|
<h2 class="card-title">
|
4
4
|
<%= t "decidim.admin.titles.initiatives" %>
|
5
5
|
<div class="button--title">
|
6
|
-
|
6
|
+
<% if allowed_to? :export, :initiatives %>
|
7
|
+
<%= export_dropdowns(query) %>
|
8
|
+
<% end %>
|
7
9
|
</div>
|
8
10
|
</h2>
|
9
11
|
</div>
|
@@ -12,18 +14,18 @@
|
|
12
14
|
<div class="table-scroll">
|
13
15
|
<table class="table-list">
|
14
16
|
<thead>
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
17
|
+
<tr>
|
18
|
+
<th><%= t("models.initiatives.fields.id", scope: "decidim.admin") %></th>
|
19
|
+
<th><%= t("models.initiatives.fields.title", scope: "decidim.admin") %></th>
|
20
|
+
<th><%= t("models.initiatives.fields.state", scope: "decidim.admin") %></th>
|
21
|
+
<th><%= sort_link(query, :supports_count, t("models.initiatives.fields.supports_count", scope: "decidim.admin"), default_order: :desc) %></th>
|
22
|
+
<th><%= sort_link(query, :created_at, t("models.initiatives.fields.created_at", scope: "decidim.admin"), default_order: :desc) %></th>
|
23
|
+
<th><%= sort_link(query, :published_at, t("models.initiatives.fields.published_at", scope: "decidim.admin"), default_order: :desc) %></th>
|
24
|
+
<th class="actions"><%= t ".actions_title" %></th>
|
25
|
+
</tr>
|
24
26
|
</thead>
|
25
27
|
<tbody>
|
26
|
-
|
28
|
+
<% @initiatives.each do |initiative| %>
|
27
29
|
<tr>
|
28
30
|
<td><%= initiative.id %></td>
|
29
31
|
<td>
|
@@ -46,7 +48,7 @@
|
|
46
48
|
class: "action-icon--preview",
|
47
49
|
target: "_blank" %>
|
48
50
|
<% else %>
|
49
|
-
|
51
|
+
<span class="action-space icon"></span>
|
50
52
|
<% end %>
|
51
53
|
|
52
54
|
<% if allowed_to? :edit, :initiative, initiative: initiative %>
|
@@ -55,7 +57,7 @@
|
|
55
57
|
t("actions.configure", scope: "decidim.admin"),
|
56
58
|
class: "action-icon--edit" %>
|
57
59
|
<% else %>
|
58
|
-
|
60
|
+
<span class="action-space icon"></span>
|
59
61
|
<% end %>
|
60
62
|
|
61
63
|
<% if allowed_to?(:answer, :initiative, initiative: initiative) %>
|
@@ -72,8 +74,9 @@
|
|
72
74
|
<% else %>
|
73
75
|
<span class="action-space icon"></span>
|
74
76
|
<% end %>
|
77
|
+
<%= free_resource_permissions_link(initiative) || content_tag(:span, nil, class: "action-space icon") %>
|
75
78
|
</td>
|
76
|
-
|
79
|
+
<% end %>
|
77
80
|
</tbody>
|
78
81
|
</table>
|
79
82
|
<%= paginate @initiatives, theme: "decidim" %>
|
@@ -177,4 +177,4 @@ rectificació, cancel·lació i oposició, tal com estableix l'article 5 de l'es
|
|
177
177
|
</p>
|
178
178
|
|
179
179
|
<a href="#" onclick="window.print();return false;" class="button expanded"><%= t ".print" %></a>
|
180
|
-
<%=
|
180
|
+
<%= stylesheet_pack_tag "decidim_initiatives_print", media: "all" %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<h2 class="card-title">
|
4
4
|
<%= t "decidim.admin.titles.initiatives_types" %>
|
5
5
|
<%= link_to t("actions.new_initiative_type", scope: "decidim.admin"),
|
6
|
-
[
|
6
|
+
[:new, :initiatives_type],
|
7
7
|
class: "button tiny button--title" if allowed_to? :create, :initiative_type %>
|
8
8
|
</h2>
|
9
9
|
</div>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% add_decidim_meta_tags({
|
2
|
-
image_url: current_initiative.type.banner_image.
|
2
|
+
image_url: current_initiative.type.attached_uploader(:banner_image).path,
|
3
3
|
description: translated_attribute(current_initiative.description),
|
4
4
|
title: translated_attribute(current_initiative.title),
|
5
5
|
url: initiative_url(current_initiative.id),
|
@@ -7,7 +7,7 @@
|
|
7
7
|
}) %>
|
8
8
|
|
9
9
|
<% add_decidim_page_title(translated_attribute(current_initiative.title)) %>
|
10
|
-
<% provide :meta_image_url, current_initiative.type.banner_image.
|
10
|
+
<% provide :meta_image_url, current_initiative.type.attached_uploader(:banner_image).path %>
|
11
11
|
|
12
12
|
<br><br>
|
13
13
|
<div class="row column">
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="author-data__main ">
|
3
3
|
<div class="author author--inline">
|
4
4
|
<span class="author__avatar author__avatar--small">
|
5
|
-
<%= image_tag initiative.
|
5
|
+
<%= image_tag present(initiative.author).avatar_url, alt: t("decidim.author.avatar", name: decidim_sanitize(initiative.author_name)) %>
|
6
6
|
</span>
|
7
7
|
<span class="author__name">
|
8
8
|
<% if initiative.author.deleted? %>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<%= t(".deleted") %>
|
11
11
|
</span>
|
12
12
|
<% else %>
|
13
|
-
<%= initiative.author_name %>
|
13
|
+
<%= decidim_sanitize(initiative.author_name) %>
|
14
14
|
<% end %>
|
15
15
|
</span>
|
16
16
|
</div>
|
@@ -19,10 +19,10 @@
|
|
19
19
|
<% unless m.user.deleted? %>
|
20
20
|
<div class="author author--inline">
|
21
21
|
<span class="author__avatar author__avatar--small">
|
22
|
-
<%= image_tag m.user.avatar_url %>
|
22
|
+
<%= image_tag present(m.user).avatar_url %>
|
23
23
|
</span>
|
24
24
|
<span class="author__name">
|
25
|
-
<%= m.user.name %>
|
25
|
+
<%= decidim_sanitize(m.user.name) %>
|
26
26
|
</span>
|
27
27
|
</div>
|
28
28
|
<% end %>
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="filters__section">
|
3
3
|
<div class="filters__search">
|
4
4
|
<div class="input-group">
|
5
|
-
<%= form.search_field :search_text, label: false, class: "input-group-field", placeholder: t(".search"), title: t(".search") %>
|
5
|
+
<%= form.search_field :search_text, label: false, class: "input-group-field", placeholder: t(".search"), title: t(".search"), "aria-label": t(".search") %>
|
6
6
|
<div class="input-group-button">
|
7
7
|
<button type="submit" class="button">
|
8
8
|
<%= icon "magnifying-glass", aria_label: t(".search"), role: "img" %>
|
@@ -70,7 +70,7 @@
|
|
70
70
|
<% if @form.photos.any? %>
|
71
71
|
<% @form.photos.each do |photo| %>
|
72
72
|
<div class="callout gallery__item" data-closable>
|
73
|
-
<%= image_tag photo.thumbnail_url, class: "thumbnail", alt: photo.file.
|
73
|
+
<%= image_tag photo.thumbnail_url, class: "thumbnail", alt: photo.file.filename %>
|
74
74
|
<%= form.hidden_field :photos, multiple: true, value: photo.id, id: "photo-#{photo.id}" %>
|
75
75
|
<button class="close-button"
|
76
76
|
aria-label="<%= t("delete_attachment", scope: "decidim.initiatives.form") %>"
|
@@ -109,4 +109,4 @@
|
|
109
109
|
<%= render partial: "committee_members" %>
|
110
110
|
<% end %>
|
111
111
|
|
112
|
-
<%=
|
112
|
+
<%= javascript_pack_tag "decidim_initiatives" %>
|
@@ -153,4 +153,4 @@
|
|
153
153
|
</p>
|
154
154
|
|
155
155
|
<a href="#" onclick="window.print();return false;" class="button expanded"><%= t ".print" %></a>
|
156
|
-
<%=
|
156
|
+
<%= stylesheet_pack_tag "decidim_initiatives_print", media: "all" %>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<% add_decidim_meta_tags({
|
2
|
-
image_url: current_initiative.type.banner_image.
|
2
|
+
image_url: current_initiative.type.attached_uploader(:banner_image).path,
|
3
3
|
description: translated_attribute(current_initiative.description),
|
4
4
|
title: translated_attribute(current_initiative.title),
|
5
5
|
url: initiative_url(current_initiative.id),
|
@@ -18,7 +18,7 @@ edit_link(
|
|
18
18
|
<%= participatory_space_floating_help %>
|
19
19
|
|
20
20
|
<% add_decidim_page_title(translated_attribute(current_initiative.title)) %>
|
21
|
-
<% provide :meta_image_url, current_initiative.type.banner_image.
|
21
|
+
<% provide :meta_image_url, current_initiative.type.attached_uploader(:banner_image).path %>
|
22
22
|
<div class="row">
|
23
23
|
<% unless current_initiative.online_signature_type? %>
|
24
24
|
<div class="column">
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<div class="process-header">
|
2
2
|
<div class="process-header__inner">
|
3
3
|
<div class="row column process-header__main"
|
4
|
-
style="background-image:url(<%= current_participatory_space.type.banner_image.
|
4
|
+
style="background-image:url(<%= current_participatory_space.type.attached_uploader(:banner_image).path %>);">
|
5
5
|
</div>
|
6
6
|
<div class="process-header__container row collapse column">
|
7
7
|
<div class="columns mediumlarge-8 process-header__info">
|
@@ -1,54 +1,7 @@
|
|
1
|
-
<% content_for :
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
<% if allowed_to? :edit, :initiative, initiative: current_participatory_space %>
|
6
|
-
<li <% if is_active_link?(decidim_admin_initiatives.edit_initiative_path(current_participatory_space)) %> class="is-active" <% end %>>
|
7
|
-
<%= aria_selected_link_to t(".information"), decidim_admin_initiatives.edit_initiative_path(current_participatory_space) %>
|
8
|
-
</li>
|
9
|
-
<% end %>
|
10
|
-
|
11
|
-
<% if current_participatory_space.promoting_committee_enabled? && allowed_to?(:manage_membership, :initiative, initiative: current_participatory_space) %>
|
12
|
-
<li <% if is_active_link?(decidim_admin_initiatives.initiative_committee_requests_path(current_participatory_space)) %> class="is-active" <% end %>>
|
13
|
-
<%= aria_selected_link_to t(".committee_members"), decidim_admin_initiatives.initiative_committee_requests_path(current_participatory_space) %>
|
14
|
-
</li>
|
15
|
-
<% end %>
|
16
|
-
|
17
|
-
<% if allowed_to? :read, :component, initiative: current_participatory_space %>
|
18
|
-
<li <% if is_active_link?(decidim_admin_initiatives.components_path(current_participatory_space)) %> class="is-active" <% end %>>
|
19
|
-
<%= aria_selected_link_to t(".components"), decidim_admin_initiatives.components_path(current_participatory_space) %>
|
20
|
-
<ul>
|
21
|
-
<% current_participatory_space.components.each do |component| %>
|
22
|
-
<% if component.manifest.admin_engine %>
|
23
|
-
<li <% if is_active_link?(manage_component_path(component)) %> class="is-active" <% end %>>
|
24
|
-
<%= link_to manage_component_path(component) do %>
|
25
|
-
<%= translated_attribute component.name %>
|
26
|
-
<% if component.primary_stat.present? %>
|
27
|
-
<span class="component-counter <%= "component-counter--off" if component.primary_stat.zero? %>">
|
28
|
-
<%= component.primary_stat %>
|
29
|
-
</span>
|
30
|
-
<% end %>
|
31
|
-
<% end %>
|
32
|
-
</li>
|
33
|
-
<% end %>
|
34
|
-
<% end %>
|
35
|
-
</ul>
|
36
|
-
</li>
|
37
|
-
<% end %>
|
38
|
-
|
39
|
-
<% if allowed_to? :read, :attachment, initiative: current_participatory_space %>
|
40
|
-
<li <% if is_active_link?(decidim_admin_initiatives.initiative_attachments_path(current_participatory_space)) %> class="is-active" <% end %>>
|
41
|
-
<%= aria_selected_link_to t(".attachments"), decidim_admin_initiatives.initiative_attachments_path(current_participatory_space) %>
|
42
|
-
</li>
|
43
|
-
<% end %>
|
44
|
-
|
45
|
-
<% if allowed_to? :read, :moderation %>
|
46
|
-
<li <% if is_active_link?(decidim_admin_initiatives.moderations_path(current_participatory_space)) %> class="is-active" <% end %>>
|
47
|
-
<%= aria_selected_link_to t("moderations", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin_initiatives.moderations_path(current_participatory_space) %>
|
48
|
-
</li>
|
49
|
-
<% end %>
|
50
|
-
</ul>
|
51
|
-
</div>
|
1
|
+
<% content_for :sidebar_menu_nav do %>
|
2
|
+
<%= sidebar_menu(:admin_initiative_menu).render do
|
3
|
+
public_page_link decidim_initiatives.initiative_path(current_participatory_space)
|
4
|
+
end %>
|
52
5
|
<% end %>
|
53
6
|
|
54
7
|
<%= render "layouts/decidim/admin/application" do %>
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
5
5
|
<meta name="viewport" content="width=device-width">
|
6
|
-
<%=
|
6
|
+
<%= wicked_pdf_stylesheet_pack_tag "decidim_initiatives_initiatives_votes" %>
|
7
7
|
</head>
|
8
8
|
<body>
|
9
9
|
<%= yield %>
|
data/config/assets.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
base_path = File.expand_path("..", __dir__)
|
4
|
+
|
5
|
+
Decidim::Webpacker.register_path("#{base_path}/app/packs")
|
6
|
+
Decidim::Webpacker.register_entrypoints(
|
7
|
+
decidim_initiatives: "#{base_path}/app/packs/entrypoints/decidim_initiatives.js",
|
8
|
+
decidim_initiatives_admin: "#{base_path}/app/packs/entrypoints/decidim_initiatives_admin.js",
|
9
|
+
decidim_initiatives_print: "#{base_path}/app/packs/entrypoints/decidim_initiatives_print.js",
|
10
|
+
decidim_initiatives_initiatives_votes: "#{base_path}/app/packs/entrypoints/decidim_initiatives_initiatives_votes.js"
|
11
|
+
)
|
12
|
+
Decidim::Webpacker.register_stylesheet_import("stylesheets/decidim/initiatives/initiatives")
|
data/config/locales/ar.yml
CHANGED
@@ -66,6 +66,8 @@ ar:
|
|
66
66
|
actions:
|
67
67
|
new_initiative_type: نوع المبادرة الجديدة
|
68
68
|
menu:
|
69
|
+
components: المكونات
|
70
|
+
information: معلومات
|
69
71
|
initiatives: المبادرات
|
70
72
|
initiatives_types: أنواع المبادرة
|
71
73
|
models:
|
@@ -439,11 +441,6 @@ ar:
|
|
439
441
|
vote: إشارة
|
440
442
|
layouts:
|
441
443
|
decidim:
|
442
|
-
admin:
|
443
|
-
initiative:
|
444
|
-
committee_members: أعضاء اللجنة
|
445
|
-
components: المكونات
|
446
|
-
information: معلومات
|
447
444
|
initiative_creation_header:
|
448
445
|
back: الى الخلف
|
449
446
|
fill_data: إنشاء
|
data/config/locales/ca.yml
CHANGED
@@ -85,8 +85,13 @@ ca:
|
|
85
85
|
search_placeholder:
|
86
86
|
title_or_description_or_id_string_or_author_name_or_author_nickname_cont: Cercar %{collection} per títol, descripció, ID o autoria.
|
87
87
|
menu:
|
88
|
+
attachments: Adjunts
|
89
|
+
committee_members: Membres de la comissió
|
90
|
+
components: Components
|
91
|
+
information: Informació
|
88
92
|
initiatives: Iniciatives
|
89
93
|
initiatives_types: Tipus d'iniciatives
|
94
|
+
moderations: Moderacions
|
90
95
|
models:
|
91
96
|
initiatives:
|
92
97
|
fields:
|
@@ -580,12 +585,6 @@ ca:
|
|
580
585
|
vote: Signar
|
581
586
|
layouts:
|
582
587
|
decidim:
|
583
|
-
admin:
|
584
|
-
initiative:
|
585
|
-
attachments: Adjunts
|
586
|
-
committee_members: Membres del comitè
|
587
|
-
components: Components
|
588
|
-
information: Informació
|
589
588
|
initiative_creation_header:
|
590
589
|
back: Tornar
|
591
590
|
fill_data: Crear
|