From c1767c4c5a26fc2ef64a67e94c187e5ff4467d18 Mon Sep 17 00:00:00 2001 From: John Tordoff Date: Thu, 18 Sep 2025 14:03:50 -0400 Subject: [PATCH 1/2] fix template language --- website/project/views/contributor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/project/views/contributor.py b/website/project/views/contributor.py index 95edc5db1d8..d551f3cce39 100644 --- a/website/project/views/contributor.py +++ b/website/project/views/contributor.py @@ -635,7 +635,7 @@ def notify_added_contributor(resource, contributor, notification_type, auth=None subscribed_object=resource, event_context={ 'user_fullname': contributor.fullname, - 'referrer_text': referrer_name + ' has added you' if referrer_name else 'You have been add', + 'referrer_text': referrer_name + ' has added you' if referrer_name else 'You have been added', 'registry_text': resource.provider.name if resource.provider else 'OSF Registry', 'referrer_name': referrer_name, 'domain': settings.DOMAIN, From 17450c080294002fceae225f46b16e12c22673ec Mon Sep 17 00:00:00 2001 From: John Tordoff Date: Fri, 19 Sep 2025 09:52:46 -0400 Subject: [PATCH 2/2] reorganize templates to deal with conditional statement better grammatically --- website/project/views/contributor.py | 2 +- website/templates/contributor_added_default.html.mako | 2 +- .../contributor_added_preprint_node_from_osf.html.mako | 2 +- website/templates/contributor_added_preprints.html.mako | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/website/project/views/contributor.py b/website/project/views/contributor.py index d551f3cce39..18eaba283c5 100644 --- a/website/project/views/contributor.py +++ b/website/project/views/contributor.py @@ -635,7 +635,7 @@ def notify_added_contributor(resource, contributor, notification_type, auth=None subscribed_object=resource, event_context={ 'user_fullname': contributor.fullname, - 'referrer_text': referrer_name + ' has added you' if referrer_name else 'You have been added', + 'referrer_text': referrer_name + ' has added you as a contributor' if referrer_name else 'You have been added', 'registry_text': resource.provider.name if resource.provider else 'OSF Registry', 'referrer_name': referrer_name, 'domain': settings.DOMAIN, diff --git a/website/templates/contributor_added_default.html.mako b/website/templates/contributor_added_default.html.mako index 31cd8cb2c2c..e7adb30f72a 100644 --- a/website/templates/contributor_added_default.html.mako +++ b/website/templates/contributor_added_default.html.mako @@ -5,7 +5,7 @@ Hello ${user_fullname},

- ${referrer_text} as a contributor to the project "${node_title}" on the Open Science Framework: ${node_absolute_url}
+ ${referrer_text} to the project "${node_title}" on the Open Science Framework: ${node_absolute_url}

If you are erroneously being associated with "${node_title}," then you may visit the project's "Contributors" page and remove yourself as a contributor.

diff --git a/website/templates/contributor_added_preprint_node_from_osf.html.mako b/website/templates/contributor_added_preprint_node_from_osf.html.mako index 0dd6ff1d035..c33e2a13b3c 100644 --- a/website/templates/contributor_added_preprint_node_from_osf.html.mako +++ b/website/templates/contributor_added_preprint_node_from_osf.html.mako @@ -5,7 +5,7 @@ Hello ${user_fullname},

- ${referrer_text} as a contributor to the project "${node_title}" on the Open Science Framework: ${node_absolute_url}
+ ${referrer_text} to the project "${node_title}" on the Open Science Framework: ${node_absolute_url}

This project also contains the supplemental files for the following preprint(s):
diff --git a/website/templates/contributor_added_preprints.html.mako b/website/templates/contributor_added_preprints.html.mako index 86d62b5187c..4fc6211e4d4 100644 --- a/website/templates/contributor_added_preprints.html.mako +++ b/website/templates/contributor_added_preprints.html.mako @@ -5,7 +5,7 @@ Hello ${user_fullname},

- ${referrer_text} as a contributor to the ${branded_service_preprint_word} "${node_title}" on ${branded_service_name}, which is hosted on the Open Science Framework: ${node_absolute_url}
+ ${referrer_text} to the ${branded_service_preprint_word} "${node_title}" on ${branded_service_name}, which is hosted on the Open Science Framework: ${node_absolute_url}

If you have been erroneously associated with "${node_title}", then you may visit the ${branded_service_preprint_word} and remove yourself as a contributor.