Cross Reference: ontology_helper.rb
xref
: /
ontohub
/
app
/
helpers
/
ontology_helper.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
module
OntologyHelper
def
current_version
o = @
ontology.parent
? @
ontology.parent
: @
ontology
o.current
_version
end
def
download_path
(
resource
)
return
nil
if
resource.versions.done.empty
?
repository_ontology_ontology_version_path
(*
resource_chain
,
resource.versions.done.latest.first
)
end
def
show_evaluate
?
show_oops
?
#|| show_foo?
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