{% extends "base.html" %} {% load i18n %} {% block title %} {% trans "Invitation request" %} {% endblock %} {% block content %}
{% blocktrans trimmed with target_name=invitation.object.name|default:target_name target_type=target_type %} Invitation to join the {{ target_name }} {{ target_type }} {% endblocktrans %}
{% if invitation.expired %} {% trans "Invitation expired" %} {% else %} {% blocktrans trimmed with valid_until=invitation.expiration_date|timeuntil expiration_date=invitation.expiration_date|date %} Expires in {% endblocktrans %} {% endif %}
{% block invitation_content %}

{% url "profiles_profile_detail" invitation.from_user.username as profile_url %} {% with from_name=invitation.from_user.get_full_name|default:invitation.from_user.username %} {% blocktrans trimmed with requestor_name=requestor_name requestor_url=requestor_url target_name=invitation.object.name|default:target_name target_type=target_type %} {{ requestor_name }} has invited you to join the {{ target_name }} {{ target_type }}. {% endblocktrans %} {% endwith %}

{% endblock invitation_content %} {% if invitation.expired %} {% block invitation_expired %}

{% trans "Unfortunately, this invitation has expired." %} {% if invitation.object_type == "organization" or invitation.object_type == "team" %} {% trans "Ask an admin of the organization to invite you again." %} {% else %} {% trans "Ask one of the maintainers of the project to invite you again." %} {% endif %}

{% endblock invitation_expired %} {% endif %}
{% block invitation_actions %}
{% csrf_token %}
{% endblock invitation_actions %}
{% endblock content %}