bfile/filed/templates/uploaded.html

36 lines
933 B
HTML
Raw Normal View History

2023-10-01 13:02:19 +02:00
{% extends "base.html" %}
{% block body %}
<div style="margin:0 12px">
<div class="card" style="width: fit-content; margin:0 auto">
<div class="card-title">
Successfully uploaded a file
</div>
<div class="card-text">
<p>
The file is accessible via this link:
2023-10-01 13:14:18 +02:00
<a href='{{ instance_url }}/file/{{ file }}'>{{ instance_url }}/file/{{ file }}</a>
2023-10-01 13:02:19 +02:00
</p>
<p class="js-only">
2023-10-01 13:14:18 +02:00
<button class="btn btn-fill" style="cursor:pointer" id="copylink" data-clipboard-text="{{ instance_url }}/file/{{ file }}">
2023-10-01 13:02:19 +02:00
Copy link
</button>
</p>
</div>
</div>
</div>
{% endblock %}
{% block scripts %}
<script src="https://unpkg.com/clipboard@2/dist/clipboard.min.js"></script>
<script>
(() => {
new ClipboardJS('#copylink');
})()
</script>
{% endblock %}