mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Support quoted replies stat, update font
This commit is contained in:
parent
82fe5d8b78
commit
b6a49fc4cb
13 changed files with 53 additions and 40 deletions
|
|
@ -28,7 +28,7 @@ proc renderNavbar*(title, rss: string; req: Request): VNode =
|
|||
icon "rss-feed", title="RSS Feed", href=rss
|
||||
icon "bird", title="Open in Twitter", href=twitterPath
|
||||
a(href="https://liberapay.com/zedeus"): verbatim lp
|
||||
icon "info-circled", title="About", href="/about"
|
||||
icon "info", title="About", href="/about"
|
||||
iconReferer "cog", "/settings", path, title="Preferences"
|
||||
|
||||
proc renderHead*(prefs: Prefs; cfg: Config; titleText=""; desc=""; video="";
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ proc linkUser*(profile: Profile, class=""): VNode =
|
|||
icon "ok", class="verified-icon", title="Verified account"
|
||||
if isName and profile.protected:
|
||||
text " "
|
||||
icon "lock-circled", title="Protected account"
|
||||
icon "lock", title="Protected account"
|
||||
|
||||
proc linkText*(text: string; class=""): VNode =
|
||||
let url = if "http" notin text: "http://" & text else: text
|
||||
|
|
|
|||
|
|
@ -186,6 +186,7 @@ proc renderStats(stats: TweetStats; views: string): VNode =
|
|||
span(class="tweet-stat"): icon "comment", insertSep($stats.replies, ',')
|
||||
span(class="tweet-stat"): icon "retweet", insertSep($stats.retweets, ',')
|
||||
span(class="tweet-stat"): icon "heart", insertSep($stats.likes, ',')
|
||||
span(class="tweet-stat"): icon "quote", insertSep($stats.quotes, ',')
|
||||
if views.len > 0:
|
||||
span(class="tweet-stat"): icon "play", insertSep(views, ',')
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue