effective_cpd 1.3.4 → 1.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- 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 +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2ebbcc7dc3960807c1489de54504c7011e3a4bc01abc476cdb49b968bf5748d8
|
|
4
|
+
data.tar.gz: 3ff3732c603740dd984c0ed0deec2d7d2ed8d43e533914a76cf8080de79ceec6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 97c4d7aae9fcf23aa1117c93cf5a261825ee447815e5a7c4e1deea0a3c320116289aa36d8c01c26e184131b0bfd0cb56dcd87993bbea994ce91175a37170cb38
|
|
7
|
+
data.tar.gz: 185bdbc435e66f12c005b01bb0f2e0b72073eb39665bbf83ac202e21a2e450e64138b896e793a69beb26fa1be8bb0163626f9e89f1ff24c0d036b03a8d0f72f2
|
|
@@ -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)
|