decidim-assemblies 0.6.8 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/constraints/decidim/assemblies/current_assembly.rb +7 -1
- data/app/controllers/concerns/decidim/assemblies/needs_assembly.rb +5 -1
- data/app/controllers/decidim/assemblies/admin/assemblies_controller.rb +7 -2
- data/app/controllers/decidim/assemblies/admin/assembly_attachments_controller.rb +1 -1
- data/app/controllers/decidim/assemblies/assemblies_controller.rb +6 -0
- data/app/controllers/decidim/assemblies/assembly_widgets_controller.rb +1 -1
- data/app/forms/decidim/assemblies/admin/assembly_copy_form.rb +2 -2
- data/app/forms/decidim/assemblies/admin/assembly_form.rb +3 -3
- data/app/models/decidim/assembly.rb +5 -1
- data/app/views/decidim/assemblies/_assembly.html.erb +1 -1
- data/app/views/decidim/assemblies/admin/assemblies/_form.html.erb +4 -1
- data/app/views/decidim/assemblies/admin/assembly_copies/_form.html.erb +4 -1
- data/app/views/decidim/assemblies/assemblies/_promoted_assembly.html.erb +1 -1
- data/app/views/decidim/assemblies/assemblies/index.html.erb +1 -1
- data/app/views/decidim/assemblies/assemblies/show.html.erb +8 -8
- data/app/views/decidim/assemblies/assembly_widgets/show.html.erb +1 -1
- data/app/views/layouts/decidim/_assembly_header.html.erb +1 -1
- data/app/views/layouts/decidim/admin/assembly.html.erb +4 -4
- data/app/views/layouts/decidim/assembly.html.erb +1 -5
- data/config/locales/ca.yml +7 -2
- data/config/locales/en.yml +8 -3
- data/config/locales/es.yml +7 -2
- data/config/locales/eu.yml +36 -31
- data/config/locales/fi.yml +12 -7
- data/config/locales/fr.yml +8 -3
- data/config/locales/it.yml +8 -3
- data/config/locales/nl.yml +8 -3
- data/config/locales/pl.yml +8 -3
- data/config/locales/ru.yml +134 -0
- data/config/locales/uk.yml +11 -6
- data/lib/decidim/assemblies/admin_engine.rb +3 -3
- data/lib/decidim/assemblies/engine.rb +13 -2
- data/lib/decidim/assemblies/participatory_space.rb +2 -4
- data/lib/decidim/assemblies/version.rb +10 -0
- metadata +12 -25
- data/app/views/decidim/assemblies/assemblies/_no_assemblies_yet.html.erb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e0fb8b56f765e86cd93abd8ca4eb2c1ebdbf2e0
|
4
|
+
data.tar.gz: 57cd03c59b0001a4e8122e4d040116859ce67d9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee0f9a79a49630fc3fbd459d21e02796896897419fdc67fbcdbeda53a32adca0da2af6205592533a76d4d1f1aaf80bb197f78aa96005fc9670f4d7bc2349bce6
|
7
|
+
data.tar.gz: 86762612fe187336dd87d61c4f39b04e662821b4133eb45c5d3772df0f73e5285812e9a11a3644b8f095719c35e15c6c8d494cda0d00854ab878c804d061b8f8
|
@@ -30,7 +30,13 @@ module Decidim
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def detect_current_assembly(params)
|
33
|
-
|
33
|
+
organization_assemblies.where(slug: params["assembly_slug"]).or(
|
34
|
+
organization_assemblies.where(id: params["assembly_id"])
|
35
|
+
).first!
|
36
|
+
end
|
37
|
+
|
38
|
+
def organization_assemblies
|
39
|
+
@organization_assemblies ||= OrganizationAssemblies.new(@organization).query
|
34
40
|
end
|
35
41
|
end
|
36
42
|
end
|
@@ -42,7 +42,11 @@ module Decidim
|
|
42
42
|
|
43
43
|
def detect_assembly
|
44
44
|
request.env["current_assembly"] ||
|
45
|
-
|
45
|
+
organization_assemblies.find_by!(slug: params[:assembly_slug] || params[:slug])
|
46
|
+
end
|
47
|
+
|
48
|
+
def organization_assemblies
|
49
|
+
@organization_assemblies ||= OrganizationAssemblies.new(current_organization).query
|
46
50
|
end
|
47
51
|
end
|
48
52
|
end
|
@@ -45,7 +45,10 @@ module Decidim
|
|
45
45
|
|
46
46
|
def update
|
47
47
|
authorize! :update, current_assembly
|
48
|
-
@form = form(AssemblyForm).from_params(
|
48
|
+
@form = form(AssemblyForm).from_params(
|
49
|
+
assembly_params,
|
50
|
+
assembly_id: current_assembly.id
|
51
|
+
)
|
49
52
|
|
50
53
|
UpdateAssembly.call(current_assembly, @form) do
|
51
54
|
on(:ok) do |assembly|
|
@@ -76,7 +79,9 @@ module Decidim
|
|
76
79
|
private
|
77
80
|
|
78
81
|
def current_assembly
|
79
|
-
@current_assembly ||= collection.
|
82
|
+
@current_assembly ||= collection.where(slug: params[:slug]).or(
|
83
|
+
collection.where(id: params[:slug])
|
84
|
+
).first
|
80
85
|
end
|
81
86
|
|
82
87
|
def collection
|
@@ -16,6 +16,8 @@ module Decidim
|
|
16
16
|
helper_method :collection, :promoted_assemblies, :assemblies, :stats
|
17
17
|
|
18
18
|
def index
|
19
|
+
redirect_to "/404" if published_assemblies.none?
|
20
|
+
|
19
21
|
authorize! :read, Assembly
|
20
22
|
end
|
21
23
|
|
@@ -25,6 +27,10 @@ module Decidim
|
|
25
27
|
|
26
28
|
private
|
27
29
|
|
30
|
+
def published_assemblies
|
31
|
+
@published_assemblies ||= OrganizationPublishedAssemblies.new(current_organization)
|
32
|
+
end
|
33
|
+
|
28
34
|
def assemblies
|
29
35
|
@assemblies ||= OrganizationPrioritizedAssemblies.new(current_organization)
|
30
36
|
end
|
@@ -17,9 +17,9 @@ module Decidim
|
|
17
17
|
attribute :copy_categories, Boolean
|
18
18
|
attribute :copy_features, Boolean
|
19
19
|
|
20
|
-
validates :slug, presence: true
|
20
|
+
validates :slug, presence: true, format: { with: Decidim::ParticipatoryProcess.slug_format }
|
21
21
|
validates :title, translatable_presence: true
|
22
|
-
validate :
|
22
|
+
validate :slug_uniqueness
|
23
23
|
|
24
24
|
private
|
25
25
|
|
@@ -33,11 +33,11 @@ module Decidim
|
|
33
33
|
attribute :remove_banner_image
|
34
34
|
attribute :show_statistics, Boolean
|
35
35
|
|
36
|
-
validates :slug, presence: true
|
36
|
+
validates :slug, presence: true, format: { with: Decidim::ParticipatoryProcess.slug_format }
|
37
37
|
validates :title, :subtitle, :description, :short_description, translatable_presence: true
|
38
38
|
validates :scope, presence: true, if: proc { |object| object.scope_id.present? }
|
39
39
|
|
40
|
-
validate :
|
40
|
+
validate :slug_uniqueness
|
41
41
|
|
42
42
|
validates :hero_image, file_size: { less_than_or_equal_to: ->(_record) { Decidim.maximum_attachment_size } }, file_content_type: { allow: ["image/jpeg", "image/png"] }
|
43
43
|
validates :banner_image, file_size: { less_than_or_equal_to: ->(_record) { Decidim.maximum_attachment_size } }, file_content_type: { allow: ["image/jpeg", "image/png"] }
|
@@ -53,7 +53,7 @@ module Decidim
|
|
53
53
|
private
|
54
54
|
|
55
55
|
def slug_uniqueness
|
56
|
-
return unless OrganizationAssemblies.new(current_organization).query.where(slug: slug).where.not(id:
|
56
|
+
return unless OrganizationAssemblies.new(current_organization).query.where(slug: slug).where.not(id: context[:assembly_id]).any?
|
57
57
|
|
58
58
|
errors.add(:slug, :taken)
|
59
59
|
end
|
@@ -25,8 +25,8 @@ module Decidim
|
|
25
25
|
|
26
26
|
has_many :features, as: :participatory_space
|
27
27
|
|
28
|
-
validates :slug, presence: true
|
29
28
|
validates :slug, uniqueness: { scope: :organization }
|
29
|
+
validates :slug, presence: true, format: { with: Decidim::Assembly.slug_format }
|
30
30
|
|
31
31
|
mount_uploader :hero_image, Decidim::HeroImageUploader
|
32
32
|
mount_uploader :banner_image, Decidim::BannerImageUploader
|
@@ -41,5 +41,9 @@ module Decidim
|
|
41
41
|
def hashtag
|
42
42
|
attributes["hashtag"].to_s.delete("#")
|
43
43
|
end
|
44
|
+
|
45
|
+
def to_param
|
46
|
+
slug
|
47
|
+
end
|
44
48
|
end
|
45
49
|
end
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<%= link_to assembly_path(assembly), class: "card__link" do %>
|
9
9
|
<h4 class="card__title"><%= translated_attribute assembly.title %></h4>
|
10
10
|
<% end %>
|
11
|
-
<p class="card__desc"
|
11
|
+
<p class="card__desc"><%= sanitize html_truncate(translated_attribute(assembly.short_description), length: 630, separator: '...') %></p>
|
12
12
|
</div>
|
13
13
|
<div class="card__footer">
|
14
14
|
<div class="card__support">
|
@@ -1,3 +1,5 @@
|
|
1
|
+
<%= javascript_include_tag "decidim/slug_form" %>
|
2
|
+
|
1
3
|
<div class="card">
|
2
4
|
<div class="card-divider">
|
3
5
|
<h2 class="card-title"><%= t "assemblies.form.title", scope: "decidim.admin" %></h2>
|
@@ -13,8 +15,9 @@
|
|
13
15
|
</div>
|
14
16
|
|
15
17
|
<div class="row">
|
16
|
-
<div class="columns xlarge-6">
|
18
|
+
<div class="columns xlarge-6 slug">
|
17
19
|
<%= form.text_field :slug %>
|
20
|
+
<p class="help-text"><%== t(".slug_help", url: decidim_form_slug_url(:assemblies, form.object.slug)) %></p>
|
18
21
|
</div>
|
19
22
|
|
20
23
|
<div class="columns xlarge-6">
|
@@ -1,3 +1,5 @@
|
|
1
|
+
<%= javascript_include_tag "decidim/slug_form" %>
|
2
|
+
|
1
3
|
<div class="card" id="assemblies">
|
2
4
|
<div class="card-divider">
|
3
5
|
<h2 class="card-title"><%= title %></h2>
|
@@ -9,8 +11,9 @@
|
|
9
11
|
<div class="column xlarge-8">
|
10
12
|
<%= form.translated :text_field, :title, autofocus: true %>
|
11
13
|
</div>
|
12
|
-
<div class="column xlarge-4">
|
14
|
+
<div class="column xlarge-4 slug">
|
13
15
|
<%= form.text_field :slug %>
|
16
|
+
<p class="help-text"><%== t(".slug_help", url: decidim_form_slug_url(:assemblies, form.object.slug)) %></p>
|
14
17
|
</div>
|
15
18
|
</div>
|
16
19
|
<div class="card">
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<%= link_to assembly_path(promoted_assembly), class: "card__link" do %>
|
6
6
|
<h2 class="card__title"><%= translated_attribute promoted_assembly.title %></h2>
|
7
7
|
<% end %>
|
8
|
-
|
8
|
+
<%= sanitize html_truncate(translated_attribute(promoted_assembly.short_description), length: 630, separator: '...') %>
|
9
9
|
<%= link_to assembly_path(promoted_assembly), class: "button secondary small hollow card__button" do %>
|
10
10
|
<%= t("assemblies.promoted_assembly.more_info", scope: "layouts.decidim") %>
|
11
11
|
<% end %>
|
@@ -11,7 +11,7 @@
|
|
11
11
|
<section id="assemblies-grid" class="section row collapse">
|
12
12
|
<%= render partial: "decidim/assemblies/order_by_assemblies" %>
|
13
13
|
<div class="row small-up-1 medium-up-2 large-up-3 card-grid">
|
14
|
-
<%= render(collection)
|
14
|
+
<%= render(collection) %>
|
15
15
|
</div>
|
16
16
|
</section>
|
17
17
|
</main>
|
@@ -11,9 +11,9 @@
|
|
11
11
|
<div class="columns medium-7 mediumlarge-8">
|
12
12
|
<div class="section">
|
13
13
|
<div class="lead">
|
14
|
-
|
14
|
+
<%= sanitize translated_attribute(current_assembly.short_description) %>
|
15
15
|
</div>
|
16
|
-
|
16
|
+
<%= sanitize translated_attribute(current_assembly.description) %>
|
17
17
|
</div>
|
18
18
|
<%= attachments_for current_assembly %>
|
19
19
|
</div>
|
@@ -22,42 +22,42 @@
|
|
22
22
|
<% if translated_attribute(current_assembly.meta_scope).present? %>
|
23
23
|
<div class="definition-data__item scope">
|
24
24
|
<span class="definition-data__title"><%= t("assemblies.show.scope", scope: "decidim") %></span>
|
25
|
-
|
25
|
+
<%= translated_attribute(current_assembly.meta_scope) %>
|
26
26
|
</div>
|
27
27
|
<% end %>
|
28
28
|
|
29
29
|
<% if translated_attribute(current_assembly.developer_group).present? %>
|
30
30
|
<div class="definition-data__item developer-group">
|
31
31
|
<span class="definition-data__title"><%= t("assemblies.show.developer_group", scope: "decidim") %></span>
|
32
|
-
|
32
|
+
<%= translated_attribute(current_assembly.developer_group) %>
|
33
33
|
</div>
|
34
34
|
<% end %>
|
35
35
|
|
36
36
|
<% if translated_attribute(current_assembly.local_area).present? %>
|
37
37
|
<div class="definition-data__item local_area">
|
38
38
|
<span class="definition-data__title"><%= t("assemblies.show.local_area", scope: "decidim") %></span>
|
39
|
-
|
39
|
+
<%= translated_attribute(current_assembly.local_area) %>
|
40
40
|
</div>
|
41
41
|
<% end %>
|
42
42
|
|
43
43
|
<% if translated_attribute(current_assembly.target).present? %>
|
44
44
|
<div class="definition-data__item target">
|
45
45
|
<span class="definition-data__title"><%= t("assemblies.show.target", scope: "decidim") %></span>
|
46
|
-
|
46
|
+
<%= translated_attribute(current_assembly.target) %>
|
47
47
|
</div>
|
48
48
|
<% end %>
|
49
49
|
|
50
50
|
<% if translated_attribute(current_assembly.participatory_scope).present? %>
|
51
51
|
<div class="definition-data__item participatory_scope">
|
52
52
|
<span class="definition-data__title"><%= t("assemblies.show.participatory_scope", scope: "decidim") %></span>
|
53
|
-
|
53
|
+
<%= translated_attribute(current_assembly.participatory_scope) %>
|
54
54
|
</div>
|
55
55
|
<% end %>
|
56
56
|
|
57
57
|
<% if translated_attribute(current_assembly.participatory_structure).present? %>
|
58
58
|
<div class="definition-data__item participatory_structure">
|
59
59
|
<span class="definition-data__title"><%= t("assemblies.show.participatory_structure", scope: "decidim") %></span>
|
60
|
-
|
60
|
+
<%= translated_attribute(current_assembly.participatory_structure) %>
|
61
61
|
</div>
|
62
62
|
<% end %>
|
63
63
|
</div>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<% content_for(:header, "false") %>
|
2
2
|
<% content_for(:title, translated_attribute(model.title)) %>
|
3
|
-
<p class="card__desc"
|
3
|
+
<p class="card__desc"><%= sanitize html_truncate(translated_attribute(model.short_description), length: 630, separator: '...') %></p>
|
4
4
|
<% content_for(:footer) do %>
|
5
5
|
<div class="card__support">
|
6
6
|
<span class="card--process__small"></span>
|
@@ -39,7 +39,7 @@
|
|
39
39
|
<div class="row column process-nav__content is-active" id="process-nav-content" data-toggler=".is-active">
|
40
40
|
<ul>
|
41
41
|
<li class="<%= "is-active" if is_active_link?(decidim_assemblies.assembly_path(current_assembly), :exclusive) %>">
|
42
|
-
<%= active_link_to decidim_assemblies.assembly_path(current_assembly), active: :
|
42
|
+
<%= active_link_to decidim_assemblies.assembly_path(current_assembly), active: :exclusive, class: "process-nav__link", class_active: "is-active" do %>
|
43
43
|
<%= external_icon "decidim/assemblies/assembly.svg" %>
|
44
44
|
<%= t ".assembly_menu_item" %>
|
45
45
|
<% end %>
|
@@ -31,13 +31,13 @@
|
|
31
31
|
</li>
|
32
32
|
<% end %>
|
33
33
|
<% if can? :read, Decidim::Attachment %>
|
34
|
-
<li <% if is_active_link?(decidim_admin_assemblies.assembly_attachments_path(current_assembly
|
35
|
-
<%= aria_selected_link_to t("attachments", scope: "decidim.admin.menu.assemblies_submenu"), decidim_admin_assemblies.assembly_attachments_path(current_assembly
|
34
|
+
<li <% if is_active_link?(decidim_admin_assemblies.assembly_attachments_path(current_assembly)) %> class="is-active" <% end %>>
|
35
|
+
<%= aria_selected_link_to t("attachments", scope: "decidim.admin.menu.assemblies_submenu"), decidim_admin_assemblies.assembly_attachments_path(current_assembly) %>
|
36
36
|
</li>
|
37
37
|
<% end %>
|
38
38
|
<% if can? :read, Decidim::Moderation %>
|
39
|
-
<li <% if is_active_link?(decidim_admin_assemblies.moderations_path(current_assembly
|
40
|
-
<%= aria_selected_link_to t("moderations", scope: "decidim.admin.menu.assemblies_submenu"), decidim_admin_assemblies.moderations_path(current_assembly
|
39
|
+
<li <% if is_active_link?(decidim_admin_assemblies.moderations_path(current_assembly)) %> class="is-active" <% end %>>
|
40
|
+
<%= aria_selected_link_to t("moderations", scope: "decidim.admin.menu.assemblies_submenu"), decidim_admin_assemblies.moderations_path(current_assembly) %>
|
41
41
|
</li>
|
42
42
|
<% end %>
|
43
43
|
</ul>
|
@@ -19,12 +19,8 @@
|
|
19
19
|
</div>
|
20
20
|
</div>
|
21
21
|
<% end %>
|
22
|
-
<% end %>
|
23
22
|
|
24
|
-
|
25
|
-
<% current_feature.manifest.actions.each do |action| %>
|
26
|
-
<%= action_authorization_modal(action) %>
|
27
|
-
<% end %>
|
23
|
+
<%= render "layouts/decidim/feature_authorization_modals" %>
|
28
24
|
<% end %>
|
29
25
|
|
30
26
|
<% provide :meta_image_url, current_assembly.banner_image.url %>
|
data/config/locales/ca.yml
CHANGED
@@ -79,6 +79,13 @@ ca:
|
|
79
79
|
titles:
|
80
80
|
assemblies: Assemblees
|
81
81
|
assemblies:
|
82
|
+
admin:
|
83
|
+
assemblies:
|
84
|
+
form:
|
85
|
+
slug_help: 'Els noms curts d''URL s''utilitzen per generar les URL que apunten a aquesta assemblea. Només accepta lletres, números i guions, i ha de començar amb una lletra. Exemple: %{url}'
|
86
|
+
assembly_copies:
|
87
|
+
form:
|
88
|
+
slug_help: 'Els noms curts d''URL s''utilitzen per generar els URL que apunten a aquesta assemblea. Només accepta lletres, números i guions, i ha de començar amb una lletra. Exemple: %{url}'
|
82
89
|
index:
|
83
90
|
title: Assemblees
|
84
91
|
show:
|
@@ -111,8 +118,6 @@ ca:
|
|
111
118
|
take_part: Participa
|
112
119
|
index:
|
113
120
|
promoted_assemblies: Assemblees destacades
|
114
|
-
no_assemblies_yet:
|
115
|
-
no_assemblies_yet: Encara no hi ha cap assemblea!
|
116
121
|
order_by_assemblies:
|
117
122
|
assemblies:
|
118
123
|
one: "%{count} assemblea"
|
data/config/locales/en.yml
CHANGED
@@ -79,6 +79,13 @@ en:
|
|
79
79
|
titles:
|
80
80
|
assemblies: Assemblies
|
81
81
|
assemblies:
|
82
|
+
admin:
|
83
|
+
assemblies:
|
84
|
+
form:
|
85
|
+
slug_help: 'URL slugs are used to generate the URLs that point to this assembly. Only accepts letters, numbers and dashes, and must start with a letter. Example: %{url}'
|
86
|
+
assembly_copies:
|
87
|
+
form:
|
88
|
+
slug_help: 'URL slugs are used to generate the URLs that point to this assembly. Only accepts letters, numbers and dashes, and must start with a letter. Example: %{url}'
|
82
89
|
index:
|
83
90
|
title: Assemblies
|
84
91
|
show:
|
@@ -94,7 +101,7 @@ en:
|
|
94
101
|
comments_count: Comments
|
95
102
|
headline: Activity
|
96
103
|
meetings_count: Meetings
|
97
|
-
orders_count:
|
104
|
+
orders_count: Votes
|
98
105
|
pages_count: Pages
|
99
106
|
projects_count: Projects
|
100
107
|
proposals_count: Proposals
|
@@ -111,8 +118,6 @@ en:
|
|
111
118
|
take_part: Take part
|
112
119
|
index:
|
113
120
|
promoted_assemblies: Highlighted assemblies
|
114
|
-
no_assemblies_yet:
|
115
|
-
no_assemblies_yet: No assemblies yet!
|
116
121
|
order_by_assemblies:
|
117
122
|
assemblies:
|
118
123
|
one: "%{count} assembly"
|
data/config/locales/es.yml
CHANGED
@@ -79,6 +79,13 @@ es:
|
|
79
79
|
titles:
|
80
80
|
assemblies: Asambleas
|
81
81
|
assemblies:
|
82
|
+
admin:
|
83
|
+
assemblies:
|
84
|
+
form:
|
85
|
+
slug_help: 'Los textos cortos de URL se utilizan para generar las URL que apuntan a esta asamblea. Sólo acepta letras, números y guiones, y debe comenzar con una letra. Ejemplo: %{url}'
|
86
|
+
assembly_copies:
|
87
|
+
form:
|
88
|
+
slug_help: 'Los textos cortos de URL se utilizan para generar las URL que apuntan a esta asamblea. Sólo acepta letras, números y guiones, y debe comenzar con una letra. Ejemplo: %{url}'
|
82
89
|
index:
|
83
90
|
title: Asambleas
|
84
91
|
show:
|
@@ -111,8 +118,6 @@ es:
|
|
111
118
|
take_part: Participa
|
112
119
|
index:
|
113
120
|
promoted_assemblies: Asambleas destacadas
|
114
|
-
no_assemblies_yet:
|
115
|
-
no_assemblies_yet: "¡Todavía no hay asambleas!"
|
116
121
|
order_by_assemblies:
|
117
122
|
assemblies:
|
118
123
|
one: "%{count} asamblea"
|
data/config/locales/eu.yml
CHANGED
@@ -3,9 +3,9 @@ eu:
|
|
3
3
|
attributes:
|
4
4
|
assembly:
|
5
5
|
banner_image: Bannerra
|
6
|
-
copy_categories:
|
7
|
-
copy_features:
|
8
|
-
description:
|
6
|
+
copy_categories: Kopiatu kategoriak
|
7
|
+
copy_features: Kopiatu funtzionalitateak
|
8
|
+
description: Deskribapena
|
9
9
|
developer_group: Talde sustatzailea
|
10
10
|
domain: Domeinua
|
11
11
|
hashtag: Traola
|
@@ -16,20 +16,20 @@ eu:
|
|
16
16
|
participatory_structure: Partehartze egitura
|
17
17
|
promoted: Nabarmendua
|
18
18
|
scope_id: Esparrua
|
19
|
-
scopes_enabled:
|
19
|
+
scopes_enabled: Esparru gaituak
|
20
20
|
short_description: Deskribapen laburra
|
21
21
|
slug: URL laburra
|
22
22
|
subtitle: Azpititulua
|
23
23
|
target: Nori zuzentzen zaio?
|
24
|
-
title:
|
24
|
+
title: Prozesu partizipatiboen multzoak
|
25
25
|
decidim:
|
26
26
|
admin:
|
27
27
|
assemblies:
|
28
28
|
create:
|
29
|
-
error:
|
30
|
-
success: Batzarra
|
29
|
+
error: Errorea gertatu da batzar berri bat sortzean.
|
30
|
+
success: Batzarra zuzen sortu da.
|
31
31
|
destroy:
|
32
|
-
success:
|
32
|
+
success: Batzarra zuzen ezabatu da.
|
33
33
|
edit:
|
34
34
|
update: Eguneratu
|
35
35
|
form:
|
@@ -41,24 +41,24 @@ eu:
|
|
41
41
|
create: Sortu
|
42
42
|
title: Batzar berria
|
43
43
|
update:
|
44
|
-
error:
|
45
|
-
success: Batzarra
|
44
|
+
error: Errorea gertatu da batzar hau eguneratzean.
|
45
|
+
success: Batzarra zuzen eguneratu da.
|
46
46
|
assemblies_copies:
|
47
47
|
create:
|
48
|
-
error:
|
49
|
-
success:
|
48
|
+
error: Errorea gertatu da batzar hau kopiatzean.
|
49
|
+
success: Batzarra zuzen bikoiztu da.
|
50
50
|
assembly_copies:
|
51
51
|
new:
|
52
|
-
copy:
|
52
|
+
copy: Kopiatu
|
53
53
|
select: Aukeratu itzazu kopiatu nahi dituzun datuak
|
54
|
-
title:
|
54
|
+
title: Kopiatu batzarra
|
55
55
|
assembly_publications:
|
56
56
|
create:
|
57
|
-
error:
|
58
|
-
success:
|
57
|
+
error: Errorea gertatu da batzar hau bikoiztean.
|
58
|
+
success: Batzarra ongi argitaratu da.
|
59
59
|
destroy:
|
60
|
-
error:
|
61
|
-
success:
|
60
|
+
error: Errorea gertatu da batzar hau desargitaratzean.
|
61
|
+
success: Batzarra ongi desargitaratu da.
|
62
62
|
menu:
|
63
63
|
assemblies: Biltzarrak
|
64
64
|
assemblies_submenu:
|
@@ -66,25 +66,32 @@ eu:
|
|
66
66
|
categories: Kategoriak
|
67
67
|
features: Funtzionalitateak
|
68
68
|
info: Informazioa
|
69
|
-
moderations:
|
69
|
+
moderations: Moderazioak
|
70
70
|
models:
|
71
71
|
assembly:
|
72
72
|
fields:
|
73
|
-
created_at:
|
73
|
+
created_at: Sortze-data
|
74
74
|
promoted: Nabarmendua
|
75
75
|
published: Argitaratua
|
76
|
-
title:
|
77
|
-
name:
|
76
|
+
title: Prozesu partizipatiboen multzoak
|
77
|
+
name: Batzarra
|
78
78
|
titles:
|
79
79
|
assemblies: Biltzarrak
|
80
80
|
assemblies:
|
81
|
+
admin:
|
82
|
+
assemblies:
|
83
|
+
form:
|
84
|
+
slug_help: 'URL slugs erabiltzen dira muntatze hau adierazten duten URLak sortzeko. Letrak, zenbakiak eta marratxoak soilik onartzen ditu eta letra batekin hasi behar duzu. Adibidea: %{url}'
|
85
|
+
assembly_copies:
|
86
|
+
form:
|
87
|
+
slug_help: 'URL slugs erabiltzen dira muntatze hau adierazten duten URLak sortzeko. Letrak, zenbakiak eta marratxoak soilik onartzen ditu eta letra batekin hasi behar duzu. Adibidea: %{url}'
|
81
88
|
index:
|
82
89
|
title: Biltzarrak
|
83
90
|
show:
|
84
91
|
developer_group: Talde sustatzailea
|
85
92
|
local_area: Udal-alorrak
|
86
|
-
participatory_scope:
|
87
|
-
participatory_structure:
|
93
|
+
participatory_scope: Esparru partizipatiboa
|
94
|
+
participatory_structure: Egitura partizipatiboa
|
88
95
|
scope: Esparrua
|
89
96
|
target: Nori zuzentzen zaio?
|
90
97
|
statistics:
|
@@ -92,15 +99,15 @@ eu:
|
|
92
99
|
assemblies_count: Biltzarrak
|
93
100
|
comments_count: Iruzkinak
|
94
101
|
headline: Jarduera
|
95
|
-
meetings_count:
|
96
|
-
orders_count:
|
102
|
+
meetings_count: Topaketak
|
103
|
+
orders_count: Euskarriak
|
97
104
|
pages_count: Orriak
|
98
105
|
projects_count: Proiektuak
|
99
106
|
proposals_count: Proposamenak
|
100
107
|
results_count: Emaitzak
|
101
108
|
surveys_count: Inkestak
|
102
109
|
users_count: Parte-hartzaileak
|
103
|
-
votes_count:
|
110
|
+
votes_count: Euskarriak
|
104
111
|
menu:
|
105
112
|
assemblies: Biltzarrak
|
106
113
|
layouts:
|
@@ -109,12 +116,10 @@ eu:
|
|
109
116
|
assembly:
|
110
117
|
take_part: Parte hartu
|
111
118
|
index:
|
112
|
-
promoted_assemblies:
|
113
|
-
no_assemblies_yet:
|
114
|
-
no_assemblies_yet: Ez dago batzurik oraindik!
|
119
|
+
promoted_assemblies: Batzar nabarmenduak
|
115
120
|
order_by_assemblies:
|
116
121
|
assemblies:
|
117
|
-
one: "%{count}
|
122
|
+
one: "%{count} batzarra"
|
118
123
|
other: "%{count} batzarrak"
|
119
124
|
promoted_assembly:
|
120
125
|
more_info: Informazio gehiago
|
data/config/locales/fi.yml
CHANGED
@@ -3,7 +3,7 @@ fi:
|
|
3
3
|
attributes:
|
4
4
|
assembly:
|
5
5
|
banner_image: Bannerikuva
|
6
|
-
copy_categories: Kopioi
|
6
|
+
copy_categories: Kopioi aihepiirit
|
7
7
|
copy_features: Kopioi toiminnot
|
8
8
|
description: Kuvaus
|
9
9
|
developer_group: Kehitysryhmä
|
@@ -14,7 +14,7 @@ fi:
|
|
14
14
|
meta_scope: Kontekstin metadata
|
15
15
|
participatory_scope: Osallistumisprosessi
|
16
16
|
participatory_structure: Osallistumisprosessin rakenne
|
17
|
-
promoted:
|
17
|
+
promoted: Korostettu
|
18
18
|
scope_id: Konteksti
|
19
19
|
scopes_enabled: Kontekstit käytössä
|
20
20
|
short_description: Lyhyt kuvaus
|
@@ -63,7 +63,7 @@ fi:
|
|
63
63
|
assemblies: osat
|
64
64
|
assemblies_submenu:
|
65
65
|
attachments: Liitteet
|
66
|
-
categories:
|
66
|
+
categories: Aihepiirit
|
67
67
|
features: Ominaisuudet
|
68
68
|
info: Tiedot
|
69
69
|
moderations: Moderoinnit
|
@@ -78,6 +78,13 @@ fi:
|
|
78
78
|
titles:
|
79
79
|
assemblies: osat
|
80
80
|
assemblies:
|
81
|
+
admin:
|
82
|
+
assemblies:
|
83
|
+
form:
|
84
|
+
slug_help: 'URL-osoittimia käytetään tuottamaan tämän kokoonpanon osoittavat URL-osoitteet. Hyväksyy vain kirjeet, numerot ja viivat, ja se on aloitettava kirjaimella. Esimerkki: %{url}'
|
85
|
+
assembly_copies:
|
86
|
+
form:
|
87
|
+
slug_help: 'URL-osoittimia käytetään tuottamaan tämän kokoonpanon osoittavat URL-osoitteet. Hyväksyy vain kirjeet, numerot ja viivat, ja se on aloitettava kirjaimella. Esimerkki: %{url}'
|
81
88
|
index:
|
82
89
|
title: osat
|
83
90
|
show:
|
@@ -91,9 +98,9 @@ fi:
|
|
91
98
|
answers_count: Vastaukset
|
92
99
|
assemblies_count: osat
|
93
100
|
comments_count: Kommentit
|
94
|
-
headline:
|
101
|
+
headline: Tilastot
|
95
102
|
meetings_count: Tapaamiset
|
96
|
-
orders_count:
|
103
|
+
orders_count: Äänet
|
97
104
|
pages_count: Sivut
|
98
105
|
projects_count: Projektit
|
99
106
|
proposals_count: Ehdotukset
|
@@ -110,8 +117,6 @@ fi:
|
|
110
117
|
take_part: Osallistu
|
111
118
|
index:
|
112
119
|
promoted_assemblies: Korostetut kokoonpanot
|
113
|
-
no_assemblies_yet:
|
114
|
-
no_assemblies_yet: Ei kokoonpanoja vielä!
|
115
120
|
order_by_assemblies:
|
116
121
|
assemblies:
|
117
122
|
one: "%{count} kokoonpano"
|
data/config/locales/fr.yml
CHANGED
@@ -78,6 +78,13 @@ fr:
|
|
78
78
|
titles:
|
79
79
|
assemblies: Assemblées
|
80
80
|
assemblies:
|
81
|
+
admin:
|
82
|
+
assemblies:
|
83
|
+
form:
|
84
|
+
slug_help: 'Les identifiants d''URL sont utilisés pour générer les URL qui envoient vers cette assemblée. N''accepte que des lettres, des chiffres et des tirets et doit commencer par une lettre. Exemple: %{url}'
|
85
|
+
assembly_copies:
|
86
|
+
form:
|
87
|
+
slug_help: 'Les identifiants d''URL sont utilisés pour générer les URL qui envoient vers cette assemblée. N''accepte que des lettres, des chiffres et des tirets et doit commencer par une lettre. Exemple: %{url}'
|
81
88
|
index:
|
82
89
|
title: Assemblées
|
83
90
|
show:
|
@@ -93,7 +100,7 @@ fr:
|
|
93
100
|
comments_count: Commentaires
|
94
101
|
headline: Activité
|
95
102
|
meetings_count: Réunions
|
96
|
-
orders_count:
|
103
|
+
orders_count: Votes
|
97
104
|
pages_count: Pages
|
98
105
|
projects_count: Projets
|
99
106
|
proposals_count: Propositions
|
@@ -110,8 +117,6 @@ fr:
|
|
110
117
|
take_part: Participer
|
111
118
|
index:
|
112
119
|
promoted_assemblies: Assemblées mises en avant
|
113
|
-
no_assemblies_yet:
|
114
|
-
no_assemblies_yet: Aucune assemblée n'a été créée pour le moment !
|
115
120
|
order_by_assemblies:
|
116
121
|
assemblies:
|
117
122
|
one: "%{count} assemblée"
|
data/config/locales/it.yml
CHANGED
@@ -78,6 +78,13 @@ it:
|
|
78
78
|
titles:
|
79
79
|
assemblies: assemblee
|
80
80
|
assemblies:
|
81
|
+
admin:
|
82
|
+
assemblies:
|
83
|
+
form:
|
84
|
+
slug_help: 'Gli slug URL vengono utilizzati per generare gli URL che puntano a questo assembly. Accetta solo lettere, numeri e trattini, e deve iniziare con una lettera. Esempio: %{url}'
|
85
|
+
assembly_copies:
|
86
|
+
form:
|
87
|
+
slug_help: 'Gli slug URL vengono utilizzati per generare gli URL che puntano a questo assembly. Accetta solo lettere, numeri e trattini, e deve iniziare con una lettera. Esempio: %{url}'
|
81
88
|
index:
|
82
89
|
title: assemblee
|
83
90
|
show:
|
@@ -93,7 +100,7 @@ it:
|
|
93
100
|
comments_count: Commenti
|
94
101
|
headline: Attività
|
95
102
|
meetings_count: Riunioni
|
96
|
-
orders_count:
|
103
|
+
orders_count: Voti
|
97
104
|
pages_count: Pagine
|
98
105
|
projects_count: Progetti
|
99
106
|
proposals_count: Proposte
|
@@ -110,8 +117,6 @@ it:
|
|
110
117
|
take_part: Partecipa
|
111
118
|
index:
|
112
119
|
promoted_assemblies: Assiemi evidenziati
|
113
|
-
no_assemblies_yet:
|
114
|
-
no_assemblies_yet: Nessun assemblee ancora!
|
115
120
|
order_by_assemblies:
|
116
121
|
assemblies:
|
117
122
|
one: "%{count} montaggio"
|
data/config/locales/nl.yml
CHANGED
@@ -78,6 +78,13 @@ nl:
|
|
78
78
|
titles:
|
79
79
|
assemblies: Assemblies
|
80
80
|
assemblies:
|
81
|
+
admin:
|
82
|
+
assemblies:
|
83
|
+
form:
|
84
|
+
slug_help: 'URL-slakjes worden gebruikt om de URL''s die naar dit assemblage wijzen, te genereren. Aanvaardt alleen letters, cijfers en streepjes, en moet beginnen met een brief. Voorbeeld: %{url}'
|
85
|
+
assembly_copies:
|
86
|
+
form:
|
87
|
+
slug_help: 'URL-slakjes worden gebruikt om de URL''s die naar dit assemblage wijzen, te genereren. Aanvaardt alleen letters, cijfers en streepjes, en moet beginnen met een brief. Voorbeeld: %{url}'
|
81
88
|
index:
|
82
89
|
title: Assemblies
|
83
90
|
show:
|
@@ -93,7 +100,7 @@ nl:
|
|
93
100
|
comments_count: Comments
|
94
101
|
headline: Activiteit
|
95
102
|
meetings_count: Vergaderingen
|
96
|
-
orders_count:
|
103
|
+
orders_count: stemmen
|
97
104
|
pages_count: Pages
|
98
105
|
projects_count: Projecten
|
99
106
|
proposals_count: Voorstellen
|
@@ -110,8 +117,6 @@ nl:
|
|
110
117
|
take_part: Deelnemen
|
111
118
|
index:
|
112
119
|
promoted_assemblies: Uitgelichte samenstellingen
|
113
|
-
no_assemblies_yet:
|
114
|
-
no_assemblies_yet: Nog geen vergaderingen!
|
115
120
|
order_by_assemblies:
|
116
121
|
assemblies:
|
117
122
|
one: "%{count} assemblage"
|
data/config/locales/pl.yml
CHANGED
@@ -78,6 +78,13 @@ pl:
|
|
78
78
|
titles:
|
79
79
|
assemblies: Zespoły
|
80
80
|
assemblies:
|
81
|
+
admin:
|
82
|
+
assemblies:
|
83
|
+
form:
|
84
|
+
slug_help: 'Ślimaki URL służą do generowania adresów URL wskazujących ten zespół. Akceptuje tylko litery, cyfry i myślniki i musi zaczynać się od litery. Przykład: %{url}'
|
85
|
+
assembly_copies:
|
86
|
+
form:
|
87
|
+
slug_help: 'Ślimaki URL służą do generowania adresów URL wskazujących ten zespół. Akceptuje tylko litery, cyfry i myślniki i musi zaczynać się od litery. Przykład: %{url}'
|
81
88
|
index:
|
82
89
|
title: Zespoły
|
83
90
|
show:
|
@@ -93,7 +100,7 @@ pl:
|
|
93
100
|
comments_count: Komentarze
|
94
101
|
headline: Czynność
|
95
102
|
meetings_count: Spotkania
|
96
|
-
orders_count:
|
103
|
+
orders_count: Głosowania
|
97
104
|
pages_count: Strony
|
98
105
|
projects_count: Projekty
|
99
106
|
proposals_count: Propozycje
|
@@ -110,8 +117,6 @@ pl:
|
|
110
117
|
take_part: Wziąć udział
|
111
118
|
index:
|
112
119
|
promoted_assemblies: Podświetlone zespoły
|
113
|
-
no_assemblies_yet:
|
114
|
-
no_assemblies_yet: Żadne zespoły!
|
115
120
|
order_by_assemblies:
|
116
121
|
assemblies:
|
117
122
|
one: "%{count} montaż"
|
@@ -0,0 +1,134 @@
|
|
1
|
+
ru:
|
2
|
+
activemodel:
|
3
|
+
attributes:
|
4
|
+
assembly:
|
5
|
+
banner_image: Изображение баннера
|
6
|
+
copy_categories: Скопировать категории
|
7
|
+
copy_features: Копировать составляющие
|
8
|
+
description: Описание
|
9
|
+
developer_group: Группа разработчиков
|
10
|
+
domain: Домен
|
11
|
+
hashtag: Хэштег
|
12
|
+
hero_image: Изображение главной страницы
|
13
|
+
local_area: Местность
|
14
|
+
meta_scope: Метаданные охвата
|
15
|
+
participatory_scope: Охват соучастия
|
16
|
+
participatory_structure: Структура соучастия
|
17
|
+
promoted: Рекламируется
|
18
|
+
scope_id: Охват
|
19
|
+
scopes_enabled: Охваты включены
|
20
|
+
short_description: Краткое описание
|
21
|
+
slug: Сокращенный URL-адрес
|
22
|
+
subtitle: Подзаголовок
|
23
|
+
target: Цель
|
24
|
+
title: Название
|
25
|
+
decidim:
|
26
|
+
admin:
|
27
|
+
assemblies:
|
28
|
+
create:
|
29
|
+
error: При добавлении нового собрания произошла ошибка.
|
30
|
+
success: Собрание успешно добавлено.
|
31
|
+
destroy:
|
32
|
+
success: Собрание успешно удалено.
|
33
|
+
edit:
|
34
|
+
update: Обновить
|
35
|
+
form:
|
36
|
+
title: Общая информация
|
37
|
+
index:
|
38
|
+
not_published: Не опубликовано
|
39
|
+
published: Опубликовано
|
40
|
+
new:
|
41
|
+
create: Добавить
|
42
|
+
title: Новое собрание
|
43
|
+
update:
|
44
|
+
error: При обновлении этого собрания произошла ошибка.
|
45
|
+
success: Собрание успешно обновлено.
|
46
|
+
assemblies_copies:
|
47
|
+
create:
|
48
|
+
error: При создании копии этого собрания произошла ошибка.
|
49
|
+
success: Успешно создана копия собрания.
|
50
|
+
assembly_copies:
|
51
|
+
new:
|
52
|
+
copy: Копировать
|
53
|
+
select: Выберите, какие данные вы хотите продублировать
|
54
|
+
title: Создать копию собрания
|
55
|
+
assembly_publications:
|
56
|
+
create:
|
57
|
+
error: При публикации этого собрания произошла ошибка.
|
58
|
+
success: Собрание успешно опубликовано.
|
59
|
+
destroy:
|
60
|
+
error: При отмене публикации этого собрания произошла ошибка.
|
61
|
+
success: Публикация собрания успешно отменена.
|
62
|
+
menu:
|
63
|
+
assemblies: Собрания
|
64
|
+
assemblies_submenu:
|
65
|
+
attachments: Вложения
|
66
|
+
categories: Категории
|
67
|
+
features: Составляющие
|
68
|
+
info: Информация
|
69
|
+
moderations: Действия по модерации
|
70
|
+
models:
|
71
|
+
assembly:
|
72
|
+
fields:
|
73
|
+
created_at: 'Добавлено:'
|
74
|
+
promoted: Выдвинутые на первый план
|
75
|
+
published: Опубликовано
|
76
|
+
title: Название
|
77
|
+
name: Собрание
|
78
|
+
titles:
|
79
|
+
assemblies: Собрания
|
80
|
+
assemblies:
|
81
|
+
admin:
|
82
|
+
assemblies:
|
83
|
+
form:
|
84
|
+
slug_help: 'Сокращенные URL-адреса используются для создания ссылок на это собрание. В них допустимы только буквы, цифры и тире, и они должны начинаться с буквы. Пример: %{url}'
|
85
|
+
assembly_copies:
|
86
|
+
form:
|
87
|
+
slug_help: 'Сокращенные URL-адреса используются для создания ссылок на это собрание. В них допустимы только буквы, цифры и тире, и они должны начинаться с буквы. Пример: %{url}'
|
88
|
+
index:
|
89
|
+
title: Собрания
|
90
|
+
show:
|
91
|
+
developer_group: Группа разработчиков
|
92
|
+
local_area: Местность
|
93
|
+
participatory_scope: Охват соучастия
|
94
|
+
participatory_structure: Структура соучастия
|
95
|
+
scope: Охват
|
96
|
+
target: Цель
|
97
|
+
statistics:
|
98
|
+
answers_count: Ответы
|
99
|
+
assemblies_count: Собрания
|
100
|
+
comments_count: Комментарии
|
101
|
+
headline: Деятельность
|
102
|
+
meetings_count: Встречи
|
103
|
+
orders_count: Голоса
|
104
|
+
pages_count: Страницы
|
105
|
+
projects_count: Проекты
|
106
|
+
proposals_count: Предложения
|
107
|
+
results_count: Итоги
|
108
|
+
surveys_count: Опросы
|
109
|
+
users_count: Участники
|
110
|
+
votes_count: Голоса
|
111
|
+
menu:
|
112
|
+
assemblies: Собрания
|
113
|
+
layouts:
|
114
|
+
decidim:
|
115
|
+
assemblies:
|
116
|
+
assembly:
|
117
|
+
take_part: Принять участие
|
118
|
+
index:
|
119
|
+
promoted_assemblies: Выдвинутые на первый план собрания
|
120
|
+
order_by_assemblies:
|
121
|
+
assemblies:
|
122
|
+
one: "%{count} собрание"
|
123
|
+
few: "%{count} собрания"
|
124
|
+
many: "%{count} собраний"
|
125
|
+
other: "%{count} собраний"
|
126
|
+
promoted_assembly:
|
127
|
+
more_info: Дополнительные сведения
|
128
|
+
take_part: Принять участие
|
129
|
+
assembly_header:
|
130
|
+
assembly_menu_item: Собрание
|
131
|
+
unfold: Развернуть
|
132
|
+
assembly_widgets:
|
133
|
+
show:
|
134
|
+
take_part: Принять участие
|
data/config/locales/uk.yml
CHANGED
@@ -14,7 +14,7 @@ uk:
|
|
14
14
|
meta_scope: Метадані терену
|
15
15
|
participatory_scope: Терен співучасті
|
16
16
|
participatory_structure: Структура співучасті
|
17
|
-
promoted:
|
17
|
+
promoted: Рекламується
|
18
18
|
scope_id: Терен
|
19
19
|
scopes_enabled: Ввімкнені терени
|
20
20
|
short_description: Стислий опис
|
@@ -27,7 +27,7 @@ uk:
|
|
27
27
|
assemblies:
|
28
28
|
create:
|
29
29
|
error: При створенні нових зборів сталася помилка.
|
30
|
-
success: Збори успішно
|
30
|
+
success: Збори успішно додано.
|
31
31
|
destroy:
|
32
32
|
success: Збори успішно видалено.
|
33
33
|
edit:
|
@@ -38,7 +38,7 @@ uk:
|
|
38
38
|
not_published: Не опубліковано
|
39
39
|
published: Опубліковано
|
40
40
|
new:
|
41
|
-
create:
|
41
|
+
create: Додати
|
42
42
|
title: Нові збори
|
43
43
|
update:
|
44
44
|
error: При оновленні цих зборів сталася помилка.
|
@@ -70,7 +70,7 @@ uk:
|
|
70
70
|
models:
|
71
71
|
assembly:
|
72
72
|
fields:
|
73
|
-
created_at: '
|
73
|
+
created_at: 'Додано:'
|
74
74
|
promoted: Висвітлено
|
75
75
|
published: Опубліковано
|
76
76
|
title: Назва
|
@@ -78,6 +78,13 @@ uk:
|
|
78
78
|
titles:
|
79
79
|
assemblies: Збори
|
80
80
|
assemblies:
|
81
|
+
admin:
|
82
|
+
assemblies:
|
83
|
+
form:
|
84
|
+
slug_help: 'Cкорочені URL-адреси використовуються для створення посилань на ці збори. В них припустимі лише букви, цифри та тире, і вони мають починатися з букви. Приклад: %{url}'
|
85
|
+
assembly_copies:
|
86
|
+
form:
|
87
|
+
slug_help: 'Cкорочені URL-адреси використовуються для створення посилань на ці збори. В них припустимі лише букви, цифри та тире, і вони мають починатися з букви. Приклад: %{url}'
|
81
88
|
index:
|
82
89
|
title: Збори
|
83
90
|
show:
|
@@ -110,8 +117,6 @@ uk:
|
|
110
117
|
take_part: Взяти участь
|
111
118
|
index:
|
112
119
|
promoted_assemblies: Висвітлені збори
|
113
|
-
no_assemblies_yet:
|
114
|
-
no_assemblies_yet: Ще немає зборів!
|
115
120
|
order_by_assemblies:
|
116
121
|
assemblies:
|
117
122
|
one: "%{count} (одні) збори"
|
@@ -14,14 +14,14 @@ module Decidim
|
|
14
14
|
paths["db/migrate"] = nil
|
15
15
|
|
16
16
|
routes do
|
17
|
-
resources :assemblies do
|
17
|
+
resources :assemblies, param: :slug, except: :show do
|
18
18
|
resource :publish, controller: "assembly_publications", only: [:create, :destroy]
|
19
19
|
resources :copies, controller: "assembly_copies", only: [:new, :create]
|
20
20
|
|
21
21
|
resources :attachments, controller: "assembly_attachments"
|
22
22
|
end
|
23
23
|
|
24
|
-
scope "/assemblies/:
|
24
|
+
scope "/assemblies/:assembly_slug" do
|
25
25
|
resources :categories
|
26
26
|
|
27
27
|
resources :features do
|
@@ -41,7 +41,7 @@ module Decidim
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
scope "/assemblies/:
|
44
|
+
scope "/assemblies/:assembly_slug/features/:feature_id/manage" do
|
45
45
|
Decidim.feature_manifests.each do |manifest|
|
46
46
|
next unless manifest.admin_engine
|
47
47
|
|
@@ -12,11 +12,21 @@ module Decidim
|
|
12
12
|
isolate_namespace Decidim::Assemblies
|
13
13
|
|
14
14
|
routes do
|
15
|
-
|
15
|
+
get "assemblies/:assembly_id", to: redirect { |params, _request|
|
16
|
+
assembly = Decidim::Assembly.find(params[:assembly_id])
|
17
|
+
assembly ? "/assemblies/#{assembly.slug}" : "/404"
|
18
|
+
}, constraints: { assembly_id: /[0-9]+/ }
|
19
|
+
|
20
|
+
get "/assemblies/:assembly_id/f/:feature_id", to: redirect { |params, _request|
|
21
|
+
assembly = Decidim::Assembly.find(params[:assembly_id])
|
22
|
+
assembly ? "/assemblies/#{assembly.slug}/f/#{params[:feature_id]}" : "/404"
|
23
|
+
}, constraints: { assembly_id: /[0-9]+/ }
|
24
|
+
|
25
|
+
resources :assemblies, only: [:index, :show], param: :slug, path: "assemblies" do
|
16
26
|
resource :assembly_widget, only: :show, path: "embed"
|
17
27
|
end
|
18
28
|
|
19
|
-
scope "/assemblies/:
|
29
|
+
scope "/assemblies/:assembly_slug/f/:feature_id" do
|
20
30
|
Decidim.feature_manifests.each do |manifest|
|
21
31
|
next unless manifest.engine
|
22
32
|
|
@@ -45,6 +55,7 @@ module Decidim
|
|
45
55
|
menu.item I18n.t("menu.assemblies", scope: "decidim"),
|
46
56
|
decidim_assemblies.assemblies_path,
|
47
57
|
position: 2.5,
|
58
|
+
if: Decidim::Assembly.where(organization: current_organization).published.any?,
|
48
59
|
active: :inclusive
|
49
60
|
end
|
50
61
|
end
|
@@ -10,8 +10,8 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
|
|
10
10
|
organization = Decidim::Organization.first
|
11
11
|
seeds_root = File.join(__dir__, "..", "..", "..", "db", "seeds")
|
12
12
|
|
13
|
-
|
14
|
-
Decidim::Assembly.create!(
|
13
|
+
2.times do
|
14
|
+
assembly = Decidim::Assembly.create!(
|
15
15
|
title: Decidim::Faker::Localized.sentence(5),
|
16
16
|
slug: Faker::Internet.unique.slug(nil, "-"),
|
17
17
|
subtitle: Decidim::Faker::Localized.sentence(2),
|
@@ -35,9 +35,7 @@ Decidim.register_participatory_space(:assemblies) do |participatory_space|
|
|
35
35
|
participatory_structure: Decidim::Faker::Localized.sentence(2),
|
36
36
|
scope: Faker::Boolean.boolean(0.5) ? nil : Decidim::Scope.reorder("RANDOM()").first
|
37
37
|
)
|
38
|
-
end
|
39
38
|
|
40
|
-
Decidim::Assembly.find_each do |assembly|
|
41
39
|
Decidim::Attachment.create!(
|
42
40
|
title: Decidim::Faker::Localized.sentence(2),
|
43
41
|
description: Decidim::Faker::Localized.sentence(5),
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-assemblies
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-10-
|
13
|
+
date: 2017-10-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,56 +18,42 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.7.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 0.
|
29
|
-
- !ruby/object:Gem::Dependency
|
30
|
-
name: rails
|
31
|
-
requirement: !ruby/object:Gem::Requirement
|
32
|
-
requirements:
|
33
|
-
- - "~>"
|
34
|
-
- !ruby/object:Gem::Version
|
35
|
-
version: 5.1.3
|
36
|
-
type: :runtime
|
37
|
-
prerelease: false
|
38
|
-
version_requirements: !ruby/object:Gem::Requirement
|
39
|
-
requirements:
|
40
|
-
- - "~>"
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
version: 5.1.3
|
28
|
+
version: 0.7.0
|
43
29
|
- !ruby/object:Gem::Dependency
|
44
30
|
name: decidim-dev
|
45
31
|
requirement: !ruby/object:Gem::Requirement
|
46
32
|
requirements:
|
47
33
|
- - '='
|
48
34
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.
|
35
|
+
version: 0.7.0
|
50
36
|
type: :development
|
51
37
|
prerelease: false
|
52
38
|
version_requirements: !ruby/object:Gem::Requirement
|
53
39
|
requirements:
|
54
40
|
- - '='
|
55
41
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.
|
42
|
+
version: 0.7.0
|
57
43
|
- !ruby/object:Gem::Dependency
|
58
44
|
name: decidim-admin
|
59
45
|
requirement: !ruby/object:Gem::Requirement
|
60
46
|
requirements:
|
61
47
|
- - '='
|
62
48
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.
|
49
|
+
version: 0.7.0
|
64
50
|
type: :development
|
65
51
|
prerelease: false
|
66
52
|
version_requirements: !ruby/object:Gem::Requirement
|
67
53
|
requirements:
|
68
54
|
- - '='
|
69
55
|
- !ruby/object:Gem::Version
|
70
|
-
version: 0.
|
56
|
+
version: 0.7.0
|
71
57
|
description: Assemblies plugin for decidim
|
72
58
|
email:
|
73
59
|
- josepjaume@gmail.com
|
@@ -129,7 +115,6 @@ files:
|
|
129
115
|
- app/views/decidim/assemblies/admin/assemblies/new.html.erb
|
130
116
|
- app/views/decidim/assemblies/admin/assembly_copies/_form.html.erb
|
131
117
|
- app/views/decidim/assemblies/admin/assembly_copies/new.html.erb
|
132
|
-
- app/views/decidim/assemblies/assemblies/_no_assemblies_yet.html.erb
|
133
118
|
- app/views/decidim/assemblies/assemblies/_promoted_assembly.html.erb
|
134
119
|
- app/views/decidim/assemblies/assemblies/_statistics.html.erb
|
135
120
|
- app/views/decidim/assemblies/assemblies/index.html.erb
|
@@ -148,6 +133,7 @@ files:
|
|
148
133
|
- config/locales/it.yml
|
149
134
|
- config/locales/nl.yml
|
150
135
|
- config/locales/pl.yml
|
136
|
+
- config/locales/ru.yml
|
151
137
|
- config/locales/uk.yml
|
152
138
|
- db/migrate/20170727190859_add_assemblies.rb
|
153
139
|
- db/migrate/20170822153055_add_scopes_enabled_to_assemblies.rb
|
@@ -161,9 +147,10 @@ files:
|
|
161
147
|
- lib/decidim/assemblies/engine.rb
|
162
148
|
- lib/decidim/assemblies/participatory_space.rb
|
163
149
|
- lib/decidim/assemblies/test/factories.rb
|
150
|
+
- lib/decidim/assemblies/version.rb
|
164
151
|
homepage: https://github.com/decidim/decidim
|
165
152
|
licenses:
|
166
|
-
-
|
153
|
+
- AGPL-3.0
|
167
154
|
metadata: {}
|
168
155
|
post_install_message:
|
169
156
|
rdoc_options: []
|
@@ -181,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
168
|
version: '0'
|
182
169
|
requirements: []
|
183
170
|
rubyforge_project:
|
184
|
-
rubygems_version: 2.6.
|
171
|
+
rubygems_version: 2.6.13
|
185
172
|
signing_key:
|
186
173
|
specification_version: 4
|
187
174
|
summary: Assemblies plugin for decidim
|