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.7.17 share/views/entity/Default.haml
rbbt-rest-1.7.16 share/views/entity/Default.haml
rbbt-rest-1.7.15 share/views/entity/Default.haml
rbbt-rest-1.7.14 share/views/entity/Default.haml
rbbt-rest-1.7.13 share/views/entity/Default.haml
rbbt-rest-1.7.12 share/views/entity/Default.haml
rbbt-rest-1.7.11 share/views/entity/Default.haml
rbbt-rest-1.7.10 share/views/entity/Default.haml
rbbt-rest-1.7.9 share/views/entity/Default.haml
rbbt-rest-1.7.8 share/views/entity/Default.haml
rbbt-rest-1.7.7 share/views/entity/Default.haml
rbbt-rest-1.7.6 share/views/entity/Default.haml
rbbt-rest-1.7.5 share/views/entity/Default.haml
rbbt-rest-1.7.4 share/views/entity/Default.haml
rbbt-rest-1.7.3 share/views/entity/Default.haml
rbbt-rest-1.7.2 share/views/entity/Default.haml
rbbt-rest-1.7.1 share/views/entity/Default.haml
rbbt-rest-1.7.0 share/views/entity/Default.haml
rbbt-rest-1.6.28 share/views/entity/Default.haml
rbbt-rest-1.6.26 share/views/entity/Default.haml