aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/views/layout.rocker.html
diff options
context:
space:
mode:
authorMarvin Borner2020-07-09 22:33:43 +0200
committerMarvin Borner2020-07-09 22:33:43 +0200
commit1edfdf5f3a316a36108a0a853b0a2553d116d6fc (patch)
tree4b825dc642cb6eb9a060e54bf8d69288fbee4904 /src/main/resources/views/layout.rocker.html
parent18edde9bd3603f3f867cebce100e7b22be9012cd (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/layout.rocker.html')
-rw-r--r--src/main/resources/views/layout.rocker.html30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/main/resources/views/layout.rocker.html b/src/main/resources/views/layout.rocker.html
deleted file mode 100644
index 9963aad..0000000
--- a/src/main/resources/views/layout.rocker.html
+++ /dev/null
@@ -1,30 +0,0 @@
-@import space.anity.DatabaseController
-@import space.anity.UserHandler
-@import io.javalin.*
-@args (String title, Context ctx, RockerContent css, RockerContent js, RockerBody content)
-
-<!doctype html>
-<html lang="en">
-<head>
- <meta charset="UTF-8">
- <meta content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
- name="viewport">
- <meta content="ie=edge" http-equiv="X-UA-Compatible">
- <link href="/css/icons.css" rel="stylesheet">
- <link href="/css/layout.css" rel="stylesheet">
- @css
-
- @if((new DatabaseController()).isDarkTheme((new UserHandler()).getVerifiedUserId(ctx))) {
- <link href="/css/darkLayout.css" rel="stylesheet">
- }
-
- <title>@title</title>
-</head>
-<body>
-<div class="main">
- @content
-</div>
-<script src="/js/prefetch.js"></script>
-@js
-</body>
-</html>