Improve ship sell and rename pages
authorTheSaminator <TheSaminator@users.noreply.github.com>
Sat, 12 Feb 2022 16:55:35 +0000 (11:55 -0500)
committerTheSaminator <TheSaminator@users.noreply.github.com>
Sat, 12 Feb 2022 16:55:35 +0000 (11:55 -0500)
src/jvmMain/kotlin/starshipfights/info/views_user.kt

index 73c395d4573830631805cae2689dde719ae3b90d..ce6fe43baaacba110b059e1d490e0933ec9d8680 100644 (file)
@@ -661,7 +661,7 @@ suspend fun ApplicationCall.renameShipPage(): HTML.() -> Unit {
                section {
                        h1 { +"Renaming Ship" }
                        p {
-                               +"${admiral.fullName} is about to rename the ${ship.shipData.fullName}. Choose a name here:"
+                               +"${admiral.fullName} is about to rename the ${ship.shipType.fullDisplayName} ${ship.shipData.fullName}. Choose a name here:"
                        }
                        form(method = FormMethod.post, action = "/admiral/${admiral.id}/rename/${ship.id}") {
                                textInput(name = "name") {
@@ -712,7 +712,7 @@ suspend fun ApplicationCall.sellShipConfirmPage(): HTML.() -> Unit {
                section {
                        h1 { +"Are You Sure?" }
                        p {
-                               +"${admiral.fullName} is about to sell the ${ship.shipData.fullName} for ${ship.shipType.weightClass.sellPrice} Electro-Ducats."
+                               +"${admiral.fullName} is about to sell the ${ship.shipType.fullDisplayName} ${ship.shipData.fullName} for ${ship.shipType.weightClass.sellPrice} Electro-Ducats."
                        }
                        form(method = FormMethod.get, action = "/admiral/${admiral.id}/manage") {
                                submitInput {