ontology_helper.rb revision 075e8216f719a593d9111ce303e5028bcb0400fa
end
return nil if resource.versions.done.empty?
end
show_oops? #|| show_foo?
end
html_opts = {
data: {
}
}
content_tag(:small, html_opts) do
end
end
end
if resource.state == 'failed' and resource.is_a? Ontology
version = resource.versions.last
link = ' ('
link << link_to('error',
[resource.repository, resource, :ontology_versions],
:'data-original-title' => version.last_error,
class: 'help'
)
link << ')'
html << content_tag(:span, link.html_safe, class: 'error')
end
html
end
def last_file_path(resource)
repository_ref_path(
repository_id: resource.repository.to_param,
ref: resource.current_version.commit_oid,
path: resource.current_version.path,
action: :show)
end
end