Skip to content
This repository has been archived by the owner on Jul 24, 2022. It is now read-only.

Commit

Permalink
submit button
Browse files Browse the repository at this point in the history
  • Loading branch information
meoyawn committed Mar 1, 2018
1 parent d1731ba commit b5c547f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/kotlin/adeln/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import io.ktor.server.netty.Netty
import kotlinx.coroutines.experimental.asCoroutineDispatcher
import kotlinx.coroutines.experimental.async
import kotlinx.html.HTML
import kotlinx.html.InputType
import kotlinx.html.a
import kotlinx.html.body
import kotlinx.html.form
Expand Down Expand Up @@ -176,6 +177,7 @@ private fun HTML.renderHome(url: String?, resolved: String?) {
size = "100"
url?.let { value = it }
}
input(type = InputType.submit)
}

when {
Expand All @@ -197,11 +199,7 @@ private fun HTML.renderHome(url: String?, resolved: String?) {
}

url != null && resolved == null ->
p {
+"Failed to resolve that url. You can ping me on "

a(href = "https://twitter.com/meoyawn") { +"twitter" }
}
p { +"Failed to resolve that url. You can ping me: comrade.adeln@ya.ru" }
}

p {
Expand Down

0 comments on commit b5c547f

Please sign in to comment.