- % if display_dashboard_courses:
+ % if display_dashboard_courses:
<%include file="learner_dashboard/_dashboard_navigation_courses.html"/>
+ % endif
% if len(course_entitlements + course_enrollments) > 0:
@@ -195,16 +196,20 @@ from student.models import CourseEnrollment
% else:
-
${_("You are not enrolled in any courses yet.")}
- % if empty_dashboard_message:
-
${empty_dashboard_message | n, decode.utf8}
- %endif
- % if settings.FEATURES.get('COURSES_ARE_BROWSABLE'):
-
- ${_("Explore courses")}
-
-
- %endif
+ % if display_dashboard_courses:
+
${_("You are not enrolled in any courses yet.")}
+ % if empty_dashboard_message:
+
${empty_dashboard_message | n, decode.utf8}
+ %endif
+ % if settings.FEATURES.get('COURSES_ARE_BROWSABLE'):
+
+ ${_("Explore courses")}
+
+ %endif
+ % else:
+
${_("Activate your account!")}
+
${ activate_account_message | n, decode.utf8 }
+ % endif
% endif
@@ -226,11 +231,10 @@ from student.models import CourseEnrollment
% endif
- % endif
- %if sidebar_account_activation_message:
+ %if display_sidebar_account_activation_message:
%endif
diff --git a/lms/templates/registration/account_activation_sidebar_notice.html b/lms/templates/registration/account_activation_sidebar_notice.html
index 5fc1a8ca75..be474707d2 100644
--- a/lms/templates/registration/account_activation_sidebar_notice.html
+++ b/lms/templates/registration/account_activation_sidebar_notice.html
@@ -15,20 +15,7 @@ from openedx.core.djangolib.markup import HTML, Text
Notice
${_("Activate your account!")}
-
${Text(_(
- "Check your {email_start}{email}{email_end} inbox for an account activation link from {platform_name}. "
- "If you need help, contact {link_start}{platform_name} Support{link_end}."
- )).format(
- platform_name=platform_name,
- email_start=HTML(""),
- email_end=HTML(""),
- email=email,
- link_start=HTML("").format(
- activation_email_support_link=activation_email_support_link,
- ),
- link_end=HTML(""),
- )}
-
+
${ activate_account_message | n, decode.utf8 }
## TODO: Add resend activation email functionality.
## TODO: Implementation of this is part of ENT-353.
##