aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/views
diff options
context:
space:
mode:
authorMarvin Borner2019-04-03 22:39:03 +0200
committerMarvin Borner2019-04-03 22:39:03 +0200
commit390db9229b2aaa0a6ca7a920e4901b581ba917e2 (patch)
tree745d925f39e685257f333cce0f5e83c08a3d5eef /src/main/resources/views
parent560bdf297f353959c3ec7a667d6d33ab6f0db05a (diff)
Added fileview
Diffstat (limited to 'src/main/resources/views')
-rw-r--r--src/main/resources/views/files.rocker.html2
-rw-r--r--src/main/resources/views/fileview.rocker.html17
2 files changed, 18 insertions, 1 deletions
diff --git a/src/main/resources/views/files.rocker.html b/src/main/resources/views/files.rocker.html
index 6562be3..16eab38 100644
--- a/src/main/resources/views/files.rocker.html
+++ b/src/main/resources/views/files.rocker.html
@@ -1,4 +1,4 @@
@args (ArrayList files)
@for (String file : files) {
-<li>@file</li>
+<a href="@file">@file</a><br>
}
diff --git a/src/main/resources/views/fileview.rocker.html b/src/main/resources/views/fileview.rocker.html
new file mode 100644
index 0000000..910bdf2
--- /dev/null
+++ b/src/main/resources/views/fileview.rocker.html
@@ -0,0 +1,17 @@
+@args (String content)
+
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <meta content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
+ name="viewport">
+ <meta content="ie=edge" http-equiv="X-UA-Compatible">
+ <title>Fileview</title>
+</head>
+<body>
+<textarea disabled style="border: none; background-color: white; width: 100vw; height: 100vh">
+ @content
+</textarea>
+</body>
+</html>