Sha256: e71c0d4171b7b71135c1550c7651e2e1673e84945e8dad2df0fcd8afd7dc0306

Contents?: true

Size: 860 Bytes

Versions: 9

Compression:

Stored size: 860 Bytes

Contents

- require 'rbbt/sources/PSI_MI'
- values = index[pair] 

- source = pair.source_entity
- target = pair.target_entity
- source_name = source.respond_to?(:name) ? source.name || name : source
- target_name = target.respond_to?(:name) ? target.name || name : target
- name = [source_name, target_name] * "~"
- kb_name = File.basename pair.knowledge_base.dir

%h3== #{name} in #{pair.database} #{kb_name}

= association_render(pair, pair.database)


- kb = pair.knowledge_base
- other_databases = []

- kb.registry.each do |database,info|
  - index = kb.get_index database
  - next unless index.include? pair
  - next if database == pair.database
  - other_databases << database

- if other_databases.any?
  %h5 In other databases


  %dl.tabs
    - other_databases.each do |database|
      %dt.next=database
      %dd
        = association_render(pair, database)

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rbbt-rest-1.4.12 share/views/knowledge_base_partials/association.haml
rbbt-rest-1.4.11 share/views/knowledge_base_partials/association.haml
rbbt-rest-1.4.10 share/views/knowledge_base_partials/association.haml
rbbt-rest-1.4.9 share/views/knowledge_base_partials/association.haml
rbbt-rest-1.4.8 share/views/knowledge_base_partials/association.haml
rbbt-rest-1.4.7 share/views/knowledge_base_partials/association.haml
rbbt-rest-1.4.6 share/views/knowledge_base_partials/association.haml
rbbt-rest-1.4.5 share/views/knowledge_base_partials/association.haml
rbbt-rest-1.4.4 share/views/knowledge_base_partials/association.haml