change making url for copy link files

This commit is contained in:
kitoy 2025-12-17 14:20:11 +01:00
parent 3bcfc43ed5
commit 76e3cfb870
2 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,7 @@
<td>{{ file[2] }}</td>
<td><a href="{{ url_for('filesupload.remove_publicFile', filename=file[1]) }}"><button type="button" class="">Supprimer</button></a>
<a href="{{ url_for('filesupload.move_private', filename=file[1]) }}"><button type="button" class=""> Rendre Privée </button></a>
<button type="button" onclick="navigator.clipboard.writeText('{{ url_for('filesupload.publicfiles', username=username, filename=file[1], _external=True ) }}');" class=""> Copier le lien </button></a></td>
<button type="button" onclick="navigator.clipboard.writeText('{{BASE_URL}}{{ url_for('filesupload.publicfiles', username=username, filename=file[1]) }}');" class=""> Copier le lien </button></a></td>
</tr>
{% endfor %}
</tbody>

View File

@ -110,6 +110,7 @@ def list():
return render_template('files.html',
section="Files",
BASE_URL=BASE_URL,
size=size,
username=user,
nb_pv=nb_pv,