Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix delete invite confirmation #332

Merged
merged 1 commit into from
May 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions rdmo/projects/templates/projects/invite_confirm_delete.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,18 @@
<h1>{% trans 'Delete invite' %}</h1>

<p>
{% if object.user %}
{% full_name object.user as user %}
{% blocktrans with object.project.title as title trimmed %}
You are about to remove the invite of <strong>{{ user }}</strong> from the project <strong>{{ title }}</strong>.
{% endblocktrans %}
{% else %}
{% with object.email as user %}
{% blocktrans with object.project.title as title trimmed %}
You are about to remove the invite of <strong>{{ user }}</strong> from the project <strong>{{ title }}</strong>.
{% endblocktrans %}
{% endwith %}
{% endif %}
</p>

{% bootstrap_delete_form submit=_('Delete invite') %}
Expand Down