Commit b385cd0d authored by Lukas Böhm's avatar Lukas Böhm
Browse files

new icons

dont use feather anymore but instead bootstrapss own icon library
parent 91a1ee9f
......@@ -24,11 +24,6 @@
<!-- page contents in here -->
{% block page %}
{% endblock page %}
<!-- Icons - Needs to be down here -->
<script src="https://unpkg.com/feather-icons"></script>
<script>
feather.replace()
</script>
</body>
</html>
\ No newline at end of file
......@@ -10,22 +10,31 @@
<div class="card-header">
<h4 class="my-0 font-weight-normal">{{ up.name }}</h4>
</div>
<div class="card-body">
<ul class="list-group">
{% for file in up.files %}
<li class="list-group-item">
{{ file.filename }}
<a href="{{ url_for('media', share_id=file.share_id, filename=file.filename) }}" download>
<button class="btn btn-outline-primary streched-link float-right" type="button">
<i data-feather="download"></i>
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-download" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"></path>
<path fill-rule="evenodd" d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"></path>
</svg>
</button>
</a>
</li>
{% endfor %}
</ul>
<a href="{{ url_for('zip', share_id=up.id) }}" download class="btn btn-block btn-outline-primary">
Dateien gepackt herunterladen
</a>
<div class="input-group">
<a href="{{ url_for('zip', share_id=up.id) }}" download class="btn btn-block btn-outline-primary">
Dateien gepackt herunterladen
</a>
</div>
</div>
</div>
{% endblock content %}
......@@ -11,13 +11,20 @@
<div class="input-group mb-3">
<input type="text" class="form-control" aria-label="Shared URL" aria-describedby="copy-url" id="url" readonly value="http://localhost:5000/shared/9e0c409b-26f6-446b-9690-66d4e5942926">
<div class="input-group-append">
<button class="input-group-text" id="copy-url">@</button>
<button class="input-group-text" id="copy-url">
<svg width="1em" height="1em" viewBox="0 0 16 16" class="bi bi-clipboard-plus" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" d="M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1v-1z"></path>
<path fill-rule="evenodd" d="M9.5 1h-3a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3zM8 7a.5.5 0 0 1 .5.5V9H10a.5.5 0 0 1 0 1H8.5v1.5a.5.5 0 0 1-1 0V10H6a.5.5 0 0 1 0-1h1.5V7.5A.5.5 0 0 1 8 7z"></path>
</svg>
</button>
</div>
</div>
<div class="input-group">
<a href="{{ url }}" class="btn btn-lg btn-block btn-primary">Zum Download</a>
</div>
<script>
$(document).ready(function() {
$("#url").val(window.location.origin + "{{ url }}");
......
Supports Markdown
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