Since Course Highlights aren't necessarily weekly (self-paced courses), update the language to be more generic. And then includes a bug fix to not send highlights to learners after they have unenrolled from a course.
13 lines
591 B
Plaintext
13 lines
591 B
Plaintext
<div class="course-highlights-setting">
|
|
<h2 id="highlights-enabled-label" class="status-highlights-enabled-label">
|
|
<%- gettext('Course Highlight Emails') %>
|
|
</h2>
|
|
<br>
|
|
<% if (highlights_enabled_for_messaging) { %>
|
|
<span class="status-highlights-enabled-value text"><%- gettext('Enabled') %></span>
|
|
<% } else { %>
|
|
<button class="status-highlights-enabled-value button" aria-labelledby="highlights-enabled-label"><%- gettext('Enable Now') %></button>
|
|
<% } %>
|
|
<a class="status-highlights-enabled-info" href="<%- highlights_doc_url %>" rel="noopener" target="_blank">Learn more</a>
|
|
</div>
|