- Route /trash/preview/<path> : réutilise preview_image/text/other.html avec from_trash=True (← Corbeille, pas de rename ni de resize) - Nom de fichier cliquable dans la liste corbeille → aperçu - Suppression du lien "Tableau de bord" du header (doublon avec le logo) - Ferme #25 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
31 lines
1 KiB
HTML
31 lines
1 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}{{ filename }}{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<section class="card">
|
|
<div class="preview-header">
|
|
{% if from_trash %}
|
|
<a href="{{ url_for('trash_list') }}" class="back-link">← Corbeille</a>
|
|
{% else %}
|
|
<a href="{{ url_for('browse', subpath=parent_path) if parent_path else url_for('browse') }}"
|
|
class="back-link">← Retour</a>
|
|
{% endif %}
|
|
<h1>{{ filename }}</h1>
|
|
{% if not from_trash %}{% include '_preview_nav.html' %}{% endif %}
|
|
</div>
|
|
<div class="preview-meta">
|
|
<span>Taille : <strong>{{ filesize }}</strong></span>
|
|
<span>Modifié : <strong>{{ mtime.strftime('%d/%m/%Y %H:%M') }}</strong></span>
|
|
</div>
|
|
<div style="margin-top:1.5rem">
|
|
<p style="color:var(--muted); font-size:.9rem; margin-bottom:1rem">
|
|
Aperçu non disponible pour ce type de fichier.
|
|
</p>
|
|
<a href="{{ raw_url }}" class="btn btn-primary" download="{{ filename }}">
|
|
Télécharger {{ filename }}
|
|
</a>
|
|
</div>
|
|
</section>
|
|
|
|
{% endblock %}
|