index.html.haml revision db7b1bfd41eb01238f00c7df022f4c11d6414e8c
= repository_nav parent.repository, :ontologies
-if @ontology
= ontology_nav @ontology, :links
-else
%h2= @page_title = 'Links'
%p
= pluralize(collection.count, resource_class.to_s)
found
= pagination do
-if @ontology
.col-md-2
%h4 Link
.col-md-2
%h4 Source
.col-md-2
%h4 Source-Entity
.col-md-2
%h4 Target
.col-md-2
%h4 Target-Entity
- hash = sort_link_list(@links)
- hash.each do |key, array|
.col-md-2
= link_to array.first[:link], array.first[:link]
.col-md-2
= array.first[:link].source
.col-md-2
-if key.to_s.include? "empty"
-else
=key
.col-md-4
-array.each do |link|
.col-md-6
=link[:link].target
.col-md-6
=link[:target]
-else
%thead
%th
%th.col-md-1.right Name
%th.col-md-2.right Source
%th.col-md-2 Target
%th Entites
%tbody
= render collection