PageRenderTime 40ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/ruote-kit/views/error.html.haml

https://github.com/nagender/ruote-kit
HAML | 83 lines | 62 code | 17 blank | 4 comment | 0 complexity | 818ef6b7b0b1a3af72bd1846a10fb295 MD5 | raw file
  1. - # under the MIT license, see LICENSE.txt
  2. - @_uses_fluo = true
  3. %h1 error #{@error.fei.sid}
  4. %canvas#fluo
  5. %table.details
  6. %tr
  7. %td
  8. id
  9. %td
  10. = @error.fei.sid
  11. %tr
  12. %td
  13. action / direction
  14. %td
  15. &= @error.action
  16. %tr
  17. %td
  18. message
  19. %td
  20. &= @error.message
  21. %tr
  22. %td
  23. trace
  24. %td
  25. %pre.trace{ :onclick => 'Rk.toggleNext(this);' } #{h(@error.trace[0, 80] + '...')}
  26. %pre.trace{ :onclick => 'Rk.toggleNext(this);', :style => 'display: none;' } #{h(@error.trace)}
  27. %tr
  28. %td.no_border{ :colspan => 2 }
  29.  
  30. %tr
  31. %td
  32. expression
  33. %td
  34. GET
  35. = alink(:expressions, @error.fei.sid)
  36. -#%span.explanation
  37. -# you can re-apply the expression (and hopefully nuke the error) from there
  38. %tr
  39. %td
  40. process
  41. %td
  42. GET
  43. = alink(:processes, @error.wfid)
  44. %tr
  45. %td
  46. process errors
  47. %td
  48. GET
  49. = alink(:errors, @error.wfid)
  50. %tr
  51. %td.no_border{ :colspan => 2 }
  52.  
  53. %tr
  54. %td
  55. %td
  56. %form{ :method => 'POST' }
  57. %input{ :type => 'hidden', :name => '_method', :value => 'DELETE' }
  58. %input{ :type => 'submit', :value => "DELETE /_ruote/errors/#{@error.fei.sid}", :title => 'replay at this error' }
  59. -#%span.explanation
  60. -# replay at this error
  61. :javascript
  62. var proc_rep = #{process_tree(@process)};
  63. var pins = #{Rufus::Json.encode(@pins)};
  64. Fluo.renderFlow('fluo', proc_rep, { 'pins': pins });
  65. Fluo.crop('fluo');
  66. Fluo.resizeForMaxWidth('fluo', $('body').width() / 2.1);