diff --git a/scipost/templates/scipost/personal_page.html b/scipost/templates/scipost/personal_page.html index 5468435a39e1ea57b443069e6071443cffb7ae24..32fcb4a45dd902f6925bd7211eb46b5be3e1cece 100644 --- a/scipost/templates/scipost/personal_page.html +++ b/scipost/templates/scipost/personal_page.html @@ -205,13 +205,9 @@ <ul> {% if perms.scipost.can_vet_registration_requests %} <li><a href="{% url 'scipost:vet_registration_requests' %}">Vet Registration requests</a> ({{ nr_reg_to_vet }})</li> - <li> - {% if perms.scipost.can_resend_registration_requests %} - <a href="{% url 'scipost:registration_requests' %}">Awaiting validation</a> ({{ nr_reg_awaiting_validation }}) - {% else %} - Awaiting validation ({{ nr_reg_awaiting_validation }}) - {% endif %} - </li> + {% endif %} + {% if perms.scipost.can_resend_registration_requests %} + <li><a href="{% url 'scipost:registration_requests' %}">Awaiting validation</a> ({{ nr_reg_awaiting_validation }})</li> {% endif %} {% if perms.scipost.can_draft_registration_invitations %} <li><a href="{% url 'scipost:draft_registration_invitation' %}">Draft a Registration Invitation</a></li> diff --git a/scipost/views.py b/scipost/views.py index 0b7425b9e451f4283cdefdafded3497f076c7b92..229123403a324cc62918110819e7349e0045dc0b 100644 --- a/scipost/views.py +++ b/scipost/views.py @@ -413,6 +413,8 @@ def registration_requests_reset(request, contributor_id): contributor.save() Utils.load({'contributor': contributor}, request) Utils.send_new_activation_link_email() + messages.success(request, ('New key successfully generated and sent to <i>%s</i>' + % contributor.user.email)) return redirect(reverse('scipost:registration_requests'))