show.html.twig 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. {% extends "PackagistWebBundle::layout.html.twig" %}
  2. {% import "PackagistWebBundle::macros.html.twig" as macros %}
  3. {% block content %}
  4. <div class="box clearfix">
  5. <h1>{{ user.username }} (that's you!)</h1>
  6. <p><a href="{{ path('fos_user_profile_edit') }}">Edit your information</a></p>
  7. <p><a href="{{ path('fos_user_change_password') }}">Change your password</a></p>
  8. <p><a href="{{ path('user_profile', {'name':app.user.username}) }}">View your public profile</a></p>
  9. {% if app.user.apiToken %}
  10. <h1>Your API Token</h1>
  11. <p><pre><code>{{ app.user.apiToken }}</code></pre></p>
  12. <p>
  13. You can use your API token to interact with the Packagist API.
  14. </p>
  15. <p>Your <a href="http://help.github.com/post-receive-hooks/">GitHub Post-Receive URL</a> is:</p>
  16. <p>
  17. <pre><code>{{ url('github_postreceive', { 'username': app.user.username, 'apiToken': app.user.apiToken }) }}</code></pre>
  18. </p>
  19. {% endif %}
  20. <h1>Your packages</h1>
  21. {% if user.packages|length %}
  22. {{ macros.listPackages(user.packages) }}
  23. {% else %}
  24. <p>No packages found.</p>
  25. {% endif %}
  26. </div>
  27. {% endblock %}