index.html.haml revision 8ad47f4edef58b0df66752810e7fa49cb03e8736
957N/A- if parent
957N/A = repository_nav parent.repository, :ontologies
957N/A
957N/A- if @ontology
957N/A = ontology_nav @ontology, :mappings
957N/A- else
957N/A %h2= @page_title = 'Mappings'
957N/A
957N/A%p
957N/A = pluralize(collection.count, "#{Settings.OMS} mapping")
957N/A currently available
957N/A
957N/A= pagination do
957N/A -if @ontology
957N/A .row.center-row
957N/A .col-md-2
957N/A %h4 Mapping
957N/A .col-md-2
957N/A %h4 Source
957N/A .col-md-2
957N/A %h4 Source-Symbol
957N/A .col-md-2
957N/A %h4 Target
957N/A .col-md-2
957N/A %h4 Target-Symbol
957N/A - hash = sort_link_list(@mappings)
957N/A - hash.each do |key, array|
957N/A .row.center-row
957N/A .col-md-2
957N/A = link_to array.first[:mapping], array.first[:mapping]
957N/A .col-md-2
957N/A = fancy_link array.first[:mapping].source
957N/A .col-md-2
957N/A -if key.to_s.include? "empty"
957N/A
957N/A -else
957N/A =key
957N/A .col-md-4
957N/A -array.each do |mapping|
957N/A .row.center-row
957N/A .col-md-6
957N/A =fancy_link mapping[:mapping].target
957N/A .col-md-6
=mapping[: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