Change Valor table format
authorTheSaminator <TheSaminator@users.noreply.github.com>
Tue, 8 Feb 2022 18:40:22 +0000 (13:40 -0500)
committerTheSaminator <TheSaminator@users.noreply.github.com>
Tue, 8 Feb 2022 18:40:22 +0000 (13:40 -0500)
src/jvmMain/kotlin/starshipfights/info/views_user.kt

index 2cc41ec72688e2902be30a6c13020d0df48d927b..5ec1975fe5fc04f167353020de47830385d54154 100644 (file)
@@ -353,13 +353,19 @@ suspend fun ApplicationCall.admiralPage(): HTML.() -> Unit {
                        }
                        table {
                                tr {
+                                       th { +"When" }
                                        th { +"Role" }
                                        th { +"Against" }
-                                       th { +"Time" }
                                        th { +"Result" }
                                }
                                records.sortedBy { it.whenEnded }.forEach { record ->
                                        tr {
+                                               td {
+                                                       span(classes = "moment") {
+                                                               style = "display:none"
+                                                               +record.whenEnded.toEpochMilli().toString()
+                                                       }
+                                               }
                                                td {
                                                        +when (recordRoles[record.id]) {
                                                                GlobalSide.HOST -> "Host"
@@ -376,12 +382,6 @@ suspend fun ApplicationCall.admiralPage(): HTML.() -> Unit {
                                                                        +opponent.fullName
                                                                }
                                                }
-                                               td {
-                                                       span(classes = "moment") {
-                                                               style = "display:none"
-                                                               +record.whenEnded.toEpochMilli().toString()
-                                                       }
-                                               }
                                                td {
                                                        +when (recordRoles[record.id]) {
                                                                record.winner -> "Victory"