<% @table_fields.each do |f| %> <%= thead(f) %> <% end %> <% @properties.each do |property| %> <% end %>
<% if can_edit_or_delete?(property) %> <%= property.title %> <% else %> <%= property.title %> <% end %> <%= property.category.title rescue nil %> <%= property.get_location_name %> <% if property.can_reserve %> Yes <% else %> No <% end %>
<%= content_tag(:div, paginate(@properties), class: "pagination pagination-centered") %>