_files_file.html.haml revision 5638f050d3d998b69dbdcd69f757efff63880950
%h3
=@path
-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)