diff options
author | Marvin Borner | 2019-05-13 18:18:57 +0200 |
---|---|---|
committer | Marvin Borner | 2019-05-13 18:18:57 +0200 |
commit | b9a392f5f1db5c7de60e929fdcc0ca42885f81ca (patch) | |
tree | 0f9aa014bcabfc3d7205898ada71f15d4490cb0a /src/main/resources/views/layout.rocker.html | |
parent | 72073df2c225f96889620e30c963dd807ca01a90 (diff) |
Added user based dark theme support
Co-authored-by: LarsVomMars <lars@kroenner.eu>
Diffstat (limited to 'src/main/resources/views/layout.rocker.html')
-rw-r--r-- | src/main/resources/views/layout.rocker.html | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main/resources/views/layout.rocker.html b/src/main/resources/views/layout.rocker.html index 3e3fb5e..9963aad 100644 --- a/src/main/resources/views/layout.rocker.html +++ b/src/main/resources/views/layout.rocker.html @@ -1,4 +1,7 @@ -@args (String title, RockerContent css, RockerContent js, RockerBody content) +@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"> @@ -10,6 +13,11 @@ <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> |