diff options
Diffstat (limited to 'src/main/resources/views/index.rocker.html')
-rw-r--r-- | src/main/resources/views/index.rocker.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/resources/views/index.rocker.html b/src/main/resources/views/index.rocker.html index 98a659e..cc18d3b 100644 --- a/src/main/resources/views/index.rocker.html +++ b/src/main/resources/views/index.rocker.html @@ -1,4 +1,5 @@ @import space.anity.DatabaseController +@import space.anity.UserHandler @args (String username) @layout.template("Index", RockerContent.NONE, RockerContent.NONE) -> { @@ -8,6 +9,9 @@ <div> @if(username.length() > 0) { <a class="button" href="/user/logout">Logout</a> + @if((new UserHandler()).isAdmin(username)) { + <a class="button" href="/admin">Admin</a> + } } else if (!(new DatabaseController()).isSetup()) { <a class="button" href="/setup">Setup</a> } else { |