You are here

login-with.html.twig in Social Auth 8.2

Same filename and directory in other branches
  1. 8 templates/login-with.html.twig
  2. 3.x templates/login-with.html.twig
{% set module = 'social-auth' %}

{{ attach_library('social_auth/auth-icons') }}

{% for social_network in social_networks %}
  {% if destination %}
    <a class="{{ module }} auth-link" href="{{ path(social_network.route) }}?destination={{ destination }}">
  {% else %}
    <a class="{{ module }} auth-link" href="{{ path(social_network.route) }}">
  {% endif %}
    <img class="{{ module }} auth-icon" src="{{ base_path }}{{ social_network.img_path }}" alt="">
  </a>
{% endfor %}

File

templates/login-with.html.twig
View source
  1. {% set module = 'social-auth' %}
  2. {{ attach_library('social_auth/auth-icons') }}
  3. {% for social_network in social_networks %}
  4. {% if destination %}
  5. <a class="{{ module }} auth-link" href="{{ path(social_network.route) }}?destination={{ destination }}">
  6. {% else %}
  7. <a class="{{ module }} auth-link" href="{{ path(social_network.route) }}">
  8. {% endif %}
  9. <img class="{{ module }} auth-icon" src="{{ base_path }}{{ social_network.img_path }}" alt="">
  10. </a>
  11. {% endfor %}