26 lines
612 B
HTML
26 lines
612 B
HTML
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
|
{% if files %}
|
|
<div class="files">
|
|
{% for file in files %}
|
|
<a href="{{ url_for('download', id=file.id)}}">
|
|
<div class="file">
|
|
{% if file.name|length > 20 %}
|
|
<h1>{{ file.name[:17] + '...' }}</h1>
|
|
{% else %}
|
|
<h1>{{ file.name }}</h1>
|
|
{% endif %}
|
|
<p>{{ file.user.username }}</p>
|
|
</div>
|
|
</a>
|
|
{% endfor %}
|
|
</div>
|
|
{% else %}
|
|
<div>
|
|
{% for user in users %}
|
|
<a href="{{ url_for('viewAdmin', id = user.id) }}">{{ user.username }}{{ dico['termSFolder'] }}</a>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %} |