Sha256: e410d4276fac147b92532b7df31732c2c80a480b3603e8dee14f478ef64bb4e4
Contents?: true
Size: 1.89 KB
Versions: 1
Compression:
Stored size: 1.89 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) - 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 %h3 Dependencies = partial_render('partials/dependencies', :job => job) -#%ul - task_exports = workflow.synchronous_exports + workflow.asynchronous_exports - task_exports = task_exports.collect{|t| t.to_s} -# info[:dependencies].each do |task,name,path| - dep = Step.new path - d_workflow = dep.workflow || "Unknown Workflow" - wf = workflow if d_workflow.nil? || d_workflow.to_s == workflow.to_s - if wf.nil? and d_workflow - wf ||= begin - Kernel.const_get d_workflow - rescue %li (#{d_workflow}##{task}) - if Open.remote? path - url = path.split("?").first %a(href=url) #{ name } - elsif wf and wf.task_exports.include? task - url = "/" + [d_workflow.to_s, task.to_s, name.to_s] * "/" %a(href=url) #{ name } - else = name
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rbbt-rest-1.8.74 | share/views/job_info.haml |