aboutsummaryrefslogtreecommitdiffhomepage
path: root/views
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@nebulon.de>2015-06-27 15:39:28 +0200
committerJohannes Zellner <johannes@nebulon.de>2015-06-27 15:39:28 +0200
commitca2d3b4df536086a81d3dcc2203f23c2b4c8f822 (patch)
tree95b7d8cfbdbaa065f09c4756d8a72b92b974c885 /views
downloadSurfer-ca2d3b4df536086a81d3dcc2203f23c2b4c8f822.tar.gz
Surfer-ca2d3b4df536086a81d3dcc2203f23c2b4c8f822.tar.zst
Surfer-ca2d3b4df536086a81d3dcc2203f23c2b4c8f822.zip
initial commit
Diffstat (limited to 'views')
-rw-r--r--views/directory.ejs17
-rw-r--r--views/file.ejs15
2 files changed, 32 insertions, 0 deletions
diff --git a/views/directory.ejs b/views/directory.ejs
new file mode 100644
index 0000000..7317794
--- /dev/null
+++ b/views/directory.ejs
@@ -0,0 +1,17 @@
1<html>
2<head>
3 <title> <%= dirPath %> </title>
4</head>
5
6<body>
7
8Directory <%= dirPath %>:
9
10<ul>
11<% entries.forEach(function (entry) { %>
12 <li><a href="/api/files/<%= dirPath %>/<%= entry %>"><%= entry %></a></li>
13<% }); %>
14</ul>
15
16</body>
17</html> \ No newline at end of file
diff --git a/views/file.ejs b/views/file.ejs
new file mode 100644
index 0000000..0b62b98
--- /dev/null
+++ b/views/file.ejs
@@ -0,0 +1,15 @@
1<html>
2<head>
3 <title> File </title>
4</head>
5
6<body>
7
8File <%= filePath %>:
9
10<pre>
11<%= fileContent %>
12</pre>
13
14</body>
15</html> \ No newline at end of file