% content_for :title, "Log #{@log.id}" %> <% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: { "Logs" => @log.lettings? ? lettings_logs_path : sales_logs_path, content_for(:title) => "", }) %>
<%= get_subsections_count(@log, :completed) %> of <%= get_subsections_count(@log, :all) %> sections completed.
<% next_incomplete_section = get_next_incomplete_section(@log) %>
<% if next_incomplete_section.present? %> Skip to next incomplete section: <%= next_incomplete_section.label %> <% end %>
<% elsif @log.status == "not_started" %>This log has not been started.
<% elsif @log.status == "completed" %><%= status_tag(@log.status) %>
<%= review_log_text(@log) %>
<% end %> <%= render "tasklist" %>