2024-11-14 14:50:40 +00:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="form-wrapper">
|
|
|
|
<div class="column-container">
|
|
|
|
<div class="link-wrapper">
|
2024-11-22 00:15:33 +00:00
|
|
|
<a id="link" href="/download/{{ record.cache_name }}">Download Now!</a>
|
2024-11-14 14:50:40 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div
|
|
|
|
class="link-wrapper"
|
2024-11-22 00:15:33 +00:00
|
|
|
hx-get="/link/{{ record.cache_name }}/remaining"
|
2024-11-21 17:34:22 +00:00
|
|
|
hx-trigger="click from:#link delay:0.2s, every 60s"
|
2024-11-14 14:50:40 +00:00
|
|
|
>
|
2024-11-21 18:01:50 +00:00
|
|
|
{% block downloads_remaining %}
|
|
|
|
{{ self::get_downloads_remaining_text(record) }}
|
|
|
|
{% endblock downloads_remaining %}
|
2024-11-14 14:50:40 +00:00
|
|
|
</div>
|
|
|
|
<button class="return-button" onclick="clipboard()">
|
|
|
|
Copy to Clipboard
|
|
|
|
</button>
|
|
|
|
|
2024-11-14 15:57:42 +00:00
|
|
|
<a href="/" class="return-button">Return to home</a>
|
2024-11-14 14:50:40 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock content %}
|