From ce3fd130d5bf1ecdaff29d0f6d768ae9bbbd2562 Mon Sep 17 00:00:00 2001 From: George Katsikas <giorgakis.katsikas@gmail.com> Date: Fri, 19 Apr 2024 16:08:23 +0200 Subject: [PATCH] rename communication page to email preferences --- .../{_hx_communication.html => _hx_email_preferences.html} | 4 ++-- .../templates/scipost/personal_page/_hx_tablist.html | 6 +++--- scipost_django/scipost/urls.py | 6 +++--- scipost_django/scipost/views.py | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) rename scipost_django/scipost/templates/scipost/personal_page/{_hx_communication.html => _hx_email_preferences.html} (94%) 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 096f66765..5b9e50e14 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 888d953f5..c99e972d9 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 abd0bd325..7659cbab7 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 26e3082c7..dd6c44f51 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 -- GitLab