Sha256: ed3737135407d7c946caf210ebf1b1e701d2d17b216afcfabcdedec7029d6803

Contents?: true

Size: 1.63 KB

Versions: 20

Compression:

Stored size: 1.63 KB

Contents

- new_info = {}
- info.each{|k,v| new_info[k] = v unless k.to_s == 'dependencies' || k.to_s == 'exception' || k.to_s == 'backtrace'}
- exception = info[:exception]

- status = info[:status]
.job_info.clean_list.ui.segment
  .ui.header 
    Info:
    %span.status(class=status)= job.name

  = hash2dl(new_info)

.ui.segment.job_inputs
  .ui.header
    %h3 Inputs (recursive)
  .ui.content
    %dl
      - inputs = job.recursive_inputs
      - inputs.zip(inputs.fields).each do |i,f|
        %dt= f
        %dd
          - case i
          - when Array
            %ul
              - i.each do |e|
                - if String === e
                  %li= e
                - else
                  %li= e.inspect
          - when String
            %pre= i
          - else
            %pre
              = i.inspect

- if exception
  - backtrace = exception[:backtrace]
  .error_backtrace.clean_list.ui.segment
    .ui.header Backtrace
    %pre.ui.content
      - require 'rbbt/util/colorize'
      - pallete = {}
      - matches = %w(views workflows rbbt).collect{|w| /\/#{w}/ }
      - colors = Colorize.distinct(matches)
      %ul
        - backtrace.each do |line|
          - color = nil
          - matches.each_with_index do |m,i|
            - if m.match(line)
              - color = colors[i].darken(0.3).to_s 
              - break

          - style = color ? ';color:'+color : ""
          %li(style="font-size:0.9em;font-family:monospace#{style}")= line.sub('`',"'")

- if info[:dependencies] and info[:dependencies].any?
  .ui.segment
    .ui.header
      %h3 Dependencies
    .ui.content
      = partial_render('partials/dependencies', :job => job)

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rbbt-rest-1.8.95 share/views/job_info.haml
rbbt-rest-1.8.94 share/views/job_info.haml
rbbt-rest-1.8.93 share/views/job_info.haml
rbbt-rest-1.8.92 share/views/job_info.haml
rbbt-rest-1.8.91 share/views/job_info.haml
rbbt-rest-1.8.90 share/views/job_info.haml
rbbt-rest-1.8.89 share/views/job_info.haml
rbbt-rest-1.8.88 share/views/job_info.haml
rbbt-rest-1.8.87 share/views/job_info.haml
rbbt-rest-1.8.86 share/views/job_info.haml
rbbt-rest-1.8.85 share/views/job_info.haml
rbbt-rest-1.8.84 share/views/job_info.haml
rbbt-rest-1.8.83 share/views/job_info.haml
rbbt-rest-1.8.82 share/views/job_info.haml
rbbt-rest-1.8.81 share/views/job_info.haml
rbbt-rest-1.8.80 share/views/job_info.haml
rbbt-rest-1.8.79 share/views/job_info.haml
rbbt-rest-1.8.78 share/views/job_info.haml
rbbt-rest-1.8.77 share/views/job_info.haml
rbbt-rest-1.8.76 share/views/job_info.haml