Improve ship buy page
authorTheSaminator <TheSaminator@users.noreply.github.com>
Sat, 12 Feb 2022 16:57:45 +0000 (11:57 -0500)
committerTheSaminator <TheSaminator@users.noreply.github.com>
Sat, 12 Feb 2022 16:57:45 +0000 (11:57 -0500)
src/jvmMain/kotlin/starshipfights/info/views_user.kt

index ce6fe43baaacba110b059e1d490e0933ec9d8680..46b6d8fc998d2e89d9eca16024bf778e6d6c38d9 100644 (file)
@@ -627,7 +627,9 @@ suspend fun ApplicationCall.manageAdmiralPage(): HTML.() -> Unit {
                                }
                                buyableShips.forEach { st ->
                                        tr {
-                                               td { +st.fullDisplayName }
+                                               td {
+                                                       a(href = "/info/${st.toUrlSlug()}") { +st.fullDisplayName }
+                                               }
                                                td {
                                                        +st.weightClass.buyPrice.toString()
                                                        +" Electro-Ducats"