Compare commits

...

2 commits

Author SHA1 Message Date
561ab77f65 fix: show neovim the truth 2024-11-14 07:59:45 -08:00
6a6e542545 askama: formatting and cleanup 2024-11-14 07:57:42 -08:00
3 changed files with 8 additions and 7 deletions

View file

@ -1,3 +1,4 @@
{# Comment For Prettier <3 #}
<!doctype html>
<html lang="en">
<head>
@ -6,13 +7,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 %}