Sha256: 5b3597385ea6d80b8a4d74a2170bbd4b95c88417146734bc56a74abe00f8af07
Contents?: true
Size: 362 Bytes
Versions: 35
Compression:
Stored size: 362 Bytes
Contents
def checked? content == "1" end view :core do case card.content.to_i when 1 then tr(:yes) when 0 then tr(:no) else "?" end end format :html do view :editor do toggle end view :labeled_editor do toggle + toggle_label end def toggle check_box :content end def toggle_label label :content, card.name.tag end end
Version data entries
35 entries across 35 versions & 1 rubygems