You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: drop unreachable marketing-site branches from enrollment emails
With ENABLE_MKTG_SITE removed, get_email_params() now always sets
course_about_url via get_link_for_about_page(), which never returns None
(it falls back to the LMS course about URL). The instructor "allowed
enroll" and "add beta tester" ACE email templates branched on
`course_about_url is not None`, keeping an else-branch for the old
marketing-site-enabled case where course_about_url was None.
Those conditionals are now always true and their else-branches are dead:
- allowedenroll: "You can then enroll in {{ course_name }}."
- addbetatester: "Visit {{ site_name }} to enroll in this course and
begin the beta test."
Collapse the always-true `course_about_url is not None` guards to the
unconditional branch and delete the unreachable text (both .txt and .html
variants). No behavior change for any reachable input.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: lms/templates/instructor/edx_ace/addbetatester/email/body.html
+1-14Lines changed: 1 addition & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ <h1>
31
31
</p>
32
32
33
33
{% include "ace_common/edx_ace/common/return_to_course_cta.html" with course_cta_text=display_name|default:course.display_name_with_default course_cta_url=course_url %}
34
-
{% elif course_about_url is not None %}
34
+
{% else %}
35
35
<pstyle="color: rgba(0,0,0,.75);">
36
36
{% filter force_escape %}
37
37
{% blocktrans %}To enroll in this course and begin the beta test:{% endblocktrans %}
@@ -43,19 +43,6 @@ <h1>
43
43
{% endfilter %}
44
44
45
45
{% include "ace_common/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_cta_text course_cta_url=course_about_url %}
46
-
{% else %}
47
-
<pstyle="color: rgba(0,0,0,.75);">
48
-
{% filter force_escape %}
49
-
{% blocktrans %}To enroll in this course and begin the beta test:{% endblocktrans %}
Copy file name to clipboardExpand all lines: lms/templates/instructor/edx_ace/allowedenroll/email/body.txt
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,12 @@
2
2
3
3
{% blocktrans %}You have been invited to join {{ course_name }} at {{ site_name }} by a member of the course staff.{% endblocktrans %}
4
4
{% if is_shib_course %}{% if auto_enroll %}{% blocktrans %}To access this course visit {{ course_url }} and login.{% endblocktrans %}
5
-
{% elif course_about_url is not None %}
5
+
{% else %}
6
6
{% blocktrans %}To access this course visit {{ course_about_url }} and register for this course.{% endblocktrans %}
7
7
{% endif %}
8
8
{% else %}{% blocktrans %}To finish your registration, please visit {{ registration_url }} and fill out the registration form making sure to use {{ email_address }} in the Email field.{% endblocktrans %}
9
9
{% if auto_enroll %}{% blocktrans %}Once you have registered and activated your account, you will see {{ course_name }} listed on your dashboard.{% endblocktrans %}
10
-
{% elif course_about_url is not None %}{% blocktrans %}Once you have registered and activated your account, visit {{ course_about_url }} to join this course.{% endblocktrans %}
11
-
{% else %}{% blocktrans %}You can then enroll in {{ course_name }}.{% endblocktrans %}
10
+
{% else %}{% blocktrans %}Once you have registered and activated your account, visit {{ course_about_url }} to join this course.{% endblocktrans %}
12
11
{% endif %}
13
12
{% endif %}----
14
13
{% blocktrans %}This email was automatically sent from {{ site_name }} to {{ email_address }}{% endblocktrans %}{% endautoescape %}
0 commit comments