mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Add support for tweet views
This commit is contained in:
parent
0bb0b7e78c
commit
bb6eb81a20
11 changed files with 58 additions and 49 deletions
|
|
@ -184,6 +184,8 @@ proc renderStats(stats: TweetStats; views: string): VNode =
|
|||
span(class="tweet-stat"): icon "retweet", formatStat(stats.retweets)
|
||||
span(class="tweet-stat"): icon "quote", formatStat(stats.quotes)
|
||||
span(class="tweet-stat"): icon "heart", formatStat(stats.likes)
|
||||
if stats.views > 0:
|
||||
span(class="tweet-stat"): icon "views", formatStat(stats.views)
|
||||
if views.len > 0:
|
||||
span(class="tweet-stat"): icon "play", insertSep(views, ',')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue