removed the Renewed word if the file is marked for keeping indefinitely

This commit is contained in:
Rostislav Raykov
2024-10-29 21:18:31 +02:00
parent e236c29ef3
commit 16074f0558
2 changed files with 3 additions and 4 deletions

View File

@@ -74,9 +74,8 @@
</div>
<div class="d-flex justify-content-between align-items-center border-top pt-3">
<h5 class="card-title mb-0">
Uploaded/Renewed
At:</h5>
<h5 class="card-title mb-0"
th:text="${file.keepIndefinitely} ? 'Uploaded At:' : 'Uploaded/Renewed At:'"></h5>
<p class="card-text mb-0"
th:text="${#temporals.format(file.uploadDate, 'dd.MM.yyyy')}"></p>
</div>

View File

@@ -97,7 +97,7 @@
Password
Protected</p>
<p class="card-text border-top pt-3"
th:text="'Uploaded/Renewed: ' + ${#temporals.format(file.uploadDate, 'dd.MM.yyyy')}"></p>
th:text="${file.keepIndefinitely} ? 'Uploaded: ' + ${#temporals.format(file.uploadDate, 'dd.MM.yyyy')} : 'Uploaded/Renewed: ' + ${#temporals.format(file.uploadDate, 'dd.MM.yyyy')}"></p>
</div>
<div class="card-footer">
<a class="btn btn-primary w-100"