{% extends "FOSUserBundle::layout.html.twig" %} {% import "PackagistWebBundle::macros.html.twig" as macros %} {% block fos_user_content %}
{%- if app.user.apiToken %}

{{ 'profile.your_api_token'|trans }}

{{ 'profile.api_token_explain'|trans({ '%path_about%':path('about') })|raw }}


{%- endif %} {% if githubSync is not null and githubSync.createdAt|date('YmdHis') > '-2 days'|date('YmdHis') %}

GitHub Hook Sync

{% if githubSync.completedAt is null %}

Still running... Refresh

{% elseif githubSync.status == 'errored' %}

An unexpected error occurred during sync.

{% else %}

Completed at {{ githubSync.completedAt|date('Y-m-d H:i:s') }} UTC, retry hook sync.

{% if githubSync.result.results is defined %}

{{ githubSync.result.results.hooks_setup }} hooks setup/updated

{{ githubSync.result.results.hooks_ok_unchanged }} hooks already setup and left unchanged

{% if githubSync.result.results.hooks_failed|length > 0 %}

Hooks setup failures

{% for fail in githubSync.result.results.hooks_failed %}

{{ fail.package }} {{ fail.reason|raw }}

{% endfor %} {% endif %} {% endif %} {% endif %} {% endif %} {% embed "PackagistWebBundle:web:list.html.twig" with {noLayout: 'true', showAutoUpdateWarning: true} %} {% block content_title %}

{{ 'packages.yours'|trans }}

{% endblock %} {% endembed %} {%- if deleteForm is defined %}
{{ form_widget(deleteForm._token) }}
{%- endif %}
{% endblock %}