| 12345678910111213141516171819202122232425262728293031 |
- {% 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>
- {% if app.user.apiToken %}
- <h1>Your API Token</h1>
- <p><pre><code>{{ app.user.apiToken }}</code></pre></p>
- <p>
- You can use your API token to interact with the Packagist API.
- </p>
- <p>Your <a href="http://help.github.com/post-receive-hooks/">GitHub Post-Receive URL</a> is:</p>
- <p>
- <pre><code>{{ url('github_postreceive', { 'username': app.user.username, 'apiToken': app.user.apiToken }) }}</code></pre>
- </p>
- {% endif %}
- <h1>Your packages</h1>
- {% if user.packages|length %}
- {{ macros.listPackages(user.packages) }}
- {% else %}
- <p>No packages found.</p>
- {% endif %}
- </div>
- {% endblock %}
|