effective_committees 0.3.1 → 0.3.3
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: 40736c7f879ac06a88e47593879009792acf06e842243159c790bc5e70f1e815
|
4
|
+
data.tar.gz: c80bd2a5c4ed9ff27887a6ce78289b07595bd85def56f2830421b7d590920c32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2cd0462498e023278e45c9712a7ef4dcf064adf83a508f4a82cbdd573b304000d04a033dfe29d0f23b0b346b322dd4475837d53376c94374be267c7e28b1251
|
7
|
+
data.tar.gz: e7d500cc74280a47f43f3a8826a1e81ffe65b01894af08b1cc6137958ccb1ac2e75f2e7c3358034f88a5c95451e896f0a1f10767037b7defb31ddde75877db91
|
@@ -7,7 +7,7 @@ class EffectiveCommitteesDatatable < Effective::Datatable
|
|
7
7
|
|
8
8
|
col :title, label: 'Committee'
|
9
9
|
|
10
|
-
col :committee_members, search: :string, label: 'Members'
|
10
|
+
col :committee_members, search: :string, label: 'Members', visible: false
|
11
11
|
|
12
12
|
col :committee_folders, search: :string, label: 'Folders'
|
13
13
|
|
@@ -22,7 +22,7 @@ module EffectiveCommitteesUser
|
|
22
22
|
accepts_nested_attributes_for :committee_members, allow_destroy: true
|
23
23
|
|
24
24
|
scope :with_committee, -> (committees) {
|
25
|
-
committees = Resource.new(Effective::Committee).search_any(committees) if committees.kind_of?(String)
|
25
|
+
committees = Effective::Resource.new(Effective::Committee).search_any(committees) if committees.kind_of?(String)
|
26
26
|
raise('expected an Effective::Committee') unless committees.present? && Array(committees).all? { |c| c.kind_of?(Effective::Committee) }
|
27
27
|
|
28
28
|
committee_members = Effective::CommitteeMember.where(committee: committees).where(user_type: name)
|
@@ -1,10 +1,8 @@
|
|
1
1
|
%h2 Committees
|
2
2
|
|
3
3
|
- if current_user.committees.present?
|
4
|
-
%p You are a member of #{pluralize(current_user.committees.length, 'committee')}.
|
5
|
-
|
6
4
|
- datatable = EffectiveResources.best('EffectiveCommitteesDatatable').new(self, namespace: :effective)
|
7
5
|
= render_datatable(datatable, simple: true)
|
8
6
|
|
9
7
|
- else
|
10
|
-
%p You
|
8
|
+
%p You aren't assigned to any committees. When you are, we'll show them here.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_committees
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
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-11-
|
11
|
+
date: 2023-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|