Sha256: 5d4209f47c8f6decb704b09c46d3d52f30054e666f42792077f5d742f84bc689

Contents?: true

Size: 1.3 KB

Versions: 49

Compression:

Stored size: 1.3 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(remove_GET_param(request.env["REQUEST_URI"], "_layout"), "_update", "clean")
    %a.ui.button.blue.clean(href=clean_url) Clean
  - else
    - clean_url = add_GET_param(remove_GET_param(request.env["REQUEST_URI"], "_layout"), "_update", "reload")
    %a.ui.blue.button.reload(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

49 entries across 49 versions & 1 rubygems

Version Path
rbbt-rest-1.8.73 share/views/error.haml
rbbt-rest-1.8.72 share/views/error.haml
rbbt-rest-1.8.71 share/views/error.haml
rbbt-rest-1.8.70 share/views/error.haml
rbbt-rest-1.8.69 share/views/error.haml
rbbt-rest-1.8.68 share/views/error.haml
rbbt-rest-1.8.67 share/views/error.haml
rbbt-rest-1.8.66 share/views/error.haml
rbbt-rest-1.8.65 share/views/error.haml
rbbt-rest-1.8.64 share/views/error.haml
rbbt-rest-1.8.63 share/views/error.haml
rbbt-rest-1.8.62 share/views/error.haml
rbbt-rest-1.8.61 share/views/error.haml
rbbt-rest-1.8.60 share/views/error.haml
rbbt-rest-1.8.59 share/views/error.haml
rbbt-rest-1.8.58 share/views/error.haml
rbbt-rest-1.8.57 share/views/error.haml
rbbt-rest-1.8.56 share/views/error.haml
rbbt-rest-1.8.55 share/views/error.haml
rbbt-rest-1.8.53 share/views/error.haml