Sha256: 317b953982eb35af28b699cd30442f6042d9ef142b471504551223e21383b370

Contents?: true

Size: 646 Bytes

Versions: 141

Compression:

Stored size: 646 Bytes

Contents

- entity_card = EntityCard.new entity
- name = entity.respond_to?(:name)? entity.name || entity : entity

- if not entity.respond_to?(:long_name)
  - if entity.respond_to?(:name)
    - entity_card.name = [entity.base_type, entity] * ": "
  - else
    - entity_card.name = entity.base_type
  - entity_card.long_name = name

- if entity.respond_to? :genes
  - genes = entity.genes
  - list_container = ListContainer.new
  - list_container.add "Genes for #{[entity.base_type, name] * ": "}", genes
  - entity_card.list_container = list_container

- entity_card.action_controller = default_action_controller entity

= entity_card_render entity_card

Version data entries

141 entries across 141 versions & 1 rubygems

Version Path
rbbt-rest-1.6.5 share/views/entity/Default.haml
rbbt-rest-1.6.4 share/views/entity/Default.haml
rbbt-rest-1.6.3 share/views/entity/Default.haml
rbbt-rest-1.6.2 share/views/entity/Default.haml
rbbt-rest-1.6.1 share/views/entity/Default.haml
rbbt-rest-1.6.0 share/views/entity/Default.haml
rbbt-rest-1.5.0 share/views/entity/Default.haml
rbbt-rest-1.4.13 share/views/entity/Default.haml
rbbt-rest-1.4.12 share/views/entity/Default.haml
rbbt-rest-1.4.11 share/views/entity/Default.haml
rbbt-rest-1.4.10 share/views/entity/Default.haml
rbbt-rest-1.4.9 share/views/entity/Default.haml
rbbt-rest-1.4.8 share/views/entity/Default.haml
rbbt-rest-1.4.7 share/views/entity/Default.haml
rbbt-rest-1.4.6 share/views/entity/Default.haml
rbbt-rest-1.4.5 share/views/entity/Default.haml
rbbt-rest-1.4.4 share/views/entity/Default.haml
rbbt-rest-1.4.3 share/views/entity/Default.haml
rbbt-rest-1.4.2 share/views/entity/Default.haml
rbbt-rest-1.4.1 share/views/entity/Default.haml