<!-- templates/profile.html -->

{% extends "base.html" %}

{% block content %}
<h1 class="title">
    <table border="1px">
        <tr>
            <th>نام</th>
            <th>تصویر</th>
            <th>لینک دانلود</th>
            <th>کاربر</th>
        </tr>

        {% for book in books %}
        <tr>
            <td>{{ book.name }}</td>
            <td><img src="{{ url_for('static',filename='uploads/') }}{{ book.imagename }}" width="300" height="300">
            </td>
             <td><a href="{{ url_for('static',filename='uploads/') }}{{ book.filename }}">لینک</a></td>
            <td>{{ book.username }}</td>

        </tr>
        {% endfor %}

    </table>



</h1>
{% endblock %}