effective_messaging 0.7.4 → 0.7.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7407b82bbf657f12efd728834391a82d5a3f6d2d45e2833e4e092c442a9f87c8
|
4
|
+
data.tar.gz: 9d5d26c07a3b88e0c8a9786e6c5b35cf75505b647116bd55732b543c163f4756
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79a35234d7e9857bd44190646ed0cb10eeafe10a92998fe90ca56137ca85943516c6759b3ba0fede7b6902296c5d10a3231569cb49fcd39e5f053be50b83e7f7
|
7
|
+
data.tar.gz: 28e9c078ca521aecdb71da681074cb5e6fc5b9fa6f14f34e4b5a8625a33c6fc7cda767f21b4dcc3fe19f8db804f92b6d95c7b17f31082090adf1593ebecc680e
|
@@ -18,7 +18,7 @@ class EffectiveChatsDatatable < Effective::Datatable
|
|
18
18
|
chats = Effective::Chat.deep.where(id: current_user.chats)
|
19
19
|
|
20
20
|
if attributes[:year].present?
|
21
|
-
chats = chats.where(
|
21
|
+
chats = chats.where(created_at: Time.zone.local(attributes[:year]).all_year)
|
22
22
|
end
|
23
23
|
|
24
24
|
chats
|
@@ -1,6 +1,6 @@
|
|
1
1
|
%h2= t('effective_messaging.dashboard')
|
2
2
|
|
3
|
-
- datatable = EffectiveResources.best('EffectiveChatsDatatable').new(self, namespace: :effective)
|
3
|
+
- datatable = EffectiveResources.best('EffectiveChatsDatatable').new(self, namespace: :effective, year: local_assigns[:year])
|
4
4
|
|
5
5
|
- if datatable.present?
|
6
6
|
%p You are a #{etd(Effective::ChatUser)} of #{pluralize(datatable.collection.length, etd(Effective::Chat))}.
|