More buttons
This commit is contained in:
@@ -6,18 +6,18 @@ import kotlinx.html.*
|
||||
fun BODY.navbar(jwtPayload: JwtPayload?) {
|
||||
nav("nav bg-teal-700 shadow-md flex items-center justify-between px-4") {
|
||||
a(href = "/", classes = "text-2xl text-gray-100 font-bold") { +"SimpleNotes" }
|
||||
ul {
|
||||
ul("space-x-2") {
|
||||
if (jwtPayload != null) {
|
||||
li("inline text-gray-100 ml-2 text-md font-semibold") {
|
||||
li("inline text-gray-100 text-md font-semibold") {
|
||||
a(href = "/notes") { +"Notes" }
|
||||
}
|
||||
li("inline ml-2") {
|
||||
li("inline") {
|
||||
form(classes = "inline", action = "/logout", method = FormMethod.post) {
|
||||
button(type = ButtonType.submit, classes = "btn btn-green") { +"Logout" }
|
||||
}
|
||||
}
|
||||
} else {
|
||||
li("inline pl-2") {
|
||||
li("inline") {
|
||||
a(href = "/login", classes = "btn btn-green") { +"Sign In" }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user