114 lines
3.3 KiB
HTML
114 lines
3.3 KiB
HTML
{% extends 'up_squelette.html' %}
|
|
|
|
|
|
{% block css %}
|
|
{% include 'css/dropzone.html' %}
|
|
{% endblock %}
|
|
|
|
|
|
{% block main %}
|
|
|
|
|
|
<p>Quand vous envoyez des images, elles se retrouveront directement dans <a href="/gallery/"> votre Galerie</a>. </p>
|
|
|
|
<p>
|
|
Ayez bien conscience que ce site est une expérience et qu'il est indispensable d'avoir
|
|
une sauvegarde de tous les fichiers qui vous mettrez ici. Nous ne pourrons, en aucun cas, être tenu responsable de la
|
|
perte de vos données. Merci de votre compréhension.
|
|
</p>
|
|
|
|
<br />
|
|
|
|
|
|
<form id="uploader" methods="POST" class="dropzone dz-clickable"></form>
|
|
|
|
<h2> Fichiers privés </h2>
|
|
<h5>
|
|
Vous pouvez partager des liens de vos fichiers avec les autres membres de ce serveur uniquement. Si vous partagez un lien avec une personne non inscrite elle ne pourra pas y avoir accès
|
|
</h5>
|
|
|
|
{% if listFilesPrivate %}
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>Fichier(s) <span class="badge">{{ nb_pv }}</span></th>
|
|
<th>Taille (en Megaoctect)</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
|
|
{% for file in listFilesPrivate %}
|
|
<tr>
|
|
<td>{{ file[0] }}</td>
|
|
<td><a href="/myfiles/{{ username }}/{{ file[1] }}">{{ file[1] }}</a></td>
|
|
<td>{{ file[2] }}</td>
|
|
<td>
|
|
<a href="{{ url_for('filesupload.remove_privateFile', filename=file[1]) }}">
|
|
<button type="button" title="Supprimer"> <span class="icons delete"></span></button>
|
|
</a>
|
|
|
|
<a href="{{ url_for('filesupload.move_public', filename=file[1]) }}">
|
|
<button type="button" title="Passer ce fichier en status public"><span class="icons share"></span></button>
|
|
</a>
|
|
<button type="button" onclick="navigator.clipboard.writeText('{{BASE_URL}}{{ url_for('filesupload.publicfiles', username=username, filename=file[1]) }}');" title="Copier le lien du fichier">
|
|
<span class="icons copy-link"> </span>
|
|
</button>
|
|
</td>
|
|
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p> Vous n'avez aucun fichier privé </p>
|
|
{% endif %}
|
|
<br />
|
|
<hr />
|
|
<br />
|
|
<h2> Fichiers publics </h2>
|
|
<h5> Vous pouvez partager les liens de ces fichiers avec n'importe qui sur Internet ils y auront accès </h5>
|
|
{% if listFilesPublic %}
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
<th>Fichier(s) <span class="badge">{{ nb_pu }}</span></th>
|
|
<th>Taille (en Megaoctets)</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for file in listFilesPublic %}
|
|
<tr>
|
|
<td>{{ file[0] }}</td>
|
|
<td><a href="/public/{{ username }}/{{ file[1] }}">{{ file[1] }}</a></td>
|
|
<td>{{ file[2] }}</td>
|
|
<td>
|
|
<a href="{{ url_for('filesupload.remove_publicFile', filename=file[1]) }}">
|
|
<button type="button" title="Supprimer"> <span class="icons delete"></span></button>
|
|
</a>
|
|
<a href="{{ url_for('filesupload.move_private', filename=file[1]) }}">
|
|
<button type="button" title="Passer ce fichier en status privé"><span class="icons share"></span></button>
|
|
</a>
|
|
<button type="button" onclick="navigator.clipboard.writeText('{{BASE_URL}}{{ url_for('filesupload.publicfiles', username=username, filename=file[1]) }}');" title="Copier le lien du fichier">
|
|
<span class="icons copy-link"> </span>
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p> Vous n'avez aucun fichier public </p>
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% endblock %}
|
|
|
|
{% block js %}
|
|
{% include '_js_dropzone.html' %}
|
|
{% endblock %}
|