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/fileview.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/fileview.rocker.html')
-rw-r--r-- | src/main/resources/views/fileview.rocker.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/resources/views/fileview.rocker.html b/src/main/resources/views/fileview.rocker.html index c1fdff8..b3f8341 100644 --- a/src/main/resources/views/fileview.rocker.html +++ b/src/main/resources/views/fileview.rocker.html @@ -1,4 +1,5 @@ -@args (String content, String filename, String extension) +@import io.javalin.* +@args (String content, String filename, String extension, Context ctx) @css => { <link href="/css/fileview.css" rel="stylesheet"> @@ -12,7 +13,7 @@ <script src="/js/fileview.js"></script> } -@layout.template("File " + filename, css, js) -> { +@layout.template("File " + filename, ctx, css, js) -> { <button class="switch" id="raw">Show raw</button> <span class="settings" id="settings"> <label for="code">Linecount</label><input id="code" type="checkbox"> |