_oops_state.html.haml revision 6fc50ffe34a3430cdfd8093b1bd9402ff69989e8
- if req = resource.versions.current.try(:request)
- repo = resource.repository
- version = resource.versions.current
- globals = req.responses.global
.state{class: req.state, 'data-uri' => url_for([repo, resource, version, :oops_request]), 'data-button' => 'Show results', 'data-reload_uri' => url_for([repo, resource]) }
%span.oops OOPS state: #{status(req)}
- if req.state == 'failed'
(#{req.last_error})
- elsif req.state == 'done'
(#{req.responses.count} Responses)
= link_to 'Show global issues', '#', class: 'pitfalls' unless globals.empty?
.pitfalls{style: 'display: none'}
%dl.oops-responses
- globals.each do |response|
%dt{title: response.element_type}
%i{class: oops_icon(response.element_type)}
%dd
%strong= response.name
%p= response.description