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.4.0 share/views/entity/Default.haml
rbbt-rest-1.3.32 share/views/entity/Default.haml
rbbt-rest-1.3.31 share/views/entity/Default.haml
rbbt-rest-1.3.30 share/views/entity/Default.haml
rbbt-rest-1.3.29 share/views/entity/Default.haml
rbbt-rest-1.3.28 share/views/entity/Default.haml
rbbt-rest-1.3.27 share/views/entity/Default.haml
rbbt-rest-1.3.26 share/views/entity/Default.haml
rbbt-rest-1.3.25 share/views/entity/Default.haml
rbbt-rest-1.3.24 share/views/entity/Default.haml
rbbt-rest-1.3.23 share/views/entity/Default.haml
rbbt-rest-1.3.22 share/views/entity/Default.haml
rbbt-rest-1.3.21 share/views/entity/Default.haml
rbbt-rest-1.3.20 share/views/entity/Default.haml
rbbt-rest-1.3.19 share/views/entity/Default.haml
rbbt-rest-1.3.18 share/views/entity/Default.haml
rbbt-rest-1.3.17 share/views/entity/Default.haml
rbbt-rest-1.3.16 share/views/entity/Default.haml
rbbt-rest-1.3.15 share/views/entity/Default.haml
rbbt-rest-1.3.14 share/views/entity/Default.haml