foodsoft/app/views/shared/_workgroup_members.haml

6 lines
No EOL
271 B
Text

- for workgroup in Workgroup.all
%h4= link_to workgroup.name, "#", 'data-toggle-this' => "#workgroup_#{workgroup.id}"
%ul{:style => "display:none"}[workgroup]
- for user in workgroup.users.order("nick")
%li= "#{user.nick} (#{user.ordergroup.try(:name)})"