Sha256: 2277bb72f43863e0d53db10dc8fe15dfbc118cdb8aac90c145a2feaedbe92420

Contents?: true

Size: 1.79 KB

Versions: 33

Compression:

Stored size: 1.79 KB

Contents

.entity_list.ui.styled.accordion
  = fragment do
    - if container.block
      - container.block.call(container)
    - container.lists.each do |id, list, text, options|
      - if Proc === list
        = fragment do
          - list = list.call
          - next if list.nil?
          .title
            = list.respond_to?(:list_link) ? list.list_link(:length, id) : list.length
            %span.title
              - title = text || id 
              = title.sub('--', '—').sub('->', '⇨')
          .content 
            - if (defined? force and force) or list.length < 500
              - if list.respond_to? :link
                = list.link * ", "
              - else
                = list * ", "
            - else
              = modal_fragment "Too many entities to list" do
                - if list.respond_to? :link
                  = list.link * ", "
                - else
                  = list * ", "
      - else
        - if list.empty?
          .title
            = 0
            %span.title
              - title = text || id 
              = title.sub('--', '&#8212;').sub('->', '&#8680;')
        - else
          .title
            = list.respond_to?(:list_link) ? list.list_link(:length, id) : list.length
            %span.title
              - title = text || id 
              = title.sub('--', '&#8212;').sub('->', '&#8680;')
          .content
            - if (defined? force and force) or list.length < 500
              - if list.respond_to? :link
                = list.link * ", "
              - else
                = list * ", "
            - else
              = reveal "Too many entities to list" do
                = fragment do
                  - if list.respond_to? :link
                    = list.link * ", "
                  - else
                    = list * ", "


Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
rbbt-rest-1.8.36 share/views/entity_partials/list_container.haml
rbbt-rest-1.8.35 share/views/entity_partials/list_container.haml
rbbt-rest-1.8.34 share/views/entity_partials/list_container.haml
rbbt-rest-1.8.32 share/views/entity_partials/list_container.haml
rbbt-rest-1.8.31 share/views/entity_partials/list_container.haml
rbbt-rest-1.8.30 share/views/entity_partials/list_container.haml
rbbt-rest-1.8.29 share/views/entity_partials/list_container.haml
rbbt-rest-1.8.28 share/views/entity_partials/list_container.haml
rbbt-rest-1.8.27 share/views/entity_partials/list_container.haml
rbbt-rest-1.8.26 share/views/entity_partials/list_container.haml
rbbt-rest-1.8.25 share/views/entity_partials/list_container.haml
rbbt-rest-1.8.23 share/views/entity_partials/list_container.haml
rbbt-rest-1.8.22 share/views/entity_partials/list_container.haml
rbbt-rest-1.8.21 share/views/entity_partials/list_container.haml
rbbt-rest-1.8.20 share/views/entity_partials/list_container.haml
rbbt-rest-1.8.19 share/views/entity_partials/list_container.haml
rbbt-rest-1.8.18 share/views/entity_partials/list_container.haml
rbbt-rest-1.8.17 share/views/entity_partials/list_container.haml
rbbt-rest-1.8.16 share/views/entity_partials/list_container.haml
rbbt-rest-1.8.15 share/views/entity_partials/list_container.haml