Sha256: 93d9682f4d6406f74d2073f30a6b6da649389615dff0f1dfa88f0f76282fbb79
Contents?: true
Size: 1.23 KB
Versions: 6
Compression:
Stored size: 1.23 KB
Contents
.error.ui.segment.error.message %h5.ui.header Error on #{format_name File.basename(job.name)} - if job.messages and job.messages.any? %pre.error_message.ui.basic.segment.content = CGI.escapeHTML(job.messages[-1] || "") - if defined? job.info_file and File.exists? job.info_file and request.env["REQUEST_URI"].include? job.name - clean_url = add_GET_param(request.env["REQUEST_URI"], "_update", "clean") %a.ui.button.blue(href=clean_url) Clean - else - clean_url = add_GET_param(request.env["REQUEST_URI"], "_update", "reload") %a.ui.blue.button(href=clean_url) Reload - backtrace = job.info[:backtrace] - if backtrace and backtrace.any? %ul.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) - 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('`',"'")
Version data entries
6 entries across 6 versions & 1 rubygems