aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/views/files.rocker.html
blob: 1373ecac54776d783f67b594af80a8491f10168f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@import java.util.ArrayList
@args (ArrayList files, String path)

@css => {
<link href="/css/files.css" rel="stylesheet">
}

@js => {
<script>const path = "@path";</script>
<script src="/js/files.js"></script>
}

@layout.template(files.size() + " Files", css, js) -> {
<div class="drop" id="drop">
    <a class="filename" href="../">../</a><br>
    <hr>
    @for (String file : files) {
    <a class="filename" href="@file">@file</a><br>
    <hr>
    }
</div>
}