/lib/ruote-kit/views/error.html.haml
HAML | 83 lines | 62 code | 17 blank | 4 comment | 0 complexity | 818ef6b7b0b1a3af72bd1846a10fb295 MD5 | raw file
- - # under the MIT license, see LICENSE.txt
- - @_uses_fluo = true
- %h1 error #{@error.fei.sid}
- %canvas#fluo
- %table.details
- %tr
- %td
- id
- %td
- = @error.fei.sid
- %tr
- %td
- action / direction
- %td
- &= @error.action
- %tr
- %td
- message
- %td
- &= @error.message
- %tr
- %td
- trace
- %td
- %pre.trace{ :onclick => 'Rk.toggleNext(this);' } #{h(@error.trace[0, 80] + '...')}
- %pre.trace{ :onclick => 'Rk.toggleNext(this);', :style => 'display: none;' } #{h(@error.trace)}
- %tr
- %td.no_border{ :colspan => 2 }
-
- %tr
- %td
- expression
- %td
- GET
- = alink(:expressions, @error.fei.sid)
- -#%span.explanation
- -# you can re-apply the expression (and hopefully nuke the error) from there
- %tr
- %td
- process
- %td
- GET
- = alink(:processes, @error.wfid)
- %tr
- %td
- process errors
- %td
- GET
- = alink(:errors, @error.wfid)
- %tr
- %td.no_border{ :colspan => 2 }
-
- %tr
- %td
- %td
- %form{ :method => 'POST' }
- %input{ :type => 'hidden', :name => '_method', :value => 'DELETE' }
- %input{ :type => 'submit', :value => "DELETE /_ruote/errors/#{@error.fei.sid}", :title => 'replay at this error' }
- -#%span.explanation
- -# replay at this error
- :javascript
- var proc_rep = #{process_tree(@process)};
- var pins = #{Rufus::Json.encode(@pins)};
- Fluo.renderFlow('fluo', proc_rep, { 'pins': pins });
- Fluo.crop('fluo');
- Fluo.resizeForMaxWidth('fluo', $('body').width() / 2.1);