files.html.haml revision 6f8cf80de7bef698279a19bd5063c954743f3444
= repository_nav repository, :"Ontology files and related files"
.row
.col-md-6
%p
In this page, you have direct access to the file system where the
repository is stored.
- case @info[:type]
- when :file_base, :file
Below are the contents of the file presented as text as well as its
path relative to the repository home directory. If you want to see the
contents of this file as ontologies, click on the ontology links above
the text box.
- when :dir
Below is the list of files in the current directory, independent of
whether they contain ontologies or not. In order to find a particular
file, you can navigate through the file system.
.pull-right.btn-group.breadcrumbs-buttons
- if can? :write, repository
= link_to new_repository_file_path(repository, 'upload_file[path]' => dirpath), class: 'btn btn-default btn-sm' do
= @info[:type] == :file ? 'Update file' : 'Upload file'
= link_to fancy_repository_path(repository, action: :history, path: path, ref: ref), class: 'btn btn-default btn-sm' do
= @info[:type] == :file ? 'History of this file' : 'History of this directory'
= render partial: 'files/breadcrumbs'
- case @info[:type]
- when :file_base_ambiguous
= render partial: 'files_file_base_ambiguous'
- when :file_base, :file
= render partial: 'files_file'
- when :dir
= render partial: 'files_dir'