Skip to content

Commit

Permalink
Merge pull request #332 from rdmorganiser/fix_invite
Browse files Browse the repository at this point in the history
Fix delete invite confirmation
  • Loading branch information
jochenklar committed May 4, 2021
2 parents 18a8be4 + 4cef5ae commit dd2c0f8
Showing 1 changed file with 8 additions and 0 deletions.
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

0 comments on commit dd2c0f8

Please sign in to comment.