effective_cpd 1.3.4 → 1.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/effective/cpd_audit_reviews_controller.rb +1 -1
- data/app/controllers/effective/cpd_audits_controller.rb +1 -1
- data/app/views/effective/cpd_audit_reviews/_layout.html.haml +2 -2
- data/app/views/effective/cpd_audits/_layout.html.haml +7 -5
- data/config/locales/effective_cpd.en.yml +2 -0
- data/lib/effective_cpd/engine.rb +1 -1
- data/lib/effective_cpd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d081774221fca2104ff32786f3f0728889ea43328e57ee9deb1f439097e55074
|
4
|
+
data.tar.gz: db36231355f634444648f603c1072117037e33f2a12bd5389a219013d2315c23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddc3a430c37807aec1207fe6aa1ee491391a75e8ba8bff7b122149ba45b723575c2f74c59ccf3553531995266a06abe41e98de6c27bce3c2b271f6ed872d9a08
|
7
|
+
data.tar.gz: e0992fecce575014ee903c493ce47a3a7e91133c5a3ed9fab8e6c67c765716bbf47f43a5e5bd72402258bcef3576253efa8b8b362af31abcbfa5019095582a13
|
@@ -8,7 +8,7 @@ module Effective
|
|
8
8
|
EffectiveCpd.CpdAuditReview.deep.where(user: current_user)
|
9
9
|
end
|
10
10
|
|
11
|
-
page_title '
|
11
|
+
page_title EffectiveResources.et('effective_cpd.chat'), only: [:chat]
|
12
12
|
|
13
13
|
# Reuse the same view for all cpd_audit_level_section steps
|
14
14
|
# https://github.com/zombocom/wicked/blob/v1.3.4/lib/wicked/controller/concerns/render_redirect.rb#L32
|
@@ -8,7 +8,7 @@ module Effective
|
|
8
8
|
|
9
9
|
submit :resubmit, 'Resubmit'
|
10
10
|
|
11
|
-
page_title '
|
11
|
+
page_title EffectiveResources.et('effective_cpd.chat'), only: [:chat]
|
12
12
|
|
13
13
|
# Reuse the same view for all cpd_audit_level_section steps
|
14
14
|
# https://github.com/zombocom/wicked/blob/v1.3.4/lib/wicked/controller/concerns/render_redirect.rb#L32
|
@@ -18,9 +18,9 @@
|
|
18
18
|
- if EffectiveCpd.use_effective_messaging?
|
19
19
|
.list-group
|
20
20
|
- if (controller.action_name == 'chat')
|
21
|
-
%a.active.list-group-item.list-group-item-action
|
21
|
+
%a.active.list-group-item.list-group-item-action.btn-lg= et('effective_cpd.chat_sidebar')
|
22
22
|
- else
|
23
|
-
%a.list-group-item.list-group-item-action{href: effective_cpd.chat_cpd_audit_review_path(resource)}
|
23
|
+
%a.list-group-item.list-group-item-action.btn-lg{href: effective_cpd.chat_cpd_audit_review_path(resource)}= et('effective_cpd.chat_sidebar')
|
24
24
|
|
25
25
|
.col-9
|
26
26
|
%h1= @page_title
|
@@ -26,12 +26,14 @@
|
|
26
26
|
%td
|
27
27
|
%td
|
28
28
|
|
29
|
+
|
29
30
|
- if EffectiveCpd.use_effective_messaging?
|
30
|
-
.
|
31
|
-
-
|
32
|
-
|
33
|
-
|
34
|
-
|
31
|
+
- if resource.chats.present? || resource.cpd_audit_reviews.present?
|
32
|
+
.list-group
|
33
|
+
- if (controller.action_name == 'chat')
|
34
|
+
%a.active.list-group-item.list-group-item-action.btn-lg= et('effective_cpd.chat_sidebar')
|
35
|
+
- else
|
36
|
+
%a.list-group-item.list-group-item-action.btn-lg{href: effective_cpd.chat_cpd_audit_path(resource)}= et('effective_cpd.chat_sidebar')
|
35
37
|
|
36
38
|
.col-9
|
37
39
|
%h1= @page_title
|
data/lib/effective_cpd/engine.rb
CHANGED
@@ -9,7 +9,7 @@ module EffectiveCpd
|
|
9
9
|
|
10
10
|
# Include acts_as_addressable concern and allow any ActiveRecord object to call it
|
11
11
|
initializer 'effective_cpd.active_record' do |app|
|
12
|
-
|
12
|
+
app.config.to_prepare do
|
13
13
|
ActiveRecord::Base.extend(EffectiveCpdUser::Base)
|
14
14
|
ActiveRecord::Base.extend(EffectiveCpdStatement::Base)
|
15
15
|
ActiveRecord::Base.extend(EffectiveCpdAudit::Base)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_cpd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|