Add Download button

Forgotten to update version 💀
This commit is contained in:
Michał Gdula 2023-01-25 16:46:13 +00:00
parent bb98701430
commit 34d6dca2a9
3 changed files with 8 additions and 2 deletions

View file

@ -5,7 +5,7 @@ print("""
| |_| | | | | | |_| | |__| __/ (_| \\__ \\
\\___/|_| |_|_|\\__, |_____\\___|\\__, |___/
|___/ |___/
Created by Fluffy Bean - Version 210123
Created by Fluffy Bean - Version 250123
""")
from flask import Flask, render_template

View file

@ -42,6 +42,12 @@
</svg>
<span class="tool-tip">Share</span>
</button>
<a class="pill-item" href="/api/uploads/{{ image['file_name'] }}/0" download>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-5 -5 24 24" fill="currentColor">
<path d="M8 6.641l1.121-1.12a1 1 0 0 1 1.415 1.413L7.707 9.763a.997.997 0 0 1-1.414 0L3.464 6.934A1 1 0 1 1 4.88 5.52L6 6.641V1a1 1 0 1 1 2 0v5.641zM1 12h12a1 1 0 0 1 0 2H1a1 1 0 0 1 0-2z"></path>
</svg>
<span class="tool-tip">Download</span>
</a>
</div>
{% if g.user['id'] == image['author_id'] %}
<div>

View file

@ -2,7 +2,7 @@ from setuptools import find_packages, setup
setup(
name='onlylegs',
version='210123',
version='250123',
packages=find_packages(),
include_package_data=True,
install_requires=[