_oops_state.html.haml revision 24e0ce1d4adb31179cda93fa612c3df8268bf63b
bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch- if req = resource.versions.current.try(:request)
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi %div.state{ class: req.state, 'data-uri' => repository_ontology_ontology_version_oops_request_path(parent, resource, resource.versions.current), 'data-button' => "show results", 'data-reload_uri' => repository_ontology_url(parent, resource) }
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi %span.oops OOPS State: #{status(req)}
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi - if req.state == 'failed'
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi - elsif req.state == 'done'
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi = link_to 'Show global issues', '#', class: 'pitfalls' unless req.responses.count == 0
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi %div.pitfalls{style: 'display: none'}
4c78d9e646c4a1158d7167806937c02d86cdfc25Aki Tuomi %i{ class: oops_icon(response.element_type) }