_oops_state.html.haml revision 4b33f350b6aeb4b32aad5a77459ce66598f54896
%p#oops
- if req = resource.versions.current.try(:request)
%div#oops-state{ class: req.state, 'data-uri' => url_for(resource) }
OOPS State: #{status(req)}
- if req.state == 'failed'
(#{req.last_error})
- else
(#{req.responses.count} Responses)
= link_to 'Show global issues', '#', class: 'pitfalls'
%div.pitfalls{:style => "display:none"}
- req.responses.global.each do |response|
%dt{ title: response.element_type }
%i{ class: oops_icon(response.element_type) }
%dd
%strong
- else
= link_to 'Test with OOPS!', oops_ontology_ontology_version_path(resource, resource.versions.current), method: 'post', class: 'btn'