Skip to content

Commit

Permalink
WIP managed styling
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWalkingLeek committed Nov 21, 2023
1 parent 69fde6c commit cba2ba1
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions app/helpers/youth/people_helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

module Youth::PeopleHelper

def format_managers(entry)
managers = entry.managers
if managers.size.zero?
ta(:no_entry, :managers)
else
simple_list(managers, class: 'unstyled') { |val| assoc_link(val) }
end
end

def format_readable_manageds(entry)
manageds = entry.readable_manageds
if manageds.size.zero?
ta(:no_entry, :managers)
else
simple_list(manageds, class: 'unstyled') { |val| assoc_link(val) }
end
end

end

0 comments on commit cba2ba1

Please sign in to comment.