.guests-housed %h5 Guests Housed: .data{class: @guests_housed < @guests.size ? :unhappy : :happy }="#{@guests_housed} / #{@guests.size}" - if @guests_housed > 0 .guests-housed %h5 Unhappy hosts and guests: .data{class: @unhappy_people.size > 0 ? :unhappy : :happy }="#{@unhappy_people.size}" - first_row = true %table.hosts.admin-edit - @hosts.sort_by{ |id, registration| registration.user.name }.each do |id, registration| - if @housing_data[id][:space].map { |k,v| v }.sum > 0 - unless first_row %tr.spacer %td %tr.host %th .name=registration.user.name .address=location_link(Location.find_location(registration.housing_data['address'], @this_conference.city)) - if registration.housing_data['notes'].present? .host-notes=paragraph(registration.housing_data['notes']) - if registration.housing_data['info'].present? %div=_'articles.conference_registration.headings.housing.Rules', :t .house-rules =richtext(registration.housing_data['info'], 4) %td.inner-table{colspan: 2} =host_guests_table(registration) - first_row = false