_show_dir.html.haml revision ccb3ac32fa3dfc64262b8add551e99d5b23eb937
%table.table.table-condensed.table-hover.file-table#directory-listing
%tbody
%tr#repository_directories_form_line_prototype
%td
%td.icon
%i.icon-folder-close
%td{colspan: 3}
= render partial: 'repository_directories/form', locals: { resource: new_repository_directory }
%tr#repository_directories_line_prototype
%td
%td.icon
%i.icon-folder-close
%td{colspan: 3}
%a
- if resource.content.empty?
%tr#empty_repository_hint
%td{colspan: 5} This directory is empty.
- resource.grouped_content.each do |name, entries|
- entries.each_with_index do |entry, i|
%tr{"data-id" => entry.index}
- if i == 0
%td.ontology{rowspan: entries.size}
- unless entry.dir? || entry.ontologies.empty?
%ul.ontology-list
- entry.ontologies.each do |ontology|
%li.ontology-list-item
= fancy_link ontology
- if ontology.state=='failed'
%i.icon-bolt{ title: "processing #{ontology.state}" }
%td.icon
- if entry.dir?
%i.fa.fa-folder
- else
- if entry.ontologies.empty?
%i.fa.fa-file
- else
%i.fa.fa-file-o
%td.name
= link_to entry.name.force_encoding('UTF-8'), fancy_repository_path(repository, path: entry.path, ref: oid)
%td.last-commit.muted
%td.last-modified.muted
#repository_directories_flash_message_prototype.flash.alert.alert-info
%a.close{data: {dismiss: 'alert'}} ×