Sha256: 4c15a48a6a42dc3d65df41d5c634a0048bbcd675b8b9bf23a5704fb20301daa3
Contents?: true
Size: 1.2 KB
Versions: 12
Compression:
Stored size: 1.2 KB
Contents
format do ONE_LINE_CHARACTER_LIMIT = 60 # override to customize by set def chunk_list :default end view :one_line_content do with_nest_mode :compact do one_line_content end end # DEPRECATED view :closed_content, :one_line_content view :raw_one_line_content do raw_one_line_content end view :label do card.label.to_s end view :smart_label, cache: :never, unknown: true do label_with_description render_label, label_description end def label_with_description label, description return label unless description "#{label} #{popover_link description}" end # TODO: move this into a nest once popovers are stub safe def label_description return unless (desc = card.fetch :description) desc.format.render_core end def raw_one_line_content truncate strip_tags(render_raw), length: one_line_character_limit end def one_line_content truncate strip_tags(render_core), length: one_line_character_limit end def one_line_character_limit voo.size || ONE_LINE_CHARACTER_LIMIT end end format :html do view :hidden_content_field, unknown: true, cache: :never do hidden_field :content, class: "d0-card-content" end end
Version data entries
12 entries across 12 versions & 1 rubygems