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