diff --git a/scipost_django/scipost/templates/scipost/personal_page/_hx_communication.html b/scipost_django/scipost/templates/scipost/personal_page/_hx_email_preferences.html similarity index 94% rename from scipost_django/scipost/templates/scipost/personal_page/_hx_communication.html rename to scipost_django/scipost/templates/scipost/personal_page/_hx_email_preferences.html index 096f66765d3673129a4e736b973cc664f52450e5..5b9e50e141173fd11868ef7b5603efb1159d7396 100644 --- a/scipost_django/scipost/templates/scipost/personal_page/_hx_communication.html +++ b/scipost_django/scipost/templates/scipost/personal_page/_hx_email_preferences.html @@ -1,11 +1,11 @@ -{% include 'scipost/personal_page/_hx_tablist.html' with selected='communication' %} +{% include 'scipost/personal_page/_hx_tablist.html' with selected='email_preferences' %} <div class="row mb-0"> <div class="col-12"> <div class="card bg-light"> <div class="card-body"> - <h2 class="card-title">Communication</h2> + <h2 class="card-title">Email Preferences</h2> <ul class="mb-0"> </ul> </div> diff --git a/scipost_django/scipost/templates/scipost/personal_page/_hx_tablist.html b/scipost_django/scipost/templates/scipost/personal_page/_hx_tablist.html index 888d953f556bf4dd272f0e249914c8d229654ad1..c99e972d95bc208356418e4db51f7630571d8857 100644 --- a/scipost_django/scipost/templates/scipost/personal_page/_hx_tablist.html +++ b/scipost_django/scipost/templates/scipost/personal_page/_hx_tablist.html @@ -3,9 +3,9 @@ {% if selected == 'account' %}class="selected"{% endif %} >Account</a> - <a hx-get="{% url 'scipost:personal_page_hx_communication' %}" - {% if selected == 'communication' %}class="selected"{% endif %} - >Communication</a> + <a hx-get="{% url 'scipost:personal_page_hx_email_preferences' %}" + {% if selected == 'email_preferences' %}class="selected"{% endif %} + >Email Preferences</a> {% if "scipost_admin" in user_roles or "finadmin" in user_roles or perms.scipost.can_vet_registration_requests %} <a hx-get="{% url 'scipost:personal_page_hx_admin' %}" diff --git a/scipost_django/scipost/urls.py b/scipost_django/scipost/urls.py index abd0bd3251317d21de943228c3bba165cfa8b9de..7659cbab7244b9283b088c1e65e6b40837c61dfd 100644 --- a/scipost_django/scipost/urls.py +++ b/scipost_django/scipost/urls.py @@ -397,9 +397,9 @@ urlpatterns = [ name="personal_page_hx_publications", ), path( - "personal_page/_hx_communication", - views.personal_page_hx_communication, - name="personal_page_hx_communication", + "personal_page/_hx_email_preferences", + views.personal_page_hx_email_preferences, + name="personal_page_hx_email_preferences", ), path( "personal_page/_hx_submissions", diff --git a/scipost_django/scipost/views.py b/scipost_django/scipost/views.py index 26e3082c78e67e8d83b6e51bb5d6582e08b49da6..dd6c44f512ecefaa627e0b43941e0bcd81d2a77d 100644 --- a/scipost_django/scipost/views.py +++ b/scipost_django/scipost/views.py @@ -1172,13 +1172,13 @@ def personal_page_hx_publications(request): @login_required -def personal_page_hx_communication(request): +def personal_page_hx_email_preferences(request): """ - Personal Page tab: Communication. + Personal Page tab: Email Preferences. """ contributor = request.user.contributor context = {"contributor": contributor} - return render(request, "scipost/personal_page/_hx_communication.html", context) + return render(request, "scipost/personal_page/_hx_email_preferences.html", context) @login_required