diff options
author | Marvin Borner | 2019-04-18 22:08:26 +0200 |
---|---|---|
committer | Marvin Borner | 2019-04-18 22:08:26 +0200 |
commit | 551868000825ebbe037b1be494679b24c2f0fcac (patch) | |
tree | d280dcd86b3417a7bf3fcfc6b74d5c44484b4f77 /src/main/resources | |
parent | 8c85eef4dd56b6a2d4a2563c5634dc2c60a35370 (diff) |
Added better setup process redirection
Co-authored-by: LarsVomMars <lars@kroenner.eu>
Diffstat (limited to 'src/main/resources')
-rw-r--r-- | src/main/resources/views/index.rocker.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/resources/views/index.rocker.html b/src/main/resources/views/index.rocker.html index 74e8e0b..cab6712 100644 --- a/src/main/resources/views/index.rocker.html +++ b/src/main/resources/views/index.rocker.html @@ -1,3 +1,4 @@ +@import space.anity.DatabaseController @args (String username) @layout.template("Index", RockerContent.NONE, RockerContent.NONE) -> { @@ -7,6 +8,8 @@ <div> @if(username.length() > 0) { <a class="button" href="/logout">Logout</a> + } else if (!(new DatabaseController()).isSetup()) { + <a class="button" href="/setup">Setup</a> } else { <a class="button" href="/login">Login</a> } |