turned user tweets and likes stats into hyperlinks
This commit is contained in:
parent
ced0599e89
commit
6bd21d6f0a
1 changed files with 4 additions and 2 deletions
|
@ -58,12 +58,14 @@ proc renderUserCard*(user: User; prefs: Prefs): VNode =
|
||||||
|
|
||||||
tdiv(class="profile-card-extra-links"):
|
tdiv(class="profile-card-extra-links"):
|
||||||
ul(class="profile-statlist"):
|
ul(class="profile-statlist"):
|
||||||
renderStat(user.tweets, "posts", text="Tweets")
|
a(href="/" & user.username):
|
||||||
|
renderStat(user.tweets, "posts", text="Tweets")
|
||||||
a(href="/" & user.username & "/following"):
|
a(href="/" & user.username & "/following"):
|
||||||
renderStat(user.following, "following")
|
renderStat(user.following, "following")
|
||||||
a(href="/" & user.username & "/followers"):
|
a(href="/" & user.username & "/followers"):
|
||||||
renderStat(user.followers, "followers")
|
renderStat(user.followers, "followers")
|
||||||
renderStat(user.likes, "likes")
|
a(href="/" & user.username & "/favorites"):
|
||||||
|
renderStat(user.likes, "likes")
|
||||||
|
|
||||||
proc renderPhotoRail(profile: Profile): VNode =
|
proc renderPhotoRail(profile: Profile): VNode =
|
||||||
let count = insertSep($profile.user.media, ',')
|
let count = insertSep($profile.user.media, ',')
|
||||||
|
|
Loading…
Reference in a new issue