36 lines
942 B
HTML
36 lines
942 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='{{ env.instanceurl }}/file/{{ file }}'>{{ env.instanceurl }}/file/{{ file }}</a>
|
|
</p>
|
|
|
|
<p class="js-only">
|
|
<button class="btn btn-fill" style="cursor:pointer" id="copylink" data-clipboard-text="{{ env.instanceurl }}/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 %} |