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