b94d7d4b3d3472197238271e200468b55c5e6102henning muellermodule OntologyHelper
3b378eef3a571df8cc27122e08f5106170cd3643henning mueller
3b378eef3a571df8cc27122e08f5106170cd3643henning mueller def current_version
3b378eef3a571df8cc27122e08f5106170cd3643henning mueller o = @ontology.parent ? @ontology.parent : @ontology
0dda23492d6edbe1392af2e3267ef7e2648a641cTim Reddehase o.current_version
3b378eef3a571df8cc27122e08f5106170cd3643henning mueller end
3b378eef3a571df8cc27122e08f5106170cd3643henning mueller
3b378eef3a571df8cc27122e08f5106170cd3643henning mueller def download_path(resource)
3b378eef3a571df8cc27122e08f5106170cd3643henning mueller return nil if resource.versions.done.empty?
3b378eef3a571df8cc27122e08f5106170cd3643henning mueller repository_ontology_ontology_version_path(*resource_chain, resource.versions.done.latest.first)
3b378eef3a571df8cc27122e08f5106170cd3643henning mueller end
ee5342a8882c2fc7631fcffb5497e6597747887cTim Reddehase
3b378eef3a571df8cc27122e08f5106170cd3643henning mueller def show_evaluate?
3b378eef3a571df8cc27122e08f5106170cd3643henning mueller show_oops? #|| show_foo?
3b378eef3a571df8cc27122e08f5106170cd3643henning mueller end
b299dbef5e70f4f78937112b19370a4d5d0e04e3Eugen Kuksa
b299dbef5e70f4f78937112b19370a4d5d0e04e3Eugen Kuksa def last_file_path(resource)
075e8216f719a593d9111ce303e5028bcb0400faEugen Kuksa repository_ref_path(
075e8216f719a593d9111ce303e5028bcb0400faEugen Kuksa repository_id: resource.repository.to_param,
b299dbef5e70f4f78937112b19370a4d5d0e04e3Eugen Kuksa ref: resource.current_version.commit_oid,
b299dbef5e70f4f78937112b19370a4d5d0e04e3Eugen Kuksa path: resource.current_version.path,
b299dbef5e70f4f78937112b19370a4d5d0e04e3Eugen Kuksa action: :show)
b299dbef5e70f4f78937112b19370a4d5d0e04e3Eugen Kuksa end
b94d7d4b3d3472197238271e200468b55c5e6102henning muellerend