From b9a392f5f1db5c7de60e929fdcc0ca42885f81ca Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 13 May 2019 18:18:57 +0200 Subject: Added user based dark theme support Co-authored-by: LarsVomMars --- src/main/kotlin/FileController.kt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/main/kotlin/FileController.kt') diff --git a/src/main/kotlin/FileController.kt b/src/main/kotlin/FileController.kt index 32c9369..d62b4b4 100644 --- a/src/main/kotlin/FileController.kt +++ b/src/main/kotlin/FileController.kt @@ -36,7 +36,8 @@ class FileController { "files.rocker.html", model( "files", files, "path", (if (firstParam.firstOrNull() == '/') firstParam.drop(1) else firstParam), - "isShared", false + "isShared", false, + "ctx", ctx ) ) } @@ -178,7 +179,8 @@ class FileController { "files.rocker.html", model( "files", files, "path", (if (fileLocation.firstOrNull() == '/') fileLocation.drop(1) else fileLocation), - "isShared", true + "isShared", true, + "ctx", ctx ) ) } @@ -216,7 +218,8 @@ class FileController { Charsets.UTF_8 ).joinToString(separator = "\n"), "filename", File(filePath).name, - "extension", File(filePath).extension + "extension", File(filePath).extension, + "ctx", ctx ) ) } -- cgit v1.2.3