_files_dir.html.haml revision 07f61751814bfc5b08a6641c744dd664430bda5a
- if @info[:entries].empty?
.muted
This folder is empty
- else
%table.table.table-condensed.table-hover.file-table{'data-id' => @repository.path, 'data-path' => @path, 'data-oid' => @oid, 'data-ajax-path' => fancy_repository_path(@repository, path: @path, oid: @oid, action: :entries_info), 'data-diff-path' => fancy_repository_path(@repository, oid: '%s', action: :diff)}
%tbody
- @info[:entries].each do |name, entries|
- entries.each_with_index do |entry, i|
%tr{"data-id" => entry[:index]}
- if i == 0
%td.ontology{rowspan: entries.size}
= fancy_link entry[:ontology]
=# link_to name, fancy_repository_path(@repository, path: basepath(entry[:path]), oid: @oid) unless entry[:type] == :dir
- if entry[:type] == :dir
- else
= link_to entry[:name].force_encoding('UTF-8'), fancy_repository_path(@repository, path: entry[:path], oid: @oid) #FIXME force_encoding is needed due to errors in rugged