Skip to content

Commit

Permalink
Improve the look of Trello widget a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
senorprogrammer committed May 15, 2019
1 parent b2cef43 commit 3cc19dc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions modules/trello/widget.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ func (widget *Widget) contentFrom(searchResult *SearchResult) string {
str := ""

for list, cardArray := range searchResult.TrelloCards {
str = fmt.Sprintf("%s [red]Cards in %s[white]\n", str, list)
str = str + fmt.Sprintf(" [red]%s[white]\n", list)

for _, card := range cardArray {
str = fmt.Sprintf("%s [green]%s[white]\n", str, card.Name)
str = str + fmt.Sprintf(" %s[white]\n", card.Name)
}
str = fmt.Sprintf("%s\n", str)
}
Expand Down

0 comments on commit 3cc19dc

Please sign in to comment.