.container-fluid
  On github:
  = revision_link_to @build.vcs_url, @build.vcs_revision
  - @logs.each do |l|
    -# wrapper allows the header and detail be siblings, for the JS
    .wrapper
      .action_header{ :class => action_header_style(l) }
        %span.command
          $
          = l.name
        %span.time
          = surround '(', ')' do
            = as_length_of_build(l.start_time, l[:end_time])

      .detail{ :class => action_log_style(l) }
        - if l["out"]
          %pre.output
            = preserve do
              !~ action_log_output(l.out)

  -#%table
    %thead
      %tr
        %th Time
        %th stdout/stderr
    %tbody
      - l["out"].each do |o|
        - if o["message"] != ""
          %tr
            %td
              = as_action_timestamp(o["time"])
            %td
              %div{ :class => o['type'] == "out" ? "alert-message block-message success" : "alert-message block-message error" }
                %pre
                  = o["message"]

.container-fluid
  On github:
  = revision_link_to @build.vcs_url, @build.vcs_revision
  - @logs.each do |l|
    -# wrapper allows the header and detail be siblings, for the JS
    .wrapper
      .action_header{ :class => action_header_style(l) }
        %span.command
          $
          = l.name
        %span.time
          = surround '(', ')' do
            = as_length_of_build(l.start_time, l[:end_time])

      .detail{ :class => action_log_style(l) }
        - if l["out"]
          %pre.output
            = preserve do
              !~ action_log_output(l.out)

          -#%table
            %tbody
              - l["out"].each do |o|
                - if o["message"] != ""
                  %tr
                    %td
                      = as_action_timestamp(o["time"])
                    %td
                      %div{ :class => o['type'] == "out" ? "alert-message block-message success" : "alert-message block-message error" }
                    %pre
                      !~ action_log_output([ o["message"] ] )

Tidy up the commented code, we need to return to that soon.
Tidy up the commented code, we need to return to that soon.
