aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/views/files.rocker.html
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/views/files.rocker.html')
-rw-r--r--src/main/resources/views/files.rocker.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/resources/views/files.rocker.html b/src/main/resources/views/files.rocker.html
index a31f6bb..02a7660 100644
--- a/src/main/resources/views/files.rocker.html
+++ b/src/main/resources/views/files.rocker.html
@@ -19,7 +19,9 @@
@for (int i = 0; i < path.split("/").length - 1; i++) {
@path.split("/")[i] <i class='icon ion-ios-arrow-forward'></i>
}
- @path.split("/")[path.split("/").length - 1]
+ @if (path.split("/").length > 0) {
+ @(path.split("/")[path.split("/").length - 1])
+ }
</h2>
<table id="table">