<div class="good-job-execution-log">
  <% if log_lines = execution.log_lines_collection&.log_lines %>
    <div class="good-job-log-lines">
      <% log_lines.each do |line| %>
        <div class="good-job-log-line">
          <% segments = parse_ansi(line) %>
          <% segments.each do |segment| %>
            <% class_names = segment.class_names %>
            <% if segment.url %>
              <%= link_to(
                segment.text,
                segment.url,
                class: class_names.join(" "),
                title: segment.text,
                target: "_blank",
              ) %>
            <% else %>
              <span
                title="<%= segment.text %>"
                class="<%= class_names.join(" ") %>"
                ><%= segment.text %></span
              >
            <% end %>
          <% end %>
        </div>
      <% end %>
    </div>
  <% else %>
    No log lines
  <% end %>
</div>
