From a57b66a1f37d50ce3b9e481ac1caeeef1fabdafd Mon Sep 17 00:00:00 2001 From: taskylizard <75871323+taskylizard@users.noreply.github.com> Date: Tue, 21 May 2024 17:42:38 +0000 Subject: [PATCH] feat(profile): add `data-profile-id` on profile cards --- src/views/profile.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/profile.nim b/src/views/profile.nim index f35e7cc..b89bf43 100644 --- a/src/views/profile.nim +++ b/src/views/profile.nim @@ -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())