_files_file.html.haml revision 770dd0419a1afb27b859743e7763a934da7fd0b0
%h3
=path
.col-md-9
- if @file[:size] <= Ontohub::Application.config.max_read_filesize
= form_for(repository, url: fancy_repository_path(repository, path: path, ref: 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, ref: oid, action: :download)
.col-md-3
- unless @info[:ontologies].empty?
%h4
Defining
= pluralize @info[:ontologies].size, 'ontology'
- @info[:ontologies].each do |ontology|
%li= fancy_link ontology