Module: EffectiveCommitteesHelper

Defined in:
app/helpers/effective_committees_helper.rb

Instance Method Summary collapse

Instance Method Details

#admin_committees_parents(resource) ⇒ Object



39
40
41
42
# File 'app/helpers/effective_committees_helper.rb', line 39

def admin_committees_parents(resource)
  parents = resource.parents + [resource]
  render(partial: 'admin/committees/parents', locals: { parents: parents }, formats: [:html])
end

#committee_file_labelObject



31
32
33
# File 'app/helpers/effective_committees_helper.rb', line 31

def committee_file_label
  et(Effective::CommitteeFile)
end

#committee_files_labelObject



35
36
37
# File 'app/helpers/effective_committees_helper.rb', line 35

def committee_files_label
  ets(Effective::CommitteeFile)
end

#committee_folder_labelObject



23
24
25
# File 'app/helpers/effective_committees_helper.rb', line 23

def committee_folder_label
  et(Effective::CommitteeFolder)
end

#committee_folders_labelObject



27
28
29
# File 'app/helpers/effective_committees_helper.rb', line 27

def committee_folders_label
  ets(Effective::CommitteeFolder)
end

#committee_labelObject



7
8
9
# File 'app/helpers/effective_committees_helper.rb', line 7

def committee_label
  et(Effective::Committee)
end

#committee_member_labelObject



15
16
17
# File 'app/helpers/effective_committees_helper.rb', line 15

def committee_member_label
  et(Effective::CommitteeMember)
end

#committee_members_labelObject



19
20
21
# File 'app/helpers/effective_committees_helper.rb', line 19

def committee_members_label
  ets(Effective::CommitteeMember)
end

#committees_labelObject



11
12
13
# File 'app/helpers/effective_committees_helper.rb', line 11

def committees_label
  ets(Effective::Committee)
end

#committees_name_labelObject



3
4
5
# File 'app/helpers/effective_committees_helper.rb', line 3

def committees_name_label
  et('effective_committees.name')
end