From: TheSaminator Date: Tue, 15 Feb 2022 21:15:57 +0000 (-0500) Subject: Add flag of faction X-Git-Url: https://gitweb.starshipfights.net/?a=commitdiff_plain;h=8ab14f38701e0199a12d9bd3f90b62d1184c2fc3;p=starship-fights Add flag of faction --- 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) ->