Module: Tr3llo::View::Card::Show

Extended by:
Show
Included in:
Show
Defined in:
lib/3llo/view/card/show.rb

Instance Method Summary collapse

Instance Method Details

#render(card, checklists) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/3llo/view/card/show.rb', line 7

def render(card, checklists)
  <<~TEMPLATE.strip
  #{Utils.format_bold(card.name)}#{render_members(card.members)}#{render_labels(card.labels)}
  #{Utils.format_key_tag(card.id, card.shortcut)}
  Link: #{Utils.paint(card.short_url, "blue")}
  #{render_description(card.description)}

  #{render_checklists(checklists)}
  TEMPLATE
end