From: TheSaminator Date: Sun, 13 Feb 2022 22:43:08 +0000 (-0500) Subject: okay that's better X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=c413b0429a98e105d09efbd8f0133dfd64da64b4;p=starship-fights okay that's better --- diff --git a/src/jvmMain/kotlin/starshipfights/info/views_user.kt b/src/jvmMain/kotlin/starshipfights/info/views_user.kt index e053925..043ec17 100644 --- a/src/jvmMain/kotlin/starshipfights/info/views_user.kt +++ b/src/jvmMain/kotlin/starshipfights/info/views_user.kt @@ -258,12 +258,13 @@ suspend fun ApplicationCall.manageUserPage(): HTML.() -> Unit { } } } - tr { - td { - colSpan = "3" - a(href = "/clear-all-expired") { +"Clear All Expired Sessions" } + if (expiredSessions.isNotEmpty()) + tr { + td { + colSpan = "3" + a(href = "/clear-all-expired") { +"Clear All Expired Sessions" } + } } - } } } }