nyazoom/templates/link.html

25 lines
647 B
HTML
Raw Normal View History

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-14 15:57:42 +00:00
<a id="link" href="/download/{{ id }}">Download Now!</a>
2024-11-14 14:50:40 +00:00
</div>
<div
class="link-wrapper"
2024-11-14 15:57:42 +00:00
hx-get="/link/{{ id }}/remaining"
2024-11-14 14:50:40 +00:00
hx-trigger="click from:#link delay:0.2s, every 10s"
>
2024-11-21 14:58:06 +00:00
{{ self::get_downloads_remaining_text(record) }}
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 %}