decidim-templates 0.27.3 → 0.27.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of decidim-templates might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98007eb50b5424b14fc7d79b11e620294d30877ff727d6197448522637bf0871
4
- data.tar.gz: 6bc9707e5b404f0c3deb2777b11283cfbcf4869bd93e87da1ac32c1d048954a8
3
+ metadata.gz: 7dcc86f076ee318f5bf6ce9d36dfc90a6277e43c56dd3466b5e52bf7e976112b
4
+ data.tar.gz: dd6ce4e0e86a28010a36280196892ef4082fcc1bb68f89c09565350793bbdcbc
5
5
  SHA512:
6
- metadata.gz: 9a1b5b2e4edd9893674266834dcc3487488d9413f4bf34bc635f7f898e7a888e4de4effe9ed968fb056db5a51ed40ee6027ea649662a57376399aefac6cb90d7
7
- data.tar.gz: 45374e4e423fb794c5cdb74461abd8b0d3266cab0e6ec89775c9f073c03eb56e0643a1e414d7fc1f0581baf50c7c17fa032f54a6c095246a47aee3626cc30f98
6
+ metadata.gz: f34fdd4718603acab15a83fec549546e3c6ea4cb1d7119b9c35c456cb827108a5dbd115ed04b43b27604ae51c200b4105f5368a84b00924160e94cbb48350ac3
7
+ data.tar.gz: 39cf01916d9382b386547eaecb5105ea3af6da5111ba884a1bd235ed71c0cb7f9a303e95134e38ec4cca03f71cd071188b45d526b7c16ca28433569c1255bf3e
@@ -33,7 +33,7 @@ module Decidim
33
33
  private
34
34
 
35
35
  def template
36
- @template ||= Template.find(params[:id])
36
+ @template ||= current_organization.templates.where(templatable_type: "Decidim::Forms::Questionnaire").find(params[:id])
37
37
  end
38
38
  end
39
39
  end
@@ -142,7 +142,7 @@ module Decidim
142
142
  end
143
143
 
144
144
  def template
145
- @template ||= Template.find_by(id: params[:id])
145
+ @template ||= collection.find(params[:id])
146
146
  end
147
147
 
148
148
  def search(term)
@@ -6,7 +6,7 @@ module Decidim
6
6
  class Permissions < Decidim::DefaultPermissions
7
7
  def permissions
8
8
  return permission_action unless user
9
-
9
+ return permission_action unless user.admin?
10
10
  return permission_action if permission_action.scope != :admin
11
11
 
12
12
  case permission_action.subject
@@ -1,3 +1,4 @@
1
+ <% add_decidim_page_title(t(".questionnaire")) %>
1
2
  <%= decidim_form_for(@form, url: questionnaire_template_path, html: { class: "form edit_questionnaire_template" }) do |f| %>
2
3
  <%= render partial: "form", object: f %>
3
4
  <% end %>
@@ -1,3 +1,4 @@
1
+ <% add_decidim_page_title(t(".title")) %>
1
2
  <div class="card">
2
3
  <div class="card-divider">
3
4
  <h2 class="card-title">
@@ -1,3 +1,4 @@
1
+ <% add_decidim_page_title(t("templates", scope: "decidim.admin.titles")) %>
1
2
  <% content_for :title do %>
2
3
  <%= t("templates", scope: "decidim.admin.titles") %>
3
4
  <% end %>
File without changes
@@ -25,6 +25,7 @@ de:
25
25
  success: Vorlage erfolgreich gelöscht
26
26
  empty: Es gibt noch keine Vorlagen.
27
27
  update:
28
+ error: Bei der Aktualisierung dieser Vorlage ist ein Problem aufgetreten.
28
29
  success: Vorlage erfolgreich aktualisiert
29
30
  titles:
30
31
  template_types:
@@ -63,5 +64,11 @@ de:
63
64
  current_step: Schritt %{step}
64
65
  of_total_steps: von %{total_steps}
65
66
  tos_agreement: Mit der Teilnahme stimmen Sie den Nutzungsbedingungen zu
67
+ admin_log:
68
+ template:
69
+ create: "%{user_name} hat die Umfragevorlage %{resource_name} erstellt"
70
+ delete: "%{user_name} hat die Umfragevorlage %{resource_name} gelöscht"
71
+ duplicate: "%{user_name} hat die Umfragevorlage %{resource_name} dupliziert"
72
+ update: "%{user_name} hat die Umfragevorlage %{resource_name} aktualisiert"
66
73
  template_types:
67
74
  questionnaires: Fragebögen
@@ -1 +1,8 @@
1
+ ---
1
2
  kaa:
3
+ decidim:
4
+ templates:
5
+ admin:
6
+ questionnaire_templates:
7
+ form:
8
+ save: Saqlaw
@@ -4,7 +4,7 @@ module Decidim
4
4
  # This holds the decidim-templates version.
5
5
  module Templates
6
6
  def self.version
7
- "0.27.3"
7
+ "0.27.4"
8
8
  end
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decidim-templates
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.3
4
+ version: 0.27.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vera Rojman
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-11 00:00:00.000000000 Z
11
+ date: 2023-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: decidim-core
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.27.3
19
+ version: 0.27.4
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.27.3
26
+ version: 0.27.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: decidim-forms
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.27.3
33
+ version: 0.27.4
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.27.3
40
+ version: 0.27.4
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: decidim-admin
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.27.3
47
+ version: 0.27.4
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.27.3
54
+ version: 0.27.4
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: decidim-dev
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 0.27.3
61
+ version: 0.27.4
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 0.27.3
68
+ version: 0.27.4
69
69
  description: This module provides a solution to create templates for different Decidim
70
70
  models, such as Proposals and Questionnaires..
71
71
  email:
@@ -109,6 +109,7 @@ files:
109
109
  - app/views/decidim/templates/admin/questionnaire_templates/preview.js.erb
110
110
  - app/views/layouts/decidim/admin/templates.html.erb
111
111
  - config/assets.rb
112
+ - config/environment.rb
112
113
  - config/locales/am-ET.yml
113
114
  - config/locales/ar.yml
114
115
  - config/locales/bg.yml
@@ -187,7 +188,7 @@ homepage: https://github.com/decidim/decidim-module-templates
187
188
  licenses:
188
189
  - AGPL-3.0
189
190
  metadata: {}
190
- post_install_message:
191
+ post_install_message:
191
192
  rdoc_options: []
192
193
  require_paths:
193
194
  - lib
@@ -203,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
204
  version: '0'
204
205
  requirements: []
205
206
  rubygems_version: 3.2.22
206
- signing_key:
207
+ signing_key:
207
208
  specification_version: 4
208
209
  summary: A decidim templates module
209
210
  test_files: []