Sha256: 8760f33cf871d2d434f35eccf787fdcafde48065f04f0579a38090979c4d2b33

Contents?: true

Size: 1.39 KB

Versions: 11

Compression:

Stored size: 1.39 KB

Contents

%dl.rbbt_accordion
  - container.lists.each do |id, list, text, options|
    - if Proc === list
      = fragment do
        - list = list.call
        - next if list.nil?
        %dt.next
          = list.respond_to?(:list_link) ? list.list_link(:length, id) : list.length
          %span.title
            = text || id 
        %dd
          - 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?
        %dt
          = 0
          %span.title
            = text || id 
      - else
        %dt.next
          = list.respond_to?(:list_link) ? list.list_link(:length, id) : list.length
          %span.title
            = text || id 
        %dd
          - 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

11 entries across 11 versions & 1 rubygems

Version Path
rbbt-rest-1.5.0 share/views/entity_partials/list_container.haml
rbbt-rest-1.4.13 share/views/entity_partials/list_container.haml
rbbt-rest-1.4.12 share/views/entity_partials/list_container.haml
rbbt-rest-1.4.11 share/views/entity_partials/list_container.haml
rbbt-rest-1.4.10 share/views/entity_partials/list_container.haml
rbbt-rest-1.4.9 share/views/entity_partials/list_container.haml
rbbt-rest-1.4.8 share/views/entity_partials/list_container.haml
rbbt-rest-1.4.7 share/views/entity_partials/list_container.haml
rbbt-rest-1.4.6 share/views/entity_partials/list_container.haml
rbbt-rest-1.4.5 share/views/entity_partials/list_container.haml
rbbt-rest-1.4.4 share/views/entity_partials/list_container.haml