{% if user_list %}
    <ul>
    {% for user in user_list %}
        <li><a href="/document/{{ user.id }}/">{{ user.name }}</a></li>
    {% endfor %}
    </ul>
{% else %}
    <p>No user are defined.</p>
{% endif %}