Add Copy link button
This commit is contained in:
parent
c3da453425
commit
3bcfc43ed5
@ -41,8 +41,9 @@
|
|||||||
<td>{{ file[0] }}</td>
|
<td>{{ file[0] }}</td>
|
||||||
<td><a href="/myfiles/{{ username }}/{{ file[1] }}">{{ file[1] }}</a></td>
|
<td><a href="/myfiles/{{ username }}/{{ file[1] }}">{{ file[1] }}</a></td>
|
||||||
<td>{{ file[2] }}</td>
|
<td>{{ file[2] }}</td>
|
||||||
<td><a href="{{ url_for('filesupload.remove_privateFile', filename=file[1]) }}"><button type="button" class="btn btn-sm btn-danger">Supprimer</button></a></td>
|
<td><a href="{{ url_for('filesupload.remove_privateFile', filename=file[1]) }}"><button type="button" class="">Supprimer</button></a>
|
||||||
<td><a href="{{ url_for('filesupload.move_public', filename=file[1]) }}"><button type="button" class="btn btn-sm btn-success"> Rendre Publique </button></a></td>
|
<a href="{{ url_for('filesupload.move_public', filename=file[1]) }}"><button type="button" class=""> Rendre public </button></a>
|
||||||
|
<button onclick="navigator.clipboard.writeText('/myfiles/{{ username }}/{{file[1]}}');" > Copier le lien </button></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
@ -65,14 +66,15 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
OB
|
||||||
{% for file in listFilesPublic %}
|
{% for file in listFilesPublic %}
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ file[0] }}</td>
|
<td>{{ file[0] }}</td>
|
||||||
<td><a href="/public/{{ username }}/{{ file[1] }}">{{ file[1] }}</a></td>
|
<td><a href="/public/{{ username }}/{{ file[1] }}">{{ file[1] }}</a></td>
|
||||||
<td>{{ file[2] }}</td>
|
<td>{{ file[2] }}</td>
|
||||||
<td><a href="{{ url_for('filesupload.remove_publicFile', filename=file[1]) }}"><button type="button" class="btn btn-sm btn-danger">Supprimer</button></a></td>
|
<td><a href="{{ url_for('filesupload.remove_publicFile', filename=file[1]) }}"><button type="button" class="">Supprimer</button></a>
|
||||||
<td><a href="{{ url_for('filesupload.move_private', filename=file[1]) }}"><button type="button" class="btn btn-sm btn-success"> Rendre Privée </button></a></td>
|
<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>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user