From c6e874ed068a640ad5ca2406b9abf93123bfb92e Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sun, 14 Apr 2019 01:02:09 +0200 Subject: Added multi user directory support --- src/main/resources/views/index.rocker.html | 12 +++++++++++- src/main/resources/views/login.rocker.html | 2 +- src/main/resources/views/upload.rocker.html | 8 -------- 3 files changed, 12 insertions(+), 10 deletions(-) delete mode 100644 src/main/resources/views/upload.rocker.html (limited to 'src/main/resources/views') 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) -> { -

Welcome to Kloud!

+

Welcome to Kloud @username!

+ +@if(username.length() > 0) { + +} else { + +} + + } diff --git a/src/main/resources/views/login.rocker.html b/src/main/resources/views/login.rocker.html index bcee9df..6cd28f2 100644 --- a/src/main/resources/views/login.rocker.html +++ b/src/main/resources/views/login.rocker.html @@ -6,7 +6,7 @@ } @layout.template("Login", RockerContent.NONE, js) -> { -
+
diff --git a/src/main/resources/views/upload.rocker.html b/src/main/resources/views/upload.rocker.html deleted file mode 100644 index ec5daa2..0000000 --- a/src/main/resources/views/upload.rocker.html +++ /dev/null @@ -1,8 +0,0 @@ -@args (String content) - -@layout.template("Upload", RockerContent.NONE, RockerContent.NONE) -> { - - - - -} -- cgit v1.2.3