diff options
author | Marvin Borner | 2020-07-09 22:33:43 +0200 |
---|---|---|
committer | Marvin Borner | 2020-07-09 22:33:43 +0200 |
commit | 1edfdf5f3a316a36108a0a853b0a2553d116d6fc (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /src/main/resources/views/index.rocker.html | |
parent | 18edde9bd3603f3f867cebce100e7b22be9012cd (diff) |
Rewriiiiiiiiiite!
Okay, okay. I know, rewriting projects all the time is dumb.
Buuut, we really don't want to work with our old and ugly code anymore.
Furthermore we'll be using Deno now!
Diffstat (limited to 'src/main/resources/views/index.rocker.html')
-rw-r--r-- | src/main/resources/views/index.rocker.html | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/main/resources/views/index.rocker.html b/src/main/resources/views/index.rocker.html deleted file mode 100644 index 7c9f46c..0000000 --- a/src/main/resources/views/index.rocker.html +++ /dev/null @@ -1,48 +0,0 @@ -@import space.anity.DatabaseController -@import space.anity.UserHandler -@import io.javalin.* -@args (String username, Context ctx) - -@css => { -<link href="/css/index.css" rel="stylesheet"> -} - -@js => { -<script src="/js/index.js"></script> -} - -@layout.template("Index", ctx, css, js) -> { -<div class="navigation"> - <h3> - <a href="/"><i class="icon ion-md-home"></i></a> - </h3> -</div> -<div class="flex"> - @if (username.length() > 0) { - <button class="toggle" id="toggle"> - @if((new DatabaseController()).isDarkTheme((new UserHandler()).getVerifiedUserId(ctx))) { - Light theme - } else { - Dark theme - } - </button> - } - - <h1>Welcome to Kloud<span class="username">@(username == "" ? "" : ", " + username)</span>!</h1> - - <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 { - <a class="button" href="/user/login">Login</a> - } - - <a class="button" href="/files/">Files</a> - </div> -</div> -} |