From 4e2024432ee680f98d91d07b050ac60151ebec4c Mon Sep 17 00:00:00 2001
From: Marvin Borner
Date: Sun, 7 Apr 2019 15:49:26 +0200
Subject: Added prettifying and previews of html/markdown
---
src/main/resources/views/files.rocker.html | 10 ++++++++--
src/main/resources/views/fileview.rocker.html | 19 ++++++++++++++++---
src/main/resources/views/layout.rocker.html | 5 ++++-
src/main/resources/views/upload.rocker.html | 2 +-
4 files changed, 29 insertions(+), 7 deletions(-)
(limited to 'src/main/resources/views')
diff --git a/src/main/resources/views/files.rocker.html b/src/main/resources/views/files.rocker.html
index 097918a..7a2d432 100644
--- a/src/main/resources/views/files.rocker.html
+++ b/src/main/resources/views/files.rocker.html
@@ -1,7 +1,13 @@
@import java.util.ArrayList
@args (ArrayList files)
-@layout.template(files.size() + " Files") -> {
+
+@css => {
+
+}
+
+@layout.template(files.size() + " Files", css, RockerContent.NONE) -> {
@for (String file : files) {
-@file
+@file
+
@content
+
}
diff --git a/src/main/resources/views/layout.rocker.html b/src/main/resources/views/layout.rocker.html
index 583c723..c7c7bc3 100644
--- a/src/main/resources/views/layout.rocker.html
+++ b/src/main/resources/views/layout.rocker.html
@@ -1,4 +1,4 @@
-@args (String title, RockerBody content)
+@args (String title, RockerContent css, RockerContent js, RockerBody content)
@@ -7,9 +7,12 @@
+
+ @css