{# A section of profile's edit page (profile.edit.sections), below the profile form. The login links to the account on GitHub. The disconnect button opens identities' modal, which posts the provider and account id it carries; for the only way the account signs in, a link to set a password comes first. The colours are in assets/css/github.css, and the mark is drawn in currentColor. #} {% if identity %}
{% if github_url %} {{ identity.provider_username }} {% else %} {{ identity.provider_id }} {% endif %} {% if can_disconnect %} {% else %} {# The only way the account signs in: a password of its own comes first, on My account, and then it can be disconnected. #} {{ _('Set a password to disconnect it') }} {% endif %}
{% else %}
{{ _('Connect GitHub') }}
{% endif %}