index.html.haml revision 3a0e2da78982f8e291c2c6dbe9425fa60bf2b222
- if parent
= 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
.row.center-row
.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|
.row.center-row
.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|
.row.center-row
.col-md-6
=link[:link].target
.col-md-6
=link[:target]
-else
%table.table.col-md-8
%thead
%tr.center
%th
%th.col-md-1.right Name
%th.col-md-2.right Source
%th.col-md-1
%th.col-md-2 Target
%th Entites
%tbody
= render collection