From 3aa66a4223a4dec2a20a149a4d238a035e3f9c5e Mon Sep 17 00:00:00 2001 From: TheSaminator Date: Mon, 14 Feb 2022 12:32:06 -0500 Subject: [PATCH] Add link to profile pic --- src/jvmMain/kotlin/starshipfights/info/views_main.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/jvmMain/kotlin/starshipfights/info/views_main.kt b/src/jvmMain/kotlin/starshipfights/info/views_main.kt index a9bcd7b..15b23fd 100644 --- a/src/jvmMain/kotlin/starshipfights/info/views_main.kt +++ b/src/jvmMain/kotlin/starshipfights/info/views_main.kt @@ -135,8 +135,10 @@ suspend fun ApplicationCall.newUsersPage(): HTML.() -> Unit { newUsers.forEach { newUser -> div { style = "display:inline-block;width:20%;padding:2%" - img(src = newUser.discordAvatarUrl) { - style = "width:100%;border-radius:50%" + a(href = "/user/${newUser.id}") { + img(src = newUser.discordAvatarUrl) { + style = "width:100%;border-radius:50%" + } } p { style = "text-align:center" -- 2.25.1