<%= govuk_link_to log.lettings? ? lettings_log_path(log) : sales_log_path(log) do %> Log <%= log.id %> <% end %>

<% if log.lettings? && (log.tenancycode? or log.propcode?) %> <% end %>
<% if log.is_a?(LettingsLog) && (log.needstype? or log.startdate?) %>

<% if log.needstype? %> <%= log.is_general_needs? ? "General needs" : "Supported housing" %>
<% end %> <% if log.startdate? %> Tenancy starts <% end %>

<% end %> <% if current_user.support? %> <% if log.owning_organisation or log.managing_organisation %> <% end %> <% end %>