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.30 share/views/error.haml
rbbt-rest-1.8.29 share/views/error.haml
rbbt-rest-1.8.28 share/views/error.haml
rbbt-rest-1.8.27 share/views/error.haml
rbbt-rest-1.8.26 share/views/error.haml
rbbt-rest-1.8.25 share/views/error.haml
rbbt-rest-1.8.23 share/views/error.haml
rbbt-rest-1.8.22 share/views/error.haml
rbbt-rest-1.8.21 share/views/error.haml