aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/views/fileview.rocker.html
diff options
context:
space:
mode:
authorMarvin Borner2019-05-13 18:18:57 +0200
committerMarvin Borner2019-05-13 18:18:57 +0200
commitb9a392f5f1db5c7de60e929fdcc0ca42885f81ca (patch)
tree0f9aa014bcabfc3d7205898ada71f15d4490cb0a /src/main/resources/views/fileview.rocker.html
parent72073df2c225f96889620e30c963dd807ca01a90 (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.html5
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">