{% extends 'team/base.html' %}

{% load i18n %}

{% block app_body %}
<div class="row mb-3 mt-3">
  <div class="col-lg-8">
    <h2>
      {% blocktrans with name=object.team.name %}
        Team “{{ name }}” has invited you
      {% endblocktrans %}
    </h2>
    {% if request.user.email != object.email %}
    <div class="alert alert-warning">
      {% blocktrans with email=object.email account=request.user.email %}
        This invite was sent to “{{ email }}” which is different from the current account “{{ account }}”!
      {% endblocktrans %}
    </div>
  </div>
</div>

  <form method="post" action="">
    {% csrf_token %}
    <p>
      {% blocktrans with account=request.user.email %}
        Do you want to join this team with the account “{{ account }}”?
      {% endblocktrans %}
    </p>
    <button type="submit" class="btn btn-lg btn-primary">
      {% trans "Join this team" %}
    </button>
  </form>

{% endblock %}

{% extends 'team/base.html' %}

{% load i18n %}

{% block app_body %}
<div class="row mb-3 mt-3">
  <div class="col-lg-8">
    <h2>
      {% blocktrans with name=object.team.name %}
        Team “{{ name }}” has invited you
      {% endblocktrans %}
    </h2>
    {% if request.user.email != object.email %}
      <div class="alert alert-warning">
      {% blocktrans with email=object.email account=request.user.email %}
          This invite was sent to “{{ email }}” which is different from the current account “{{ account }}”!
      {% endblocktrans %}
      </div>
    {% endif %}
  </div>
</div>

  <form method="post" action="">
    {% csrf_token %}
    <p>
      {% blocktrans with account=request.user.email %}
        Do you want to join this team with the account “{{ account }}”?
      {% endblocktrans %}
    </p>
    <button type="submit" class="btn btn-lg btn-primary">
      {% trans "Join this team" %}
    </button>
  </form>

{% endblock %}

Fix bad template in team join
Fix bad template in team join