Ajoute la route POST /upload (admin uniquement) et la zone de dépôt dans browse.html — glisser-déposer ou sélection multiple, destination = dossier courant du navigateur. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
946 B
HTML
24 lines
946 B
HTML
{# Navigation précédent/suivant pour les aperçus de fichiers #}
|
|
<div class="preview-nav">
|
|
{% if prev_path %}
|
|
<a href="{{ url_for('browse', subpath=prev_path) }}" class="nav-arrow" id="nav-prev" title="Précédent (←)">‹</a>
|
|
{% else %}
|
|
<span class="nav-arrow nav-arrow--off">‹</span>
|
|
{% endif %}
|
|
|
|
{% if sibling_pos %}
|
|
<span class="nav-pos">{{ sibling_pos }}</span>
|
|
{% endif %}
|
|
|
|
{% if next_path %}
|
|
<a href="{{ url_for('browse', subpath=next_path) }}" class="nav-arrow" id="nav-next" title="Suivant (→)">›</a>
|
|
{% else %}
|
|
<span class="nav-arrow nav-arrow--off">›</span>
|
|
{% endif %}
|
|
</div>
|
|
<script>
|
|
document.addEventListener('keydown', function(e) {
|
|
if (e.key === 'ArrowLeft') { var a = document.getElementById('nav-prev'); if (a) location.href = a.href; }
|
|
if (e.key === 'ArrowRight') { var a = document.getElementById('nav-next'); if (a) location.href = a.href; }
|
|
});
|
|
</script>
|