Commit 132de538 authored by Janne Koschinski's avatar Janne Koschinski

Correctly use file ending everywhere

parent 67329809
......@@ -64,8 +64,8 @@ element.addEventListener("change", () => {
postData("/upload/", data).then((json) => {
image_container.classList.remove("uploading");
if (json.success) {
image_link.href = "/" + json.id;
image.src = "/" + json.id;
image_link.href = "/" + json.id + ".png";
image.src = "/" + json.id + ".png";
} else {
const image_error = document.createElement("div");
image_error.classList.add("alert", "error");
......
......@@ -7,7 +7,7 @@
{{else}}
<h2 class="title">{{.Image.Title}}</h2>
{{end}}
<a class="image" href="/{{.Image.Id}}">
<a class="image" href="/{{.Image.Id}}.png">
<img src="/{{.Image.Id}}.png">
</a>
{{if .IsMine}}
......@@ -44,7 +44,7 @@
<div class="url">
<p>Direct Link</p>
<div>
<input id="url_direct" type="text" value="https://i.k8r.eu/{{.Image.Id}}">
<input id="url_direct" type="text" value="https://i.k8r.eu/{{.Image.Id}}.png">
<button class="copy" data-target="#url_direct">Copy</button>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment