%ol#collapsible - @build_logs.each do |build_target| %li %label(for="#{build_target.target_name}") = "Build target #{build_target.target_name}" %input(type="checkbox" id="#{build_target.target_name}") %ol - build_target.sections.each do |build_section| %li %span{class: (build_section.success? ? 'build-log-success' : 'build-log-error')} = build_section.name - if build_section.file? %span.file = build_section.file %span.path = "...in #{build_section.directory}" - elsif !build_section.file? && build_section.path? %span.path = "#{build_section.path}" - if build_section.errors? %ul - build_section.errors.each do |build_error| %li.build-log-error.error-text = build_error