From 8ab14f38701e0199a12d9bd3f90b62d1184c2fc3 Mon Sep 17 00:00:00 2001 From: TheSaminator Date: Tue, 15 Feb 2022 16:15:57 -0500 Subject: [PATCH] Add flag of faction --- src/jvmMain/kotlin/starshipfights/info/views_ships.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/jvmMain/kotlin/starshipfights/info/views_ships.kt b/src/jvmMain/kotlin/starshipfights/info/views_ships.kt index 44f278d..e2b7467 100644 --- a/src/jvmMain/kotlin/starshipfights/info/views_ships.kt +++ b/src/jvmMain/kotlin/starshipfights/info/views_ships.kt @@ -48,6 +48,13 @@ suspend fun ApplicationCall.shipsPage(): HTML.() -> Unit = page("Game Manual", s h2 { +faction.shortName } + p { + style = "text-align:center" + img(src = faction.flagUrl, alt = "Flag of ${faction.getDefiniteShortName()}") { + style = "width:40%" + } + } + faction.blurbDesc(consumer) factionShipTypes.groupBy { it.weightClass }.toSortedMap(Comparator.comparingInt(ShipWeightClass::rank)).forEach { (weightClass, weightedShipTypes) -> -- 2.25.1