diff options
Diffstat (limited to 'src/main/resources/views/index.rocker.html')
-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> } |