<% content_for :title, "Log #{@log.id}" %> <% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: { "Home" => root_path, breadcrumb_logs_title(@log, current_user) => breadcrumb_logs_link(@log, current_user), }) %>

<%= content_for(:title) %>

<% if @log.status == "in_progress" %>

<%= get_subsections_count(@log, :completed) %> of <%= get_subsections_count(@log) %> subsections 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" %> <%= edit_actions_for_log(@log, bulk_upload_filter_applied) %>