Use strformat more

This commit is contained in:
Zed 2022-06-04 02:18:26 +02:00
commit 21e8f04fa4
11 changed files with 38 additions and 37 deletions

View file

@ -154,7 +154,7 @@ proc renderPoll(poll: Poll): VNode =
span(class="poll-choice-value"): text percStr
span(class="poll-choice-option"): text poll.options[i]
span(class="poll-info"):
text insertSep($poll.votes, ',') & " votes • " & poll.status
text &"{insertSep($poll.votes, ',')} votes • {poll.status}"
proc renderCardImage(card: Card): VNode =
buildHtml(tdiv(class="card-image-container")):