diff options
Diffstat (limited to 'src/main/resources/views/index.rocker.html')
-rw-r--r-- | src/main/resources/views/index.rocker.html | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/main/resources/views/index.rocker.html b/src/main/resources/views/index.rocker.html index 3389ba9..4f5d32b 100644 --- a/src/main/resources/views/index.rocker.html +++ b/src/main/resources/views/index.rocker.html @@ -1,3 +1,13 @@ +@args (String username) + @layout.template("Index", RockerContent.NONE, RockerContent.NONE) -> { -<h1>Welcome to Kloud!</h1> +<h1>Welcome to Kloud <i>@username</i>!</h1> + +@if(username.length() > 0) { +<button><a href="/logout/">Logout</a></button> +} else { +<button><a href="/login/">Login</a></button> +} + +<button><a href="/files/">Files</a></button> } |