bfile/filed/templates/uploaded.html

36 lines
942 B
HTML
Raw Permalink 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:42:48 +02:00
<a href='{{ env.instanceurl }}/file/{{ file }}'>{{ env.instanceurl }}/file/{{ file }}</a>
2023-10-01 13:02:19 +02:00
</p>
<p class="js-only">
2023-10-01 13:42:48 +02:00
<button class="btn btn-fill" style="cursor:pointer" id="copylink" data-clipboard-text="{{ env.instanceurl }}/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 %}