ontology_helper.rb revision a031ac3bfb301dbdc29840186991f9d866c30f20
# encoding: utf-8
html << image_tag('spinner-16x16.gif', class: 'spinner')
end
if resource.state == 'failed' and resource.is_a? Ontology
version = resource.versions.last
link = ' ('
link << link_to('error',
ontology_ontology_versions_path(resource),
:'original-title' => version.last_error,
class: 'help'
)
link << ')'
html << content_tag(:span, link.html_safe, class: 'error')
end
html
end
def download_path(resource)
ontology_ontology_version_path(resource, resource.last_valid_version)
end
end