feat(profile): add data-profile-id on profile cards

This commit is contained in:
taskylizard 2024-05-21 17:42:38 +00:00
parent 769cb16a6b
commit a57b66a1f3
No known key found for this signature in database
GPG key ID: 1820131ED1A24120

View file

@ -13,7 +13,7 @@ proc renderStat(num: int; class: string; text=""): VNode =
text insertSep($num, ',')
proc renderUserCard*(user: User; prefs: Prefs; path: string): VNode =
buildHtml(tdiv(class="profile-card")):
buildHtml(tdiv(class="profile-card", "data-profile-id" = $user.id)):
tdiv(class="profile-card-info"):
let
url = getPicUrl(user.getUserPic())