<%= 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.lettings? && (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? || current_user.organisation.has_managing_agents? %> <% end %>