Add link to profile pic
authorTheSaminator <TheSaminator@users.noreply.github.com>
Mon, 14 Feb 2022 17:32:06 +0000 (12:32 -0500)
committerTheSaminator <TheSaminator@users.noreply.github.com>
Mon, 14 Feb 2022 17:32:06 +0000 (12:32 -0500)
src/jvmMain/kotlin/starshipfights/info/views_main.kt

index a9bcd7beacbfcb1f8f64d74d7bd45b9e8293d908..15b23fddaebd322b437f3314aef80685d2d2251f 100644 (file)
@@ -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"