decidim-accountability 0.17.0 → 0.17.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ffdb4d494deecbb50d9522bcc0ba1cb99518c2d2d77bac26d7d4e528b8caf3f
4
- data.tar.gz: a1680b50ba82c55390d61a8dd63217675b635295f0a4f26ba79cb3120fbebeb3
3
+ metadata.gz: 4a6e5cf2f51e53b73641e6988ba2e2f8ece0d439566aed435ce3cc09e26bd671
4
+ data.tar.gz: 2ab28f4b882499809348ec3fa95c887fd96161df89d956ea6bdef93099cc1f01
5
5
  SHA512:
6
- metadata.gz: 673cad0c2de66e5c94a39f22e2a4a55c84b678e4545ea5703ba37810aea613d22640d500e99a30271646d35bbc51c6557989cd0103348a362da353f7b1ae4816
7
- data.tar.gz: 0f4fdcef7ddaab60e87fd73f762567cc7d93ce13506d34c7d3b95d5f09bbadb47e6fee90934ec1a4f3bbe7f6e020c1dc6ccaf2c0eae8738a77b8524b6333817e
6
+ metadata.gz: 3b2562c4988fd1c531d49cfe59ad21af6091756dfef213973353dec3747cb6f8f3f16e50456af432f87a7af3931ceba5f247a074dd097fd3bd7ef33f321fcc9a
7
+ data.tar.gz: e183f586c74c0ffb6e49c3e856eb04225e6d4c131a17991da56755a1c3e39087f653009d28f622b9a1b64d12fb26ce2b0d1fb7cfa2a2ce548dabda44b59b7e4a
@@ -6,6 +6,7 @@ module Decidim
6
6
  # This controller allows an admin to manage results from a Participatory Process
7
7
  class ResultsController < Admin::ApplicationController
8
8
  include Decidim::ApplicationHelper
9
+ include Decidim::SanitizeHelper
9
10
  helper_method :results, :parent_result, :parent_results, :statuses, :present
10
11
 
11
12
  def new
@@ -84,7 +85,7 @@ module Decidim
84
85
  else
85
86
  query = query.where("title ilike ?", "%#{params[:term]}%")
86
87
  end
87
- render json: query.all.collect { |p| [present(p).title, p.id] }
88
+ render json: query.all.collect { |p| [decidim_html_escape(present(p).title), p.id] }
88
89
  end
89
90
  end
90
91
  end
@@ -5,6 +5,11 @@
5
5
  <ul class="tags tags--action">
6
6
  <li <%= active_class_if_current(nil) %>><%= link_to t("results.filters.all", scope: "decidim.accountability"), url_for(filter: { category_id: category.try(:id) }) %></li>
7
7
 
8
+ <% if current_participatory_space.scope %>
9
+ <li <%= active_class_if_current(current_participatory_space.scope.id) %>>
10
+ <%= link_to translated_attribute(current_participatory_space.scope.name), url_for(filter: { scope_id: current_participatory_space.scope.id, category_id: category.try(:id) }) %>
11
+ </li>
12
+ <% end %>
8
13
  <% current_participatory_space.subscopes.each do |scope| %>
9
14
  <li <%= active_class_if_current(scope.id) %>><%= link_to translated_attribute(scope.name), url_for(filter: { scope_id: scope.id, category_id: category.try(:id) }) %></li>
10
15
  <% end %>
@@ -38,7 +38,7 @@ ar:
38
38
  actions:
39
39
  confirm_destroy: هل أنت متأكد أنك تريد حذف هذا %{name}؟
40
40
  destroy: حذف
41
- edit: تصحيح
41
+ edit: تعديل
42
42
  new: جديد %{name}
43
43
  preview: معاينة
44
44
  timeline_entries: تطور المشروع
@@ -67,7 +67,7 @@ ar:
67
67
  index:
68
68
  title: النتائج
69
69
  new:
70
- create: خلق نتيجة
70
+ create: إنشاء نتيجة
71
71
  title: نتيجة جديدة
72
72
  proposals:
73
73
  close: قريب
@@ -33,8 +33,8 @@ ca:
33
33
  accountability:
34
34
  actions:
35
35
  confirm_destroy: Estàs segur que vols suprimir aquest %{name}?
36
- destroy: Esborra
37
- edit: Edita
36
+ destroy: Esborrar
37
+ edit: Editar
38
38
  new: Nou/va %{name}
39
39
  preview: Previsualitzar
40
40
  timeline_entries: Evolució del projecte
@@ -56,19 +56,19 @@ ca:
56
56
  destroy:
57
57
  success: El resultat ha estat eliminat correctament
58
58
  edit:
59
- title: Edita resultat
59
+ title: Editar resultat
60
60
  update: Actualitza resultat
61
61
  form:
62
62
  add_proposal: Afegir proposta
63
63
  index:
64
64
  title: Resultats
65
65
  new:
66
- create: Crea resultat
66
+ create: Crear resultat
67
67
  title: Nou resultat
68
68
  proposals:
69
- close: Tanca
69
+ close: Tancar
70
70
  current_selection: Selecció actual
71
- select: Selecciona
71
+ select: Seleccionar
72
72
  update:
73
73
  invalid: S'ha produït un error en actualitzar aquest resultat
74
74
  success: El resultat ha estat actualitzat correctament
@@ -78,37 +78,37 @@ ca:
78
78
  statuses:
79
79
  create:
80
80
  invalid: S'ha produït un error en crear aquest estat
81
- success: El estat ha estat creat correctament
81
+ success: L'estat ha estat creat correctament
82
82
  destroy:
83
- success: El estat ha estat eliminat correctament
83
+ success: L'estat ha estat eliminat correctament
84
84
  edit:
85
- title: Edita estat
86
- update: Actualitza estat
85
+ title: Editar estat
86
+ update: Actualitzar estat
87
87
  index:
88
88
  title: Estats
89
89
  new:
90
- create: Crea estat
90
+ create: Crear estat
91
91
  title: Nou estat
92
92
  update:
93
93
  invalid: S'ha produït un error en actualitzar aquest estat
94
- success: El estat ha estat actualitzat correctament
94
+ success: L'estat ha estat actualitzat correctament
95
95
  timeline_entries:
96
96
  create:
97
97
  invalid: S'ha produït un error en crear aquest element
98
- success: El element ha estat creat correctament
98
+ success: L'element ha estat creat correctament
99
99
  destroy:
100
- success: El element ha estat eliminat correctament
100
+ success: L'element ha estat eliminat correctament
101
101
  edit:
102
- title: Edita element
103
- update: Actualitza element
102
+ title: Editar element
103
+ update: Actualitzar element
104
104
  index:
105
105
  title: Evolució del projecte
106
106
  new:
107
- create: Crea element
107
+ create: Crear element
108
108
  title: Nou element
109
109
  update:
110
110
  invalid: S'ha produït un error en actualitzar aquest element
111
- success: El element ha estat actualitzat correctament
111
+ success: L'element ha estat actualitzat correctament
112
112
  admin_log:
113
113
  result:
114
114
  create: "%{user_name} ha creat el resultat %{resource_name} en %{space_name}"
@@ -140,7 +140,7 @@ ca:
140
140
  results:
141
141
  count:
142
142
  results_count:
143
- one: 1 resultat
143
+ one: Un resultat
144
144
  other: "%{count} resultats"
145
145
  filters:
146
146
  all: Tots
@@ -153,11 +153,11 @@ ca:
153
153
  nav_breadcrumb:
154
154
  global: Execució global
155
155
  search:
156
- search: Cerca actuacions
156
+ search: Cercar actuacions
157
157
  show:
158
158
  stats:
159
159
  attendees: Assistents
160
- back_to_result: Torna al resultat
160
+ back_to_result: Tornar al resultat
161
161
  comments: Comentaris
162
162
  contributions: Aportacions
163
163
  last_edited_by: Editat per última vegada per
@@ -188,7 +188,7 @@ ca:
188
188
  global:
189
189
  categories_label: Nom per a "Categories"
190
190
  comments_enabled: Comentaris habilitats
191
- display_progress_enabled: Mostra el progrés
191
+ display_progress_enabled: Mostrar el progrés
192
192
  heading_leaf_level_results: Nom per a "Projectes"
193
193
  heading_parent_level_results: Nom per a "Resultats"
194
194
  intro: Introducció
@@ -140,7 +140,7 @@ es:
140
140
  results:
141
141
  count:
142
142
  results_count:
143
- one: 1 resultado
143
+ one: Un resultado
144
144
  other: "%{count} resultados"
145
145
  filters:
146
146
  all: Todos
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds decidim-accountability version.
5
5
  module Accountability
6
6
  def self.version
7
- "0.17.0"
7
+ "0.17.1"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-accountability
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.17.1
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: 2019-03-25 00:00:00.000000000 Z
13
+ date: 2019-05-27 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: decidim-comments
@@ -18,28 +18,28 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 0.17.0
21
+ version: 0.17.1
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.17.0
28
+ version: 0.17.1
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: decidim-core
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.17.0
35
+ version: 0.17.1
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.17.0
42
+ version: 0.17.1
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: kaminari
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -74,98 +74,98 @@ dependencies:
74
74
  requirements:
75
75
  - - '='
76
76
  - !ruby/object:Gem::Version
77
- version: 0.17.0
77
+ version: 0.17.1
78
78
  type: :development
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.17.0
84
+ version: 0.17.1
85
85
  - !ruby/object:Gem::Dependency
86
86
  name: decidim-assemblies
87
87
  requirement: !ruby/object:Gem::Requirement
88
88
  requirements:
89
89
  - - '='
90
90
  - !ruby/object:Gem::Version
91
- version: 0.17.0
91
+ version: 0.17.1
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.17.0
98
+ version: 0.17.1
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.17.0
105
+ version: 0.17.1
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.17.0
112
+ version: 0.17.1
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: decidim-dev
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - '='
118
118
  - !ruby/object:Gem::Version
119
- version: 0.17.0
119
+ version: 0.17.1
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.17.0
126
+ version: 0.17.1
127
127
  - !ruby/object:Gem::Dependency
128
128
  name: decidim-meetings
129
129
  requirement: !ruby/object:Gem::Requirement
130
130
  requirements:
131
131
  - - '='
132
132
  - !ruby/object:Gem::Version
133
- version: 0.17.0
133
+ version: 0.17.1
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.17.0
140
+ version: 0.17.1
141
141
  - !ruby/object:Gem::Dependency
142
142
  name: decidim-participatory_processes
143
143
  requirement: !ruby/object:Gem::Requirement
144
144
  requirements:
145
145
  - - '='
146
146
  - !ruby/object:Gem::Version
147
- version: 0.17.0
147
+ version: 0.17.1
148
148
  type: :development
149
149
  prerelease: false
150
150
  version_requirements: !ruby/object:Gem::Requirement
151
151
  requirements:
152
152
  - - '='
153
153
  - !ruby/object:Gem::Version
154
- version: 0.17.0
154
+ version: 0.17.1
155
155
  - !ruby/object:Gem::Dependency
156
156
  name: decidim-proposals
157
157
  requirement: !ruby/object:Gem::Requirement
158
158
  requirements:
159
159
  - - '='
160
160
  - !ruby/object:Gem::Version
161
- version: 0.17.0
161
+ version: 0.17.1
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.17.0
168
+ version: 0.17.1
169
169
  description: An accountability component for decidim's participatory spaces.
170
170
  email:
171
171
  - josepjaume@gmail.com