aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/views/files.rocker.html
diff options
context:
space:
mode:
authorMarvin Borner2019-05-15 21:14:35 +0200
committerMarvin Borner2019-05-15 21:14:35 +0200
commit418cd1964eb67a95c70c0d2a6a264d8774e3ec38 (patch)
treed78ab1ed2953b5b7f919a016982260e154a3aa2a /src/main/resources/views/files.rocker.html
parentdec3ba58281b9d929b23b8d6da3af373f31e8fd1 (diff)
Improved breadcrumb navigation
Co-authored-by: LarsVomMars <lars@kroenner.eu>
Diffstat (limited to 'src/main/resources/views/files.rocker.html')
-rw-r--r--src/main/resources/views/files.rocker.html15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/main/resources/views/files.rocker.html b/src/main/resources/views/files.rocker.html
index 8e75ac2..2392928 100644
--- a/src/main/resources/views/files.rocker.html
+++ b/src/main/resources/views/files.rocker.html
@@ -17,20 +17,27 @@
@layout.template(files.size() + " Files", ctx, css, js) -> {
<div class="drop" id="drop">
- <h2 class="navigation">
- <i class="icon ion-md-home"></i>
+ <h3 class="navigation">
+ <a href="/"><i class="icon ion-md-home"></i></a>
+ <a href="/files/">Files</a>
+
+ @if (!path.isEmpty()) {
+ <i class='icon ion-ios-arrow-forward'></i>
+ }
+
@if (!isShared) {
@for (int i = 0; i < path.split("/").length - 1; i++) {
<a href='@(new String(new char[path.split("/").length - i - 1]).replace("\0", "../"))'>@path.split("/")[i]</a>
<i class='icon ion-ios-arrow-forward'></i>
}
@if (path.split("/").length > 0) {
+ <!-- TEST 2 -->
<a href="">@(path.split("/")[path.split("/").length - 1])</a>
}
- } else {
+ } else { <!-- is shared -->
<a href="">@(path.split("/")[path.split("/").length - 1])</a>
}
- </h2>
+ </h3>
<table id="table">
<colgroup>