mirror of
https://github.com/RoastSlav/quickdrop.git
synced 2025-12-30 19:20:14 -06:00
made the renew lifetime button to appear only when the file is not flagged for indefinite keeping
This commit is contained in:
@@ -96,7 +96,14 @@
|
||||
|
||||
<!-- Buttons Row -->
|
||||
<div class="d-flex justify-content-between mt-3 border-top pt-3">
|
||||
<form method="post" th:action="@{/file/extend/{id}(id=${file.id})}">
|
||||
<a
|
||||
class="btn btn-success"
|
||||
th:href="@{/file/download/{id}(id=${file.id})}"
|
||||
>
|
||||
Download
|
||||
</a>
|
||||
<form method="post" th:action="@{/file/extend/{id}(id=${file.id})}"
|
||||
th:if="${file.keepIndefinitely == false}">
|
||||
<input
|
||||
th:name="${_csrf.parameterName}"
|
||||
th:value="${_csrf.token}"
|
||||
@@ -104,12 +111,6 @@
|
||||
/>
|
||||
<button class="btn btn-primary" type="submit">Renew File Lifetime</button>
|
||||
</form>
|
||||
<a
|
||||
class="btn btn-success"
|
||||
th:href="@{/file/download/{id}(id=${file.id})}"
|
||||
>
|
||||
Download
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user