decidim-results 0.2.0 → 0.3.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/decidim/results/application_controller.rb +1 -1
- data/app/views/decidim/results/results/_linked_results.html.erb +1 -1
- data/config/locales/it.yml +78 -0
- data/db/migrate/20170116104125_create_results.rb +2 -0
- data/db/migrate/20170129164553_remove_short_description_from_results.rb +2 -0
- data/db/migrate/20170215132624_add_reference_to_results.rb +2 -0
- data/db/migrate/20170410074358_remove_not_null_reference_results.rb +2 -0
- data/db/migrate/20170612101951_migrate_results_category.rb +15 -0
- metadata +16 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d98793317230b1002657bd17b3e066f648a9c827
|
4
|
+
data.tar.gz: 2c03892376653719bfa5f9bf2ecb78cc48a19fd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b66b8d85374f9863f256328fcec25d51ba29ca5d102725235ab86c9a98ea4a5a96a35857a055071edb9b4629244fa6ea8eb0409d80bedf504f6e47bd80ec3aa
|
7
|
+
data.tar.gz: fb6e7d652f37d5722a8e45437df44d4d3e271ce0f392deea2ab77ea12e1095bba9cdca932b0d56411225dd32a589ccbb2edd8397a595339e18fe350ba66e13eb
|
@@ -5,7 +5,7 @@ module Decidim
|
|
5
5
|
# This controller is the abstract class from which all other controllers of
|
6
6
|
# this engine inherit.
|
7
7
|
#
|
8
|
-
# Note that it inherits from `Decidim::
|
8
|
+
# Note that it inherits from `Decidim::Features::BaseController`, which
|
9
9
|
# override its layout and provide all kinds of useful methods.
|
10
10
|
class ApplicationController < Decidim::Features::BaseController
|
11
11
|
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<% resources.each do |result| %>
|
3
3
|
<div class="card--list__item">
|
4
4
|
<%= icon "actions", class: "card--list__icon", remove_icon_class: true %>
|
5
|
-
<%= link_to
|
5
|
+
<%= link_to resource_locator(result).path, class: "card--list__text card__link card__link--block" do %>
|
6
6
|
<h5 class="card--list__heading">
|
7
7
|
<%= translated_attribute(result.title) %>
|
8
8
|
</h5>
|
@@ -0,0 +1,78 @@
|
|
1
|
+
it:
|
2
|
+
activemodel:
|
3
|
+
attributes:
|
4
|
+
result:
|
5
|
+
decidim_category_id: Categoria
|
6
|
+
decidim_scope_id: Visibilità
|
7
|
+
description: Descrizione
|
8
|
+
proposal_ids: Proposte incluse
|
9
|
+
title: Titolo
|
10
|
+
decidim:
|
11
|
+
features:
|
12
|
+
results:
|
13
|
+
name: Risultati
|
14
|
+
settings:
|
15
|
+
global:
|
16
|
+
comments_enabled: Commenti abilitati
|
17
|
+
step:
|
18
|
+
comments_blocked: Commenti bloccati
|
19
|
+
resource_links:
|
20
|
+
included_proposals:
|
21
|
+
result_proposals: Proposte incluse in questo risultato
|
22
|
+
meetings_through_proposals:
|
23
|
+
result_meetings: Meetin correlati
|
24
|
+
results:
|
25
|
+
actions:
|
26
|
+
confirm_destroy: Sei sicuro di voler cancellare questo risultato?
|
27
|
+
destroy: Cancella
|
28
|
+
edit: Modifica
|
29
|
+
new: Nuovo
|
30
|
+
preview: Anteprima
|
31
|
+
title: Azioni
|
32
|
+
admin:
|
33
|
+
models:
|
34
|
+
result:
|
35
|
+
name: Risultato
|
36
|
+
results:
|
37
|
+
create:
|
38
|
+
invalid: C'è stato un problema durante la creazione di questo risultato
|
39
|
+
success: OK, il risultato è stato creato
|
40
|
+
destroy:
|
41
|
+
success: Il risultato è stato cancellato
|
42
|
+
edit:
|
43
|
+
title: Modifica il risultato (Ambito)
|
44
|
+
update: Modifica
|
45
|
+
index:
|
46
|
+
title: Risultati
|
47
|
+
new:
|
48
|
+
create: Crea
|
49
|
+
title: Nuovo risultato
|
50
|
+
update:
|
51
|
+
invalid: C'è stato un problema durante l'aggiornamento di questo risultato
|
52
|
+
success: OK, il risultato è stato modificato
|
53
|
+
models:
|
54
|
+
result:
|
55
|
+
fields:
|
56
|
+
title: Titolo
|
57
|
+
results:
|
58
|
+
count:
|
59
|
+
results_count:
|
60
|
+
one: 1 risultato
|
61
|
+
other: "%{count} risultati"
|
62
|
+
filters:
|
63
|
+
category: Categoria
|
64
|
+
category_prompt: Scegli una categoria
|
65
|
+
scopes: Visibilità
|
66
|
+
search: Cerca
|
67
|
+
filters_small_view:
|
68
|
+
close_modal: Chiudi modalità
|
69
|
+
filter: Filtro
|
70
|
+
filter_by: Filtra per
|
71
|
+
unfold: Espandi
|
72
|
+
show:
|
73
|
+
stats:
|
74
|
+
attendees: Partecipanti
|
75
|
+
comments: Commenti
|
76
|
+
contributions: Contributi
|
77
|
+
proposals: Proposte
|
78
|
+
votes: Voti
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class MigrateResultsCategory < ActiveRecord::Migration[5.1]
|
4
|
+
def change
|
5
|
+
# Create categorizations ensuring database integrity
|
6
|
+
execute('
|
7
|
+
INSERT INTO decidim_categorizations(decidim_category_id, categorizable_id, categorizable_type, created_at, updated_at)
|
8
|
+
SELECT decidim_category_id, decidim_results_results.id, \'Decidim::Results::Result\', NOW(), NOW()
|
9
|
+
FROM decidim_results_results
|
10
|
+
INNER JOIN decidim_categories ON decidim_categories.id = decidim_results_results.decidim_category_id
|
11
|
+
')
|
12
|
+
# Remove unused column
|
13
|
+
remove_column :decidim_results_results, :decidim_category_id
|
14
|
+
end
|
15
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-results
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.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-06-
|
13
|
+
date: 2017-06-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: decidim-core
|
@@ -18,28 +18,28 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
21
|
+
version: 0.3.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.
|
28
|
+
version: 0.3.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: decidim-comments
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.
|
35
|
+
version: 0.3.0
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 0.
|
42
|
+
version: 0.3.0
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: rectify
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
@@ -88,56 +88,56 @@ dependencies:
|
|
88
88
|
requirements:
|
89
89
|
- - '='
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version: 0.
|
91
|
+
version: 0.3.0
|
92
92
|
type: :development
|
93
93
|
prerelease: false
|
94
94
|
version_requirements: !ruby/object:Gem::Requirement
|
95
95
|
requirements:
|
96
96
|
- - '='
|
97
97
|
- !ruby/object:Gem::Version
|
98
|
-
version: 0.
|
98
|
+
version: 0.3.0
|
99
99
|
- !ruby/object:Gem::Dependency
|
100
100
|
name: decidim-comments
|
101
101
|
requirement: !ruby/object:Gem::Requirement
|
102
102
|
requirements:
|
103
103
|
- - '='
|
104
104
|
- !ruby/object:Gem::Version
|
105
|
-
version: 0.
|
105
|
+
version: 0.3.0
|
106
106
|
type: :development
|
107
107
|
prerelease: false
|
108
108
|
version_requirements: !ruby/object:Gem::Requirement
|
109
109
|
requirements:
|
110
110
|
- - '='
|
111
111
|
- !ruby/object:Gem::Version
|
112
|
-
version: 0.
|
112
|
+
version: 0.3.0
|
113
113
|
- !ruby/object:Gem::Dependency
|
114
114
|
name: decidim-meetings
|
115
115
|
requirement: !ruby/object:Gem::Requirement
|
116
116
|
requirements:
|
117
117
|
- - '='
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
version: 0.
|
119
|
+
version: 0.3.0
|
120
120
|
type: :development
|
121
121
|
prerelease: false
|
122
122
|
version_requirements: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
124
|
- - '='
|
125
125
|
- !ruby/object:Gem::Version
|
126
|
-
version: 0.
|
126
|
+
version: 0.3.0
|
127
127
|
- !ruby/object:Gem::Dependency
|
128
128
|
name: decidim-proposals
|
129
129
|
requirement: !ruby/object:Gem::Requirement
|
130
130
|
requirements:
|
131
131
|
- - '='
|
132
132
|
- !ruby/object:Gem::Version
|
133
|
-
version: 0.
|
133
|
+
version: 0.3.0
|
134
134
|
type: :development
|
135
135
|
prerelease: false
|
136
136
|
version_requirements: !ruby/object:Gem::Requirement
|
137
137
|
requirements:
|
138
138
|
- - '='
|
139
139
|
- !ruby/object:Gem::Version
|
140
|
-
version: 0.
|
140
|
+
version: 0.3.0
|
141
141
|
description: A results component for decidim's participatory processes.
|
142
142
|
email:
|
143
143
|
- josepjaume@gmail.com
|
@@ -185,11 +185,13 @@ files:
|
|
185
185
|
- config/locales/eu.yml
|
186
186
|
- config/locales/fi.yml
|
187
187
|
- config/locales/fr.yml
|
188
|
+
- config/locales/it.yml
|
188
189
|
- config/locales/nl.yml
|
189
190
|
- db/migrate/20170116104125_create_results.rb
|
190
191
|
- db/migrate/20170129164553_remove_short_description_from_results.rb
|
191
192
|
- db/migrate/20170215132624_add_reference_to_results.rb
|
192
193
|
- db/migrate/20170410074358_remove_not_null_reference_results.rb
|
194
|
+
- db/migrate/20170612101951_migrate_results_category.rb
|
193
195
|
- lib/decidim/results.rb
|
194
196
|
- lib/decidim/results/admin.rb
|
195
197
|
- lib/decidim/results/admin_engine.rb
|