@import space.anity.DatabaseController
@import space.anity.UserHandler
@import io.javalin.*
@args (String username, Context ctx)
@css => {
}
@js => {
}
@layout.template("Index", ctx, css, js) -> {
@if (username.length() > 0) {
}
Welcome to Kloud@(username == "" ? "" : ", " + username)!
@if(username.length() > 0) {
Logout
@if((new UserHandler()).isAdmin(username)) {
Admin
}
} else if (!(new DatabaseController()).isSetup()) {
Setup
} else {
Login
}
Files
}