You are here

login-with.html.twig in Social Auth 3.x

Same filename and directory in other branches
  1. 8.2 templates/login-with.html.twig
  2. 8 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 | url_encode }}">
  {% 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="{{ 'Authenticate through @social_network_name' | t({'@social_network_name': social_network.name}) }}">
  </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 | url_encode }}">
  6. {% else %}
  7. <a class="{{ module }} auth-link" href="{{ path(social_network.route) }}">
  8. {% endif %}
  9. <img class="{{ module }} auth-icon"
  10. src="{{ base_path }}{{ social_network.img_path }}"
  11. alt="{{ 'Authenticate through @social_network_name' | t({'@social_network_name': social_network.name}) }}">
  12. </a>
  13. {% endfor %}