diff options
author | Marvin Borner | 2019-05-01 22:32:25 +0200 |
---|---|---|
committer | Marvin Borner | 2019-05-01 22:32:25 +0200 |
commit | 22797dde022a398b34a91ba24e2bdd89be3f36f8 (patch) | |
tree | 7bc99091aa76ca0ee6a06efd73c495f38fc7710f /src/main/resources/views | |
parent | 82afdcd8609342bd7080460e152b6a0e3db5aaff (diff) |
Cleaned up sharing of files
Co-authored-by: LarsVomMars <lars@kroenner.eu>
Diffstat (limited to 'src/main/resources/views')
-rw-r--r-- | src/main/resources/views/files.rocker.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/resources/views/files.rocker.html b/src/main/resources/views/files.rocker.html index 3fa4a3e..7b2e58b 100644 --- a/src/main/resources/views/files.rocker.html +++ b/src/main/resources/views/files.rocker.html @@ -18,6 +18,7 @@ <div class="drop" id="drop"> <h2 class="navigation"> <i class="icon ion-md-home"></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> @@ -25,6 +26,9 @@ @if (path.split("/").length > 0) { <a href="">@(path.split("/")[path.split("/").length - 1])</a> } + } else { + <a href="">@(path.split("/")[path.split("/").length - 1])</a> + } </h2> <table id="table"> |