{% extends "PackagistWebBundle::layout.html.twig" %}

{% import "PackagistWebBundle::macros.html.twig" as macros %}

{% block content %}
    <div class="box clearfix">
        <h1>{{ user.username }} (that's you!)</h1>
        <p><a href="{{ path('fos_user_profile_edit') }}">Edit your information</a></p>
        <p><a href="{{ path('fos_user_change_password') }}">Change your password</a></p>
        <p><a href="{{ path('user_profile', {'name':app.user.username}) }}">View your public profile</a></p>

        <h1>Your packages</h1>
        {% if user.packages|length %}
            {{ macros.listPackages(user.packages) }}
        {% else %}
            <p>No packages found.</p>
        {% endif %}
    </div>
{% endblock %}
