effective_cpd 1.3.4 → 1.3.5

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: 2be9f6813dafd2931948881251226b7ed3b620a0b878b873f7e8c268c4f908bb
4
- data.tar.gz: 9508a3ed45b0057b2a448ed67de9720a26a86ae22f964c1640ed411f6c903fb7
3
+ metadata.gz: 2ebbcc7dc3960807c1489de54504c7011e3a4bc01abc476cdb49b968bf5748d8
4
+ data.tar.gz: 3ff3732c603740dd984c0ed0deec2d7d2ed8d43e533914a76cf8080de79ceec6
5
5
  SHA512:
6
- metadata.gz: 81fd014d7d29224b1dfd22ac694e98e3be2b45537b80094259cc42cfb7b5f8cb2446a70f42aed2d68cac5557dae9b253c144ec398993570759b7c9578d2cbe7d
7
- data.tar.gz: f81cf81ceec74d6508b80bbc1d6fd983526e8173e7306cb1c7c0e8dd3544ed3a504bb5e920632eeccce49cfc24302d504fbe5db7b44d4b6f7500e750082546c2
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 'Chat', only: [:chat]
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 Chat
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)} Chat
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
- .list-group
31
- - if (controller.action_name == 'chat')
32
- %a.active.list-group-item.list-group-item-action Chat
33
- - else
34
- %a.list-group-item.list-group-item-action{href: effective_cpd.chat_cpd_audit_path(resource)} Chat
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
@@ -2,6 +2,8 @@ en:
2
2
  effective_cpd:
3
3
  name: 'Continuing Professional Development'
4
4
  credit: 'Credit'
5
+ chat: 'Send a Message'
6
+ chat_sidebar: 'Send a Message'
5
7
 
6
8
  activerecord:
7
9
  models:
@@ -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
- ActiveSupport.on_load :active_record do
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)
@@ -1,3 +1,3 @@
1
1
  module EffectiveCpd
2
- VERSION = '1.3.4'
2
+ VERSION = '1.3.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_cpd
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.4
4
+ version: 1.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect