_files_file.html.haml revision 16967c96123e6fa29540b72b2d78bf65a100b8ee
%h3
=@path
- unless @info[:ontologies].empty?
- if @info[:ontologies].size == 1
%p
Defining ontology:
= fancy_link @info[:ontologies][0]
- else
%p Defining ontologies:
%ul.ontology-list
- @info[:ontologies].each do |ontology|
%li= fancy_link ontology
-if @file[:size] <= Ontohub::Application.config.max_read_filesize
%pre=@file[:content]
-# =form_for(repository, url: fancy_repository_path(repository, path: @info[:entry][:path], oid: @oid), method: :post, html: {class: 'form-horizontal edit-form'}) do |f|
-# =text_area_tag 'content', @file[:content], class: 'input-xxlarge', id: 'code-area', 'data-mime-type' => get_mime_string(@file[:name], @file[:mime_type])
-else
%p
File too large to display.
=link_to "Download #{@file[:name]}.", fancy_repository_path(repository, path: @path, oid: @oid)