<div class="resultsContainer">

<%= render( :partial => "search_result",
            :locals => {
              :objects => @users,
              :model => 'user',
              :path => lambda { |school_id, id| user_path(school_id, id) },
              :attributes => ["displayName", "uid"],
              :schools => true } ) %>

<%= render( :partial => "search_result",
            :locals => {
              :objects => @groups,
              :model => 'group',
              :path => lambda { |school_id, id| group_path(school_id, id) },
              :attributes => ["displayName", "cn"],
              :schools => true } ) %>

<%= render( :partial => "search_result",
            :locals => {
              :objects => @devices,
              :model => 'device',
              :path => lambda { |school_id, id| device_path(school_id, id) },
              :attributes => ["puavoHostname"],
              :schools => true } ) %>

<%= render( :partial => "search_result",
            :locals => {
              :objects => @servers,
              :model => 'server',
              :path => lambda { |school_id, id| server_path(id) },
              :attributes => ["puavoHostname"],
              :schools => false } ) %>

</div>
