decidim-proposals 0.19.1 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/decidim/proposals/orderable.rb +13 -2
- data/app/controllers/decidim/proposals/proposals_controller.rb +1 -1
- data/app/helpers/decidim/proposals/application_helper.rb +10 -0
- data/app/helpers/decidim/proposals/proposals_helper.rb +42 -0
- data/app/models/decidim/proposals/proposal.rb +1 -0
- data/app/presenters/decidim/proposals/proposal_presenter.rb +1 -7
- data/app/services/decidim/proposals/proposal_search.rb +10 -5
- data/app/views/decidim/proposals/proposals/_filters.html.erb +2 -2
- data/app/views/decidim/proposals/proposals/index.html.erb +1 -1
- data/app/views/decidim/proposals/proposals/show.html.erb +3 -24
- data/config/locales/ar.yml +0 -2
- data/config/locales/ca.yml +8 -2
- data/config/locales/cs.yml +0 -2
- data/config/locales/de.yml +0 -2
- data/config/locales/en.yml +9 -3
- data/config/locales/es-MX.yml +0 -2
- data/config/locales/es-PY.yml +0 -2
- data/config/locales/es.yml +0 -2
- data/config/locales/eu.yml +0 -2
- data/config/locales/fi-plain.yml +8 -2
- data/config/locales/fi.yml +8 -2
- data/config/locales/fr.yml +0 -2
- data/config/locales/gl.yml +0 -2
- data/config/locales/hu.yml +8 -2
- data/config/locales/id-ID.yml +0 -2
- data/config/locales/it.yml +8 -2
- data/config/locales/nl.yml +7 -2
- data/config/locales/no.yml +1 -1
- data/config/locales/pl.yml +0 -2
- data/config/locales/pt-BR.yml +0 -2
- data/config/locales/pt.yml +0 -2
- data/config/locales/ru.yml +0 -2
- data/config/locales/sv.yml +0 -2
- data/config/locales/tr-TR.yml +0 -2
- data/config/locales/uk.yml +0 -2
- data/lib/decidim/proposals/version.rb +1 -1
- metadata +19 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd92d9a86bbb41cef36be401939e82e78daf2e9ec8d7dea07921a0b4343e2f01
|
4
|
+
data.tar.gz: 55d68437c2d85ce6e97ba5e89756edb01659ca855392c74cee06545c77bd39fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48fcf93dd3442df4dedba922c14e9dfb7a4a98b0c48edce15a19eaf0a6bd811b63b6a233dddf4385deef4a5424ff9c61975e579ccf367b89b798e2b980c1c798
|
7
|
+
data.tar.gz: 1a853edd8aa360ffba5732d77aea004da8450a4c097289db4fcf9398b8754d7bbbff1ab3c137a141ef2183a3e8373dbe495cd20731bbb1e878ac69626f243f13
|
@@ -18,6 +18,9 @@ module Decidim
|
|
18
18
|
@available_orders ||= begin
|
19
19
|
available_orders = %w(random recent)
|
20
20
|
available_orders << "most_voted" if most_voted_order_available?
|
21
|
+
available_orders << "most_endorsed" if current_settings.endorsements_enabled?
|
22
|
+
available_orders << "most_commented" if component_settings.comments_enabled?
|
23
|
+
available_orders << "most_followed" << "with_more_authors"
|
21
24
|
available_orders
|
22
25
|
end
|
23
26
|
end
|
@@ -40,12 +43,20 @@ module Decidim
|
|
40
43
|
|
41
44
|
def reorder(proposals)
|
42
45
|
case order
|
43
|
-
when "
|
44
|
-
proposals.
|
46
|
+
when "most_commented"
|
47
|
+
proposals.left_joins(:comments).group(:id).order(Arel.sql("COUNT(decidim_comments_comments.id) DESC"))
|
48
|
+
when "most_endorsed"
|
49
|
+
proposals.order(proposal_endorsements_count: :desc)
|
50
|
+
when "most_followed"
|
51
|
+
proposals.left_joins(:follows).group(:id).order(Arel.sql("COUNT(decidim_follows.id) DESC"))
|
45
52
|
when "most_voted"
|
46
53
|
proposals.order(proposal_votes_count: :desc)
|
54
|
+
when "random"
|
55
|
+
proposals.order_randomly(random_seed)
|
47
56
|
when "recent"
|
48
57
|
proposals.order(published_at: :desc)
|
58
|
+
when "with_more_authors"
|
59
|
+
proposals.order(coauthorships_count: :desc)
|
49
60
|
end
|
50
61
|
end
|
51
62
|
end
|
@@ -157,6 +157,16 @@ module Decidim
|
|
157
157
|
["amendments", t("decidim.proposals.application_helper.filter_type_values.amendments")]
|
158
158
|
]
|
159
159
|
end
|
160
|
+
|
161
|
+
# Options to filter Proposals by activity.
|
162
|
+
def activity_filter_values
|
163
|
+
base = [
|
164
|
+
["all", t(".all")],
|
165
|
+
["my_proposals", t(".my_proposals")]
|
166
|
+
]
|
167
|
+
base += [["voted", t(".voted")]] if current_settings.votes_enabled?
|
168
|
+
base
|
169
|
+
end
|
160
170
|
end
|
161
171
|
end
|
162
172
|
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Decidim
|
4
|
+
module Proposals
|
5
|
+
# Simple helpers to handle markup variations for proposals
|
6
|
+
module ProposalsHelper
|
7
|
+
def proposal_reason_callout_args
|
8
|
+
{
|
9
|
+
announcement: {
|
10
|
+
title: proposal_reason_callout_title,
|
11
|
+
body: decidim_sanitize(translated_attribute(@proposal.answer))
|
12
|
+
},
|
13
|
+
callout_class: proposal_reason_callout_class
|
14
|
+
}
|
15
|
+
end
|
16
|
+
|
17
|
+
def proposal_reason_callout_class
|
18
|
+
case @proposal.state
|
19
|
+
when "accepted"
|
20
|
+
"success"
|
21
|
+
when "evaluating"
|
22
|
+
"warning"
|
23
|
+
when "rejected"
|
24
|
+
"alert"
|
25
|
+
else
|
26
|
+
""
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def proposal_reason_callout_title
|
31
|
+
i18n_key = case @proposal.state
|
32
|
+
when "evaluating"
|
33
|
+
"proposal_in_evaluation_reason"
|
34
|
+
else
|
35
|
+
"proposal_#{@proposal.state}_reason"
|
36
|
+
end
|
37
|
+
|
38
|
+
t(i18n_key, scope: "decidim.proposals.proposals.show")
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -56,6 +56,7 @@ module Decidim
|
|
56
56
|
scope :except_rejected, -> { where.not(state: "rejected").or(where(state: nil)) }
|
57
57
|
scope :except_withdrawn, -> { where.not(state: "withdrawn").or(where(state: nil)) }
|
58
58
|
scope :drafts, -> { where(published_at: nil) }
|
59
|
+
scope :except_drafts, -> { where.not(published_at: nil) }
|
59
60
|
scope :published, -> { where.not(published_at: nil) }
|
60
61
|
|
61
62
|
acts_as_list scope: :decidim_component_id
|
@@ -16,13 +16,7 @@ module Decidim
|
|
16
16
|
Decidim::Proposals::OfficialAuthorPresenter.new
|
17
17
|
else
|
18
18
|
coauthorship = coauthorships.first
|
19
|
-
|
20
|
-
Decidim::UserGroupPresenter.new(coauthorship.user_group)
|
21
|
-
elsif coauthorship.author.is_a?(Decidim::User)
|
22
|
-
Decidim::UserPresenter.new(coauthorship.author)
|
23
|
-
elsif coauthorship.author.is_a?(Decidim::Meeting)
|
24
|
-
Decidim::MeetingPresenter.new(coauthorship.author)
|
25
|
-
end
|
19
|
+
coauthorship.user_group&.presenter || coauthorship.author.presenter
|
26
20
|
end
|
27
21
|
end
|
28
22
|
|
@@ -53,13 +53,18 @@ module Decidim
|
|
53
53
|
|
54
54
|
# Handle the activity filter
|
55
55
|
def search_activity
|
56
|
-
|
56
|
+
case activity
|
57
|
+
when "voted"
|
57
58
|
query
|
58
59
|
.includes(:votes)
|
59
|
-
.where(decidim_proposals_proposal_votes: {
|
60
|
-
|
61
|
-
|
62
|
-
|
60
|
+
.where(decidim_proposals_proposal_votes: { decidim_author_id: @current_user })
|
61
|
+
when "my_proposals"
|
62
|
+
query
|
63
|
+
.where.not(coauthorships_count: 0)
|
64
|
+
.joins(:coauthorships)
|
65
|
+
.where(decidim_coauthorships: { decidim_author_type: "Decidim::UserBaseEntity" })
|
66
|
+
.where(decidim_coauthorships: { decidim_author_id: @current_user })
|
67
|
+
else # Assume 'all'
|
63
68
|
query
|
64
69
|
end
|
65
70
|
end
|
@@ -28,8 +28,8 @@
|
|
28
28
|
<%= form.collection_radio_buttons :related_to, linked_classes_filter_values_for(Decidim::Proposals::Proposal), :first, :last, legend_title: t(".related_to") %>
|
29
29
|
<% end %>
|
30
30
|
|
31
|
-
<% if current_user
|
32
|
-
<%= form.
|
31
|
+
<% if current_user %>
|
32
|
+
<%= form.collection_radio_buttons :activity, activity_filter_values, :first, :last, legend_title: t(".activity") %>
|
33
33
|
<% end %>
|
34
34
|
|
35
35
|
<% if current_participatory_space.has_subscopes? %>
|
@@ -34,7 +34,7 @@
|
|
34
34
|
<%= render partial: "count" %>
|
35
35
|
</h2>
|
36
36
|
<% if current_settings.creation_enabled && current_component.participatory_space.can_participate?(current_user) %>
|
37
|
-
<%= action_authorized_link_to :create, new_proposal_path, class: "title-action__action button small
|
37
|
+
<%= action_authorized_link_to :create, new_proposal_path, class: "title-action__action button small", data: { "redirect_url" => new_proposal_path } do %>
|
38
38
|
<%= t(".new_proposal") %>
|
39
39
|
<%= icon "plus" %>
|
40
40
|
<% end %>
|
@@ -108,30 +108,9 @@ edit_link(
|
|
108
108
|
<% end %>
|
109
109
|
<%= cell "decidim/proposals/proposal_tags", @proposal %>
|
110
110
|
</div>
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
<div class="callout success">
|
115
|
-
<h5><%= t(".proposal_accepted_reason") %></h5>
|
116
|
-
<p><%= decidim_sanitize translated_attribute @proposal.answer %></p>
|
117
|
-
</div>
|
118
|
-
</div>
|
119
|
-
<% elsif @proposal.rejected? %>
|
120
|
-
<div class="section">
|
121
|
-
<div class="callout warning">
|
122
|
-
<h5><%= t(".proposal_rejected_reason") %></h5>
|
123
|
-
<p><%= decidim_sanitize translated_attribute @proposal.answer %></p>
|
124
|
-
</div>
|
125
|
-
</div>
|
126
|
-
<% else %>
|
127
|
-
<div class="section">
|
128
|
-
<div class="callout secondary">
|
129
|
-
<h5><%= t(".proposal_in_evaluation_reason") %></h5>
|
130
|
-
<p><%= decidim_sanitize translated_attribute @proposal.answer %></p>
|
131
|
-
</div>
|
132
|
-
</div>
|
133
|
-
<% end %>
|
134
|
-
<% end %>
|
111
|
+
|
112
|
+
<%= cell("decidim/announcement", proposal_reason_callout_args) if @proposal.answered? %>
|
113
|
+
|
135
114
|
<%= linked_resources_for @proposal, :results, "included_proposals" %>
|
136
115
|
<%= linked_resources_for @proposal, :projects, "included_proposals" %>
|
137
116
|
<%= linked_resources_for @proposal, :meetings, "proposals_from_meeting" %>
|
data/config/locales/ar.yml
CHANGED
@@ -18,7 +18,6 @@ ar:
|
|
18
18
|
body: الجسم
|
19
19
|
category_id: الفئة
|
20
20
|
has_address: لديه عنوان
|
21
|
-
scope_id: نطاق
|
22
21
|
state: حالة
|
23
22
|
suggested_hashtags: الهاشتاج المقترحة
|
24
23
|
title: عنوان
|
@@ -647,7 +646,6 @@ ar:
|
|
647
646
|
endorsements_card_row:
|
648
647
|
comments: تعليقات
|
649
648
|
filters:
|
650
|
-
activity: نشاط
|
651
649
|
amendment_type: نوع
|
652
650
|
category: الفئة
|
653
651
|
category_prompt: اختر تصنيف
|
data/config/locales/ca.yml
CHANGED
@@ -17,8 +17,8 @@ ca:
|
|
17
17
|
automatic_hashtags: Hashtags afegits automàticament
|
18
18
|
body: Cos
|
19
19
|
category_id: Categoria
|
20
|
+
decidim_scope_id: Àmbit
|
20
21
|
has_address: Té adreça
|
21
|
-
scope_id: Àmbit
|
22
22
|
state: Estat
|
23
23
|
suggested_hashtags: Hashtags suggerits
|
24
24
|
title: Títol
|
@@ -644,10 +644,12 @@ ca:
|
|
644
644
|
endorsements_card_row:
|
645
645
|
comments: Comentaris
|
646
646
|
filters:
|
647
|
-
activity:
|
647
|
+
activity: La meva activitat
|
648
|
+
all: Tots
|
648
649
|
amendment_type: Tipus
|
649
650
|
category: Categoria
|
650
651
|
category_prompt: Selecciona una categoria
|
652
|
+
my_proposals: Les meves propostes
|
651
653
|
origin: Origen
|
652
654
|
related_to: Relacionat amb
|
653
655
|
search: Cerca
|
@@ -672,9 +674,13 @@ ca:
|
|
672
674
|
title: Crea la teva proposta
|
673
675
|
orders:
|
674
676
|
label: 'Ordenar propostes per:'
|
677
|
+
most_commented: Més comentats
|
678
|
+
most_endorsed: Més recolzats
|
679
|
+
most_followed: Més seguits
|
675
680
|
most_voted: Amb més suports
|
676
681
|
random: Aleatori
|
677
682
|
recent: Recent
|
683
|
+
with_more_authors: Amb més autors
|
678
684
|
participatory_texts:
|
679
685
|
index:
|
680
686
|
document_index: Índex del document
|
data/config/locales/cs.yml
CHANGED
@@ -18,7 +18,6 @@ cs:
|
|
18
18
|
body: Tělo
|
19
19
|
category_id: Kategorie
|
20
20
|
has_address: Má adresu
|
21
|
-
scope_id: Rozsah
|
22
21
|
state: Stát
|
23
22
|
suggested_hashtags: Navrhované hashtags
|
24
23
|
title: Titul
|
@@ -660,7 +659,6 @@ cs:
|
|
660
659
|
endorsements_card_row:
|
661
660
|
comments: Komentáře
|
662
661
|
filters:
|
663
|
-
activity: Aktivita
|
664
662
|
amendment_type: Typ
|
665
663
|
category: Kategorie
|
666
664
|
category_prompt: Vyberte kategorii
|
data/config/locales/de.yml
CHANGED
@@ -18,7 +18,6 @@ de:
|
|
18
18
|
body: Karosserie
|
19
19
|
category_id: Kategorie
|
20
20
|
has_address: Hat eine Adresse
|
21
|
-
scope_id: Umfang
|
22
21
|
state: Zustand
|
23
22
|
suggested_hashtags: Vorgeschlagene Hashtags
|
24
23
|
title: Titel
|
@@ -631,7 +630,6 @@ de:
|
|
631
630
|
endorsements_card_row:
|
632
631
|
comments: Bemerkungen
|
633
632
|
filters:
|
634
|
-
activity: Aktivität
|
635
633
|
amendment_type: Art
|
636
634
|
category: Kategorie
|
637
635
|
category_prompt: Wählen Sie eine Kategorie
|
data/config/locales/en.yml
CHANGED
@@ -18,8 +18,8 @@ en:
|
|
18
18
|
automatic_hashtags: Hashtags automatically added
|
19
19
|
body: Body
|
20
20
|
category_id: Category
|
21
|
+
decidim_scope_id: Scope
|
21
22
|
has_address: Has address
|
22
|
-
scope_id: Scope
|
23
23
|
state: State
|
24
24
|
suggested_hashtags: Suggested hashtags
|
25
25
|
title: Title
|
@@ -539,7 +539,7 @@ en:
|
|
539
539
|
hidden_authors_count:
|
540
540
|
one: and %{count} more person
|
541
541
|
other: and %{count} more people
|
542
|
-
info-message: This is a <strong>collaborative draft</strong> for a proposal. This means that you can help their authors to shape the proposal using the comment section below or improve it directly by requesting access to edit it. Once the authors grant you access,
|
542
|
+
info-message: This is a <strong>collaborative draft</strong> for a proposal. This means that you can help their authors to shape the proposal using the comment section below or improve it directly by requesting access to edit it. Once the authors grant you access, you'll be able to make changes to this draft.
|
543
543
|
of_versions: "(of %{number})"
|
544
544
|
publish: Publish
|
545
545
|
publish_info: Publish this version of the draft or
|
@@ -645,10 +645,12 @@ en:
|
|
645
645
|
endorsements_card_row:
|
646
646
|
comments: Comments
|
647
647
|
filters:
|
648
|
-
activity:
|
648
|
+
activity: My activity
|
649
|
+
all: All
|
649
650
|
amendment_type: Type
|
650
651
|
category: Category
|
651
652
|
category_prompt: Select a category
|
653
|
+
my_proposals: My proposals
|
652
654
|
origin: Origin
|
653
655
|
related_to: Related to
|
654
656
|
search: Search
|
@@ -673,9 +675,13 @@ en:
|
|
673
675
|
title: Create Your Proposal
|
674
676
|
orders:
|
675
677
|
label: 'Order proposals by:'
|
678
|
+
most_commented: Most commented
|
679
|
+
most_endorsed: Most endorsed
|
680
|
+
most_followed: Most followed
|
676
681
|
most_voted: Most supported
|
677
682
|
random: Random
|
678
683
|
recent: Recent
|
684
|
+
with_more_authors: With more authors
|
679
685
|
participatory_texts:
|
680
686
|
index:
|
681
687
|
document_index: Document index
|
data/config/locales/es-MX.yml
CHANGED
@@ -18,7 +18,6 @@ es-MX:
|
|
18
18
|
body: Cuerpo
|
19
19
|
category_id: Categoría
|
20
20
|
has_address: Tiene dirección
|
21
|
-
scope_id: Ámbito
|
22
21
|
state: Estado
|
23
22
|
suggested_hashtags: Hashtags sugeridos
|
24
23
|
title: Título
|
@@ -644,7 +643,6 @@ es-MX:
|
|
644
643
|
endorsements_card_row:
|
645
644
|
comments: Comentarios
|
646
645
|
filters:
|
647
|
-
activity: Actividad
|
648
646
|
amendment_type: Tipo
|
649
647
|
category: Categoría
|
650
648
|
category_prompt: Selecciona una categoría
|
data/config/locales/es-PY.yml
CHANGED
@@ -18,7 +18,6 @@ es-PY:
|
|
18
18
|
body: Cuerpo
|
19
19
|
category_id: Categoría
|
20
20
|
has_address: Tiene dirección
|
21
|
-
scope_id: Ámbito
|
22
21
|
state: Estado
|
23
22
|
suggested_hashtags: Hashtags sugeridos
|
24
23
|
title: Título
|
@@ -644,7 +643,6 @@ es-PY:
|
|
644
643
|
endorsements_card_row:
|
645
644
|
comments: Comentarios
|
646
645
|
filters:
|
647
|
-
activity: Actividad
|
648
646
|
amendment_type: Tipo
|
649
647
|
category: Categoría
|
650
648
|
category_prompt: Selecciona una categoría
|
data/config/locales/es.yml
CHANGED
@@ -18,7 +18,6 @@ es:
|
|
18
18
|
body: Cuerpo
|
19
19
|
category_id: Categoría
|
20
20
|
has_address: Tiene dirección
|
21
|
-
scope_id: Ámbito
|
22
21
|
state: Estado
|
23
22
|
suggested_hashtags: Hashtags sugeridos
|
24
23
|
title: Título
|
@@ -644,7 +643,6 @@ es:
|
|
644
643
|
endorsements_card_row:
|
645
644
|
comments: Comentarios
|
646
645
|
filters:
|
647
|
-
activity: Actividad
|
648
646
|
amendment_type: Tipo
|
649
647
|
category: Categoría
|
650
648
|
category_prompt: Selecciona una categoría
|
data/config/locales/eu.yml
CHANGED
@@ -18,7 +18,6 @@ eu:
|
|
18
18
|
body: Testua
|
19
19
|
category_id: Kategoria
|
20
20
|
has_address: Helbidea du
|
21
|
-
scope_id: Esparrua
|
22
21
|
state: Estatu
|
23
22
|
suggested_hashtags: Iradokitako hashtagak
|
24
23
|
title: Titulua
|
@@ -629,7 +628,6 @@ eu:
|
|
629
628
|
endorsements_card_row:
|
630
629
|
comments: Oharrak
|
631
630
|
filters:
|
632
|
-
activity: Jarduera
|
633
631
|
amendment_type: Mota
|
634
632
|
category: Kategoria
|
635
633
|
category_prompt: Aukeratu kategoria bat
|
data/config/locales/fi-plain.yml
CHANGED
@@ -17,8 +17,8 @@ fi-pl:
|
|
17
17
|
automatic_hashtags: Hashtagit lisätty automaattisesti
|
18
18
|
body: Ehdotuksen kuvaus
|
19
19
|
category_id: Aihepiiri
|
20
|
+
decidim_scope_id: Teema
|
20
21
|
has_address: Ehdotuksella on sijainti
|
21
|
-
scope_id: Teema
|
22
22
|
state: Tila
|
23
23
|
suggested_hashtags: Ehdotetut hashtagit
|
24
24
|
title: Ehdotuksen nimi
|
@@ -644,10 +644,12 @@ fi-pl:
|
|
644
644
|
endorsements_card_row:
|
645
645
|
comments: Kommentit
|
646
646
|
filters:
|
647
|
-
activity:
|
647
|
+
activity: Oma toiminta
|
648
|
+
all: Kaikki
|
648
649
|
amendment_type: Tyyppi
|
649
650
|
category: Aihepiiri
|
650
651
|
category_prompt: Valitse aihepiiri
|
652
|
+
my_proposals: Omat ehdotukset
|
651
653
|
origin: Alkuperä
|
652
654
|
related_to: Liittyy aiheeseen
|
653
655
|
search: Haku
|
@@ -672,9 +674,13 @@ fi-pl:
|
|
672
674
|
title: Luo ehdotuksesi
|
673
675
|
orders:
|
674
676
|
label: 'Järjestä ehdotukset:'
|
677
|
+
most_commented: Eniten kommentoidut
|
678
|
+
most_endorsed: Eniten suositellut
|
679
|
+
most_followed: Eniten seuratut
|
675
680
|
most_voted: Eniten ääniä saaneet
|
676
681
|
random: Satunnainen
|
677
682
|
recent: Viimeisimmät
|
683
|
+
with_more_authors: Eniten laatijoita
|
678
684
|
participatory_texts:
|
679
685
|
index:
|
680
686
|
document_index: Asiakirjan hakemisto
|
data/config/locales/fi.yml
CHANGED
@@ -17,8 +17,8 @@ fi:
|
|
17
17
|
automatic_hashtags: Hashtagit lisätty automaattisesti
|
18
18
|
body: Ehdotuksen kuvaus
|
19
19
|
category_id: Aihepiiri
|
20
|
+
decidim_scope_id: Teema
|
20
21
|
has_address: Ehdotuksella on sijainti
|
21
|
-
scope_id: Teema
|
22
22
|
state: Tila
|
23
23
|
suggested_hashtags: Ehdotetut hashtagit
|
24
24
|
title: Ehdotuksen nimi
|
@@ -644,10 +644,12 @@ fi:
|
|
644
644
|
endorsements_card_row:
|
645
645
|
comments: Kommentit
|
646
646
|
filters:
|
647
|
-
activity:
|
647
|
+
activity: Oma toiminta
|
648
|
+
all: Kaikki
|
648
649
|
amendment_type: Tyyppi
|
649
650
|
category: Aihepiiri
|
650
651
|
category_prompt: Valitse aihepiiri
|
652
|
+
my_proposals: Omat ehdotukset
|
651
653
|
origin: Alkuperä
|
652
654
|
related_to: Liittyy aiheeseen
|
653
655
|
search: Haku
|
@@ -672,9 +674,13 @@ fi:
|
|
672
674
|
title: Luo ehdotuksesi
|
673
675
|
orders:
|
674
676
|
label: 'Järjestä ehdotukset:'
|
677
|
+
most_commented: Eniten kommentoidut
|
678
|
+
most_endorsed: Eniten suositellut
|
679
|
+
most_followed: Eniten seuratut
|
675
680
|
most_voted: Eniten kannatuksia saaneet
|
676
681
|
random: Satunnainen
|
677
682
|
recent: Viimeisimmät
|
683
|
+
with_more_authors: Eniten laatijoita
|
678
684
|
participatory_texts:
|
679
685
|
index:
|
680
686
|
document_index: Asiakirjan hakemisto
|
data/config/locales/fr.yml
CHANGED
@@ -18,7 +18,6 @@ fr:
|
|
18
18
|
body: Corps du texte
|
19
19
|
category_id: Catégorie
|
20
20
|
has_address: Renseigner une adresse
|
21
|
-
scope_id: Périmètre d'application
|
22
21
|
state: État
|
23
22
|
suggested_hashtags: Hashtags suggérés
|
24
23
|
title: Titre
|
@@ -644,7 +643,6 @@ fr:
|
|
644
643
|
endorsements_card_row:
|
645
644
|
comments: Commentaires
|
646
645
|
filters:
|
647
|
-
activity: Activité
|
648
646
|
amendment_type: Type
|
649
647
|
category: Catégorie
|
650
648
|
category_prompt: Sélectionner une catégorie
|
data/config/locales/gl.yml
CHANGED
@@ -18,7 +18,6 @@ gl:
|
|
18
18
|
body: Corpo
|
19
19
|
category_id: Categoría
|
20
20
|
has_address: Ten enderezo
|
21
|
-
scope_id: Alcance
|
22
21
|
state: Estado
|
23
22
|
suggested_hashtags: Hashtags suxeridos
|
24
23
|
title: Título
|
@@ -629,7 +628,6 @@ gl:
|
|
629
628
|
endorsements_card_row:
|
630
629
|
comments: Comentarios
|
631
630
|
filters:
|
632
|
-
activity: Actividade
|
633
631
|
amendment_type: Tipo
|
634
632
|
category: Categoría
|
635
633
|
category_prompt: Selecciona unha categoría
|
data/config/locales/hu.yml
CHANGED
@@ -17,8 +17,8 @@ hu:
|
|
17
17
|
automatic_hashtags: Hashtagek automatikusan hozzáadva
|
18
18
|
body: Szöveg
|
19
19
|
category_id: Kategória
|
20
|
+
decidim_scope_id: Hatáskör
|
20
21
|
has_address: Van lakcíme
|
21
|
-
scope_id: Hatáskör
|
22
22
|
state: Állapot
|
23
23
|
suggested_hashtags: Javasolt hashtagek
|
24
24
|
title: Cím
|
@@ -644,10 +644,12 @@ hu:
|
|
644
644
|
endorsements_card_row:
|
645
645
|
comments: Hozzászólások
|
646
646
|
filters:
|
647
|
-
activity:
|
647
|
+
activity: Tevékenységeim
|
648
|
+
all: Összes
|
648
649
|
amendment_type: Típus
|
649
650
|
category: Kategória
|
650
651
|
category_prompt: Válassz kategóriát
|
652
|
+
my_proposals: Javaslataim
|
651
653
|
origin: Kiindulópont
|
652
654
|
related_to: Kapcsolódó
|
653
655
|
search: Keresés
|
@@ -672,9 +674,13 @@ hu:
|
|
672
674
|
title: Hozz létre javaslatot
|
673
675
|
orders:
|
674
676
|
label: 'Javaslatok rendezése:'
|
677
|
+
most_commented: Legkommentáltabb
|
678
|
+
most_endorsed: Legtámogatottabb
|
679
|
+
most_followed: Legkövetettebb
|
675
680
|
most_voted: Legtöbb szavazattal
|
676
681
|
random: Véletlenszerű
|
677
682
|
recent: Legutóbbi
|
683
|
+
with_more_authors: Több szerző
|
678
684
|
participatory_texts:
|
679
685
|
index:
|
680
686
|
document_index: Dokumentum index
|
data/config/locales/id-ID.yml
CHANGED
@@ -18,7 +18,6 @@ id:
|
|
18
18
|
body: Tubuh
|
19
19
|
category_id: Kategori
|
20
20
|
has_address: Memiliki alamat
|
21
|
-
scope_id: Cakupan
|
22
21
|
state: Negara
|
23
22
|
suggested_hashtags: Tagar yang disarankan
|
24
23
|
title: Judul
|
@@ -621,7 +620,6 @@ id:
|
|
621
620
|
endorsements_card_row:
|
622
621
|
comments: Komentar
|
623
622
|
filters:
|
624
|
-
activity: Aktivitas
|
625
623
|
amendment_type: Mengetik
|
626
624
|
category: Kategori
|
627
625
|
category_prompt: Pilih Kategori
|
data/config/locales/it.yml
CHANGED
@@ -17,8 +17,8 @@ it:
|
|
17
17
|
automatic_hashtags: Hashtag aggiunti automaticamente
|
18
18
|
body: Corpo del testo
|
19
19
|
category_id: Categoria
|
20
|
+
decidim_scope_id: Ambito
|
20
21
|
has_address: Ha un indirizzo
|
21
|
-
scope_id: Visibilità
|
22
22
|
state: Stato
|
23
23
|
suggested_hashtags: Hashtag consigliati
|
24
24
|
title: Titolo
|
@@ -644,10 +644,12 @@ it:
|
|
644
644
|
endorsements_card_row:
|
645
645
|
comments: Commenti
|
646
646
|
filters:
|
647
|
-
activity:
|
647
|
+
activity: La mia attività
|
648
|
+
all: Tutti
|
648
649
|
amendment_type: genere
|
649
650
|
category: Categoria
|
650
651
|
category_prompt: Scegli una categoria
|
652
|
+
my_proposals: Le mie proposte
|
651
653
|
origin: Origine
|
652
654
|
related_to: Associata a
|
653
655
|
search: Cerca
|
@@ -672,9 +674,13 @@ it:
|
|
672
674
|
title: Crea la tua proposta
|
673
675
|
orders:
|
674
676
|
label: 'Ordina le proposte per:'
|
677
|
+
most_commented: I più commentati
|
678
|
+
most_endorsed: I più approvati
|
679
|
+
most_followed: I più seguiti
|
675
680
|
most_voted: Più votate
|
676
681
|
random: A caso
|
677
682
|
recent: le più recenti
|
683
|
+
with_more_authors: Con più autori
|
678
684
|
participatory_texts:
|
679
685
|
index:
|
680
686
|
document_index: Indice del documento
|
data/config/locales/nl.yml
CHANGED
@@ -18,7 +18,6 @@ nl:
|
|
18
18
|
body: Body
|
19
19
|
category_id: Categorie
|
20
20
|
has_address: Heeft adres
|
21
|
-
scope_id: Scope
|
22
21
|
state: Status
|
23
22
|
suggested_hashtags: Voorgestelde hashtags
|
24
23
|
title: Titel
|
@@ -644,10 +643,12 @@ nl:
|
|
644
643
|
endorsements_card_row:
|
645
644
|
comments: Comments
|
646
645
|
filters:
|
647
|
-
activity:
|
646
|
+
activity: Mijn activiteit
|
647
|
+
all: Alle
|
648
648
|
amendment_type: Type
|
649
649
|
category: Categorie
|
650
650
|
category_prompt: Kies een categorie
|
651
|
+
my_proposals: Mijn voorstellen
|
651
652
|
origin: Oorsprong
|
652
653
|
related_to: Gerelateerd aan
|
653
654
|
search: Zoeken
|
@@ -672,9 +673,13 @@ nl:
|
|
672
673
|
title: Maak voorstel aan
|
673
674
|
orders:
|
674
675
|
label: 'Bestelling sorteren op:'
|
676
|
+
most_commented: Meeste reacties
|
677
|
+
most_endorsed: Meest goedgekeurd
|
678
|
+
most_followed: Meest gevolgd
|
675
679
|
most_voted: Meeste stemmen
|
676
680
|
random: Willekeurig
|
677
681
|
recent: Meest recent
|
682
|
+
with_more_authors: Met meer auteurs
|
678
683
|
participatory_texts:
|
679
684
|
index:
|
680
685
|
document_index: Documentindex
|
data/config/locales/no.yml
CHANGED
data/config/locales/pl.yml
CHANGED
@@ -18,7 +18,6 @@ pl:
|
|
18
18
|
body: Ciało
|
19
19
|
category_id: Kategoria
|
20
20
|
has_address: Ma adres
|
21
|
-
scope_id: Zakres
|
22
21
|
state: Stan
|
23
22
|
suggested_hashtags: Sugerowane hashtagi
|
24
23
|
title: Tytuł
|
@@ -645,7 +644,6 @@ pl:
|
|
645
644
|
endorsements_card_row:
|
646
645
|
comments: Komentarze
|
647
646
|
filters:
|
648
|
-
activity: Czynność
|
649
647
|
amendment_type: Rodzaj
|
650
648
|
category: Kategoria
|
651
649
|
category_prompt: Wybierz kategorię
|
data/config/locales/pt-BR.yml
CHANGED
@@ -18,7 +18,6 @@ pt-BR:
|
|
18
18
|
body: Corpo
|
19
19
|
category_id: Categoria
|
20
20
|
has_address: Tem endereço
|
21
|
-
scope_id: Âmbito
|
22
21
|
state: Estado
|
23
22
|
suggested_hashtags: Hashtags sugeridos
|
24
23
|
title: Título
|
@@ -629,7 +628,6 @@ pt-BR:
|
|
629
628
|
endorsements_card_row:
|
630
629
|
comments: Comentários
|
631
630
|
filters:
|
632
|
-
activity: Atividade
|
633
631
|
amendment_type: Tipo
|
634
632
|
category: Categoria
|
635
633
|
category_prompt: Selecionar uma categoria
|
data/config/locales/pt.yml
CHANGED
@@ -18,7 +18,6 @@ pt:
|
|
18
18
|
body: Corpo
|
19
19
|
category_id: Categoria
|
20
20
|
has_address: Tem endereço
|
21
|
-
scope_id: Âmbito
|
22
21
|
state: Estado
|
23
22
|
suggested_hashtags: Hashtags sugeridos
|
24
23
|
title: Título
|
@@ -629,7 +628,6 @@ pt:
|
|
629
628
|
endorsements_card_row:
|
630
629
|
comments: Comentários
|
631
630
|
filters:
|
632
|
-
activity: Atividade
|
633
631
|
amendment_type: Tipo
|
634
632
|
category: Categoria
|
635
633
|
category_prompt: Selecione uma categoria
|
data/config/locales/ru.yml
CHANGED
@@ -7,7 +7,6 @@ ru:
|
|
7
7
|
body: Основной текст
|
8
8
|
category_id: Категория
|
9
9
|
has_address: Имеет адрес
|
10
|
-
scope_id: Охват
|
11
10
|
state: Cостояние
|
12
11
|
title: Заголовок
|
13
12
|
user_group_id: Создать предложение в качестве
|
@@ -303,7 +302,6 @@ ru:
|
|
303
302
|
endorsements_card_row:
|
304
303
|
comments: Комментарии
|
305
304
|
filters:
|
306
|
-
activity: Деятельность
|
307
305
|
category: Категория
|
308
306
|
category_prompt: Выберите категорию
|
309
307
|
origin: Источник
|
data/config/locales/sv.yml
CHANGED
@@ -18,7 +18,6 @@ sv:
|
|
18
18
|
body: Innehåll
|
19
19
|
category_id: Kategori
|
20
20
|
has_address: Har adress
|
21
|
-
scope_id: Omfång
|
22
21
|
state: Status
|
23
22
|
suggested_hashtags: Föreslagna hashtags
|
24
23
|
title: Titel
|
@@ -639,7 +638,6 @@ sv:
|
|
639
638
|
endorsements_card_row:
|
640
639
|
comments: Kommentarer
|
641
640
|
filters:
|
642
|
-
activity: Aktivitet
|
643
641
|
amendment_type: Typ
|
644
642
|
category: Kategori
|
645
643
|
category_prompt: Välj en kategori
|
data/config/locales/tr-TR.yml
CHANGED
@@ -18,7 +18,6 @@ tr:
|
|
18
18
|
body: Vücut
|
19
19
|
category_id: Kategori
|
20
20
|
has_address: Adresi var
|
21
|
-
scope_id: kapsam
|
22
21
|
state: Belirtmek, bildirmek
|
23
22
|
suggested_hashtags: Önerilen hashtag'ler
|
24
23
|
title: Başlık
|
@@ -635,7 +634,6 @@ tr:
|
|
635
634
|
endorsements_card_row:
|
636
635
|
comments: Yorumlar
|
637
636
|
filters:
|
638
|
-
activity: Aktivite
|
639
637
|
amendment_type: tip
|
640
638
|
category: Kategori
|
641
639
|
category_prompt: bir kategori seç
|
data/config/locales/uk.yml
CHANGED
@@ -7,7 +7,6 @@ uk:
|
|
7
7
|
body: Основний текст
|
8
8
|
category_id: Категорія
|
9
9
|
has_address: Має адресу
|
10
|
-
scope_id: Обсяг
|
11
10
|
state: Стан
|
12
11
|
title: Назва
|
13
12
|
user_group_id: Створити пропозицію як
|
@@ -303,7 +302,6 @@ uk:
|
|
303
302
|
endorsements_card_row:
|
304
303
|
comments: Коментарі
|
305
304
|
filters:
|
306
|
-
activity: Діяльність
|
307
305
|
category: Категорія
|
308
306
|
category_prompt: Оберіть категорію
|
309
307
|
origin: Джерело
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-proposals
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.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:
|
13
|
+
date: 2020-01-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: acts_as_list
|
@@ -60,28 +60,28 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - '='
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 0.
|
63
|
+
version: 0.20.0
|
64
64
|
type: :runtime
|
65
65
|
prerelease: false
|
66
66
|
version_requirements: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
68
|
- - '='
|
69
69
|
- !ruby/object:Gem::Version
|
70
|
-
version: 0.
|
70
|
+
version: 0.20.0
|
71
71
|
- !ruby/object:Gem::Dependency
|
72
72
|
name: decidim-core
|
73
73
|
requirement: !ruby/object:Gem::Requirement
|
74
74
|
requirements:
|
75
75
|
- - '='
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.
|
77
|
+
version: 0.20.0
|
78
78
|
type: :runtime
|
79
79
|
prerelease: false
|
80
80
|
version_requirements: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
82
|
- - '='
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: 0.
|
84
|
+
version: 0.20.0
|
85
85
|
- !ruby/object:Gem::Dependency
|
86
86
|
name: diffy
|
87
87
|
requirement: !ruby/object:Gem::Requirement
|
@@ -158,84 +158,84 @@ dependencies:
|
|
158
158
|
requirements:
|
159
159
|
- - '='
|
160
160
|
- !ruby/object:Gem::Version
|
161
|
-
version: 0.
|
161
|
+
version: 0.20.0
|
162
162
|
type: :development
|
163
163
|
prerelease: false
|
164
164
|
version_requirements: !ruby/object:Gem::Requirement
|
165
165
|
requirements:
|
166
166
|
- - '='
|
167
167
|
- !ruby/object:Gem::Version
|
168
|
-
version: 0.
|
168
|
+
version: 0.20.0
|
169
169
|
- !ruby/object:Gem::Dependency
|
170
170
|
name: decidim-assemblies
|
171
171
|
requirement: !ruby/object:Gem::Requirement
|
172
172
|
requirements:
|
173
173
|
- - '='
|
174
174
|
- !ruby/object:Gem::Version
|
175
|
-
version: 0.
|
175
|
+
version: 0.20.0
|
176
176
|
type: :development
|
177
177
|
prerelease: false
|
178
178
|
version_requirements: !ruby/object:Gem::Requirement
|
179
179
|
requirements:
|
180
180
|
- - '='
|
181
181
|
- !ruby/object:Gem::Version
|
182
|
-
version: 0.
|
182
|
+
version: 0.20.0
|
183
183
|
- !ruby/object:Gem::Dependency
|
184
184
|
name: decidim-budgets
|
185
185
|
requirement: !ruby/object:Gem::Requirement
|
186
186
|
requirements:
|
187
187
|
- - '='
|
188
188
|
- !ruby/object:Gem::Version
|
189
|
-
version: 0.
|
189
|
+
version: 0.20.0
|
190
190
|
type: :development
|
191
191
|
prerelease: false
|
192
192
|
version_requirements: !ruby/object:Gem::Requirement
|
193
193
|
requirements:
|
194
194
|
- - '='
|
195
195
|
- !ruby/object:Gem::Version
|
196
|
-
version: 0.
|
196
|
+
version: 0.20.0
|
197
197
|
- !ruby/object:Gem::Dependency
|
198
198
|
name: decidim-dev
|
199
199
|
requirement: !ruby/object:Gem::Requirement
|
200
200
|
requirements:
|
201
201
|
- - '='
|
202
202
|
- !ruby/object:Gem::Version
|
203
|
-
version: 0.
|
203
|
+
version: 0.20.0
|
204
204
|
type: :development
|
205
205
|
prerelease: false
|
206
206
|
version_requirements: !ruby/object:Gem::Requirement
|
207
207
|
requirements:
|
208
208
|
- - '='
|
209
209
|
- !ruby/object:Gem::Version
|
210
|
-
version: 0.
|
210
|
+
version: 0.20.0
|
211
211
|
- !ruby/object:Gem::Dependency
|
212
212
|
name: decidim-meetings
|
213
213
|
requirement: !ruby/object:Gem::Requirement
|
214
214
|
requirements:
|
215
215
|
- - '='
|
216
216
|
- !ruby/object:Gem::Version
|
217
|
-
version: 0.
|
217
|
+
version: 0.20.0
|
218
218
|
type: :development
|
219
219
|
prerelease: false
|
220
220
|
version_requirements: !ruby/object:Gem::Requirement
|
221
221
|
requirements:
|
222
222
|
- - '='
|
223
223
|
- !ruby/object:Gem::Version
|
224
|
-
version: 0.
|
224
|
+
version: 0.20.0
|
225
225
|
- !ruby/object:Gem::Dependency
|
226
226
|
name: decidim-participatory_processes
|
227
227
|
requirement: !ruby/object:Gem::Requirement
|
228
228
|
requirements:
|
229
229
|
- - '='
|
230
230
|
- !ruby/object:Gem::Version
|
231
|
-
version: 0.
|
231
|
+
version: 0.20.0
|
232
232
|
type: :development
|
233
233
|
prerelease: false
|
234
234
|
version_requirements: !ruby/object:Gem::Requirement
|
235
235
|
requirements:
|
236
236
|
- - '='
|
237
237
|
- !ruby/object:Gem::Version
|
238
|
-
version: 0.
|
238
|
+
version: 0.20.0
|
239
239
|
description: A proposals component for decidim's participatory spaces.
|
240
240
|
email:
|
241
241
|
- josepjaume@gmail.com
|
@@ -383,6 +383,7 @@ files:
|
|
383
383
|
- app/helpers/decidim/proposals/proposal_endorsements_helper.rb
|
384
384
|
- app/helpers/decidim/proposals/proposal_votes_helper.rb
|
385
385
|
- app/helpers/decidim/proposals/proposal_wizard_helper.rb
|
386
|
+
- app/helpers/decidim/proposals/proposals_helper.rb
|
386
387
|
- app/jobs/decidim/proposals/notify_proposals_mentioned_job.rb
|
387
388
|
- app/jobs/decidim/proposals/settings_change_job.rb
|
388
389
|
- app/models/decidim/proposals/application_record.rb
|