Actually just get rid of it
authorTheSaminator <TheSaminator@users.noreply.github.com>
Fri, 11 Mar 2022 22:59:07 +0000 (17:59 -0500)
committerTheSaminator <TheSaminator@users.noreply.github.com>
Fri, 11 Mar 2022 22:59:07 +0000 (17:59 -0500)
src/jvmMain/kotlin/starshipfights/info/view_bar.kt
src/jvmMain/kotlin/starshipfights/info/views_main.kt

index 50ce592b64f5a0104629f82cbf77fc5c8d123db7..722cb3e4d9d3d93f87ae5d8caaae3db969678e5b 100644 (file)
@@ -1,7 +1,6 @@
 package starshipfights.info
 
 import kotlinx.html.*
-import starshipfights.data.auth.User
 import starshipfights.game.ShipType
 import starshipfights.game.getDefiniteShortName
 
@@ -14,25 +13,6 @@ class CustomSidebar(private val block: ASIDE.() -> Unit) : Sidebar() {
        override fun ASIDE.display() = block()
 }
 
-data class IndexSidebar(val madeBy: User) : Sidebar() {
-       override fun ASIDE.display() {
-               p {
-                       style = "text-align:center"
-                       +"Starship Fights is made by "
-                       a(href = "/user/${madeBy.id}") { +madeBy.profileName }
-               }
-               img(src = madeBy.discordAvatarUrl) {
-                       style = "border-radius:50%"
-               }
-               p {
-                       style = "text-align:center"
-                       +madeBy.discordName
-                       +"#"
-                       +madeBy.discordDiscriminator
-               }
-       }
-}
-
 data class ShipViewSidebar(val shipType: ShipType) : Sidebar() {
        override fun ASIDE.display() {
                p {
index c5f42791a00de39fbc1818f260498dd5dd426d39..2858631be752ce1742da1ac5a1b0fb7ed7c90d3b 100644 (file)
@@ -10,11 +10,7 @@ import starshipfights.CurrentConfiguration
 import starshipfights.data.auth.User
 
 suspend fun ApplicationCall.mainPage(): HTML.() -> Unit {
-       return page(null, standardNavBar(), CurrentConfiguration.discordClient?.ownerId?.let {
-               User.locate(User::discordId eq it)
-       }?.let {
-               IndexSidebar(it)
-       }) {
+       return page(null, standardNavBar(), null) {
                section {
                        img(alt = "Starship Fights Logo", src = "/static/images/logo.svg") {
                                style = "width:100%"