Sha256: 5d68663f3ca40364478ad22930fae6091adf1bd81ebeb987ab5919dfcbf2a166
Contents?: true
Size: 1.82 KB
Versions: 116
Compression:
Stored size: 1.82 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.hide_overflow - 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('--', '—').sub('->', '⇨') - else .title = list.respond_to?(:list_link) ? list.list_link(:length, id) : list.length %span.title - title = text || id = title.sub('--', '—').sub('->', '⇨') .content.hide_overflow - 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
116 entries across 116 versions & 1 rubygems