askama: formatting and cleanup

This commit is contained in:
Zynh Ludwig 2024-11-14 07:57:42 -08:00
parent 08504cf64e
commit 6a6e542545
3 changed files with 7 additions and 7 deletions

View file

@ -6,13 +6,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="/css/main.css" rel="stylesheet" />
<link href="/css/link.css" rel="stylesheet" />
<script src="/scripts/file_label.js"></script>
<script src="/scripts/link.js"></script>
<script
src="https://unpkg.com/htmx.org@2.0.2"
integrity="sha384-Y7hw+L/jvKeWIRRkqWYfPcvVxHzVzn5REgzbawhxAuQGwX1XWe70vji+VSeHOThJ"
crossorigin="anonymous"
></script>
<script src="/scripts/file_label.js"></script>
<script src="/scripts/link.js"></script>
</head>
<body>
<h1>NyaZoom<sup>2</sup></h1>

View file

@ -4,21 +4,21 @@
<div class="form-wrapper">
<div class="column-container">
<div class="link-wrapper">
<a id="link" href="/download/{{id}}"> "Download Now!" </a>
<a id="link" href="/download/{{ id }}">Download Now!</a>
</div>
<div
class="link-wrapper"
hx-get="/link/{{id}}/remaining"
hx-get="/link/{{ id }}/remaining"
hx-trigger="click from:#link delay:0.2s, every 10s"
>
{{Self::get_downloads_remaining_text(record)}}
{{ Self::get_downloads_remaining_text(record) }}
</div>
<button class="return-button" onclick="clipboard()">
Copy to Clipboard
</button>
<a href="/" class="return-button"> "Return to home" </a>
<a href="/" class="return-button">Return to home</a>
</div>
</div>
{% endblock content %}

View file

@ -13,7 +13,7 @@
hx-swap="outerHTML"
hx-delete="/link/{{ key }}"
>
"X"
X
</button>
</li>
{% endfor %}