bfile/filed/templates/uploaded.html

36 lines
933 B
HTML

{% 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:
<a href='{{ instance_url }}/file/{{ file }}'>{{ instance_url }}/file/{{ file }}</a>
</p>
<p class="js-only">
<button class="btn btn-fill" style="cursor:pointer" id="copylink" data-clipboard-text="{{ instance_url }}/file/{{ file }}">
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 %}