27 lines
788 B
HTML
27 lines
788 B
HTML
{% extends "base/base.html" %}
|
|
|
|
{% block title %}
|
|
<a href="{{ url_for('adm') }}">Panneau d'administration</a> » <h1>Pièces jointes</h1>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<section>
|
|
<p>Cette page présente une vue d'ensemble des pièces-jointes postées sur le site.</p>
|
|
|
|
<h2>Pièces jointes</h2>
|
|
|
|
<table style="width:95%; margin: auto;">
|
|
<tr><th>ID</th><th>Nom</th><th>Auteur</th><th>Taille</th></tr>
|
|
|
|
{% for a in attachments %}
|
|
<tr>
|
|
<td>{{ a.id }}</td>
|
|
<td><a href="{{ a.url }}">{{ a.name }}</a></td>
|
|
<td><a href="{{ url_for('user', username=a.comment.author.name) }}">{{ a.comment.author.name }}</a></td>
|
|
<td>{{ a.size | humanize(unit='o') }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</section>
|
|
{% endblock %}
|